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
17 @$(TESTS_ENVIRONMENT) \
18 CK_DEFAULT_TIMEOUT=20 \
21 # valgrind any given test by running make test.valgrind
23 $(TESTS_ENVIRONMENT) \
24 CK_DEFAULT_TIMEOUT=20 \
25 libtool --mode=execute \
26 $(VALGRIND_PATH) -q --suppressions=$(SUPPRESSIONS) \
27 --tool=memcheck --leak-check=yes --trace-children=yes \
28 $* 2>&1 | tee valgrind.log
29 @if grep "tely lost" valgrind.log; then \
35 # gdb any given test by running make test.gdb
37 $(REGISTRY_ENVIRONMENT) \
39 libtool --mode=execute \
45 @echo "Valgrinding tests ..."
47 for t in $(filter-out $(VALGRIND_TESTS_DISABLE),$(TESTS)); do \
49 if test "$$?" -ne 0; then \
50 echo "Valgrind error for test $$t"; \
51 failed=`expr $$failed + 1`; \
52 whicht="$$whicht $$t"; \
55 if test "$$failed" -ne 0; then \
56 echo "$$failed tests had leaks under valgrind:"; \