summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-10-09 04:02:54 +0200
committerLennart Poettering <lennart@poettering.net>2013-10-09 04:08:00 +0200
commitcac914e643a50c72893c5478f6886e0978f8fa18 (patch)
treea38f68f3a04238b7516baf37022c1bc2632bd0c0 /Makefile.am
parent87b20a8118ffec0c4d22fa90b70055b640812504 (diff)
build-sys: add a makefile target to run all tests through valgrind
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 49e41ec28c..31dde6f03f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4588,3 +4588,8 @@ install-tree: all
rm -rf $(abs_srcdir)/install-tree
$(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
tree $(abs_srcdir)/install-tree
+
+# Let's run all tests of the test suite, but under valgrind. Let's
+# exclude the one perl script we have in there
+valgrind-tests: $(TESTS)
+ for f in $(TESTS) ; do [ "$$f" == "$${f/.pl/}" ] && libtool --mode=execute valgrind --leak-check=full --error-exitcode=55 $(builddir)/$$f ; done