2 for i in `find . -name ".libs" -type d`; do \
7 # hangs spectacularly on some machines, so let's not do this by default yet
15 # run any given test by running make test.check
16 %.check: % $(CHECK_REGISTRY)
17 @$(TESTS_ENVIRONMENT) \
20 # valgrind any given test by running make test.valgrind
21 %.valgrind: % $(CHECK_REGISTRY)
22 $(TESTS_ENVIRONMENT) \
23 libtool --mode=execute \
24 $(VALGRIND_PATH) -q --suppressions=$(SUPPRESSIONS) \
25 --tool=memcheck --leak-check=yes --trace-children=yes \
26 $* 2>&1 | tee valgrind.log
27 @if grep "tely lost" valgrind.log; then \
34 valgrind: $(TESTS) $(CHECK_REGISTRY)
35 @echo "Valgrinding tests ..."
37 for t in $(filter-out $(VALGRIND_TESTS_DISABLE),$(TESTS)); do \
39 if test "$$?" -ne 0; then \
40 echo "Valgrind error for test $$t"; \
41 failed=`expr $$failed + 1`; \
42 whicht="$$whicht $$t"; \
45 if test "$$failed" -ne 0; then \
46 echo "$$failed tests had leaks under valgrind:"; \