summaryrefslogtreecommitdiffstats
path: root/test/Makefile.am
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-08-19 11:08:56 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-08-19 13:27:59 +0800
commite25ee629c6dfa47c13121cc70b2da1b2dd21036c (patch)
tree3b658bf9cf65c3be1a9f6a47c658a47a707debd7 /test/Makefile.am
parent9d51bd9c70df1ea91a1051b1005e59fe220fd375 (diff)
downloadtalos-petitboot-e25ee629c6dfa47c13121cc70b2da1b2dd21036c.tar.gz
talos-petitboot-e25ee629c6dfa47c13121cc70b2da1b2dd21036c.zip
test: Add --enable-test-valgrind
Add an --enable-test-valgrind argument to configure, to run all tests under valgrind, configured to fail on leaked memory Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'test/Makefile.am')
-rw-r--r--test/Makefile.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index f2f4176..6562836 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -11,6 +11,11 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+if ENABLE_TEST_VALGRIND
+LOG_COMPILER = valgrind
+AM_LOG_FLAGS = --leak-check=full --error-exitcode=1
+export LOG_COMPILER AM_LOG_FLAGS
+endif
SUBDIRS = lib parser urls
OpenPOWER on IntegriCloud