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
17 # run any given test by running make test.check
19 @$(TESTS_ENVIRONMENT) \
20 CK_DEFAULT_TIMEOUT=20 \
23 # run any given test in a loop
25 @for i in `seq 1 $(LOOPS)`; do \
26 $(TESTS_ENVIRONMENT) \
27 CK_DEFAULT_TIMEOUT=20 \
30 # run any given test in an infinite loop
33 $(TESTS_ENVIRONMENT) \
34 CK_DEFAULT_TIMEOUT=20 \
37 # valgrind any given test by running make test.valgrind
39 $(TESTS_ENVIRONMENT) \
40 CK_DEFAULT_TIMEOUT=20 \
41 libtool --mode=execute \
42 $(VALGRIND_PATH) -q --suppressions=$(SUPPRESSIONS) \
43 --tool=memcheck --leak-check=yes --trace-children=yes \
44 $* 2>&1 | tee valgrind.log
45 @if grep "tely lost" valgrind.log; then \
51 # gdb any given test by running make test.gdb
53 $(REGISTRY_ENVIRONMENT) \
55 libtool --mode=execute \
60 @echo "Torturing tests ..."
61 for i in `seq 1 $(LOOPS)`; do \
63 (echo "Failure after $$i runs"; exit 1) || \
70 @echo "Valgrinding tests ..."
72 for t in $(filter-out $(VALGRIND_TESTS_DISABLE),$(TESTS)); do \
74 if test "$$?" -ne 0; then \
75 echo "Valgrind error for test $$t"; \
76 failed=`expr $$failed + 1`; \
77 whicht="$$whicht $$t"; \
80 if test "$$failed" -ne 0; then \
81 echo "$$failed tests had leaks under valgrind:"; \
87 @echo "make check -- run all checks"
88 @echo "make torture -- run all checks $(LOOPS) times"
89 @echo "make (dir)/(test).check -- run the given check once"
90 @echo "make (dir)/(test).forever -- run the given check forever"
91 @echo "make (dir)/(test).torture -- run the given check $(LOOPS) times"
93 @echo "make (dir)/(test).gdb -- start up gdb for the given test"
95 @echo "make valgrind -- valgrind all tests"
96 @echo "make (dir)/(test).valgrind -- valgrind the given test"