chiark / gitweb /
tests: fix some memory leaks in tests
[elogind.git] / Makefile.am
index 4c7646d84f4bfac80268346a1457d6d885e9e74a..31dde6f03f4eb06a202753c55d824d2f6c2152b8 100644 (file)
@@ -1935,6 +1935,7 @@ libsystemd_bus_la_SOURCES = \
        src/systemd/sd-bus.h \
        src/systemd/sd-bus-protocol.h \
        src/systemd/sd-memfd.h \
+       src/systemd/sd-bus-vtable.h \
        src/libsystemd-bus/sd-bus.c \
        src/libsystemd-bus/bus-control.c \
        src/libsystemd-bus/bus-control.h \
@@ -4587,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