diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2005-09-29 18:23:13 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2005-09-29 18:23:13 +0000 |
commit | 4e3df3de1bca37740e8eab341786ff4e8dba824f (patch) | |
tree | cfdb3a0c8a897432eed91f031bda46a70fc8c61c /check.mak | |
parent | 7caeee4b949b4388927fec7fcf25f767429bde30 (diff) |
check.mak: add some more targets, like help, but also more intensive tests
Original commit message from CVS:
2005-09-29 Thomas Vander Stichele <thomas at apestaart dot org>
* check.mak:
add some more targets, like help, but also more intensive tests
Diffstat (limited to 'check.mak')
-rw-r--r-- | check.mak | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -12,12 +12,28 @@ check-valgrind: @true endif +LOOPS = 10 + # run any given test by running make test.check %.check: % @$(TESTS_ENVIRONMENT) \ CK_DEFAULT_TIMEOUT=20 \ $* +# run any given test in a loop +%.torture: % + @for i in `seq 1 $(LOOPS)`; do \ + $(TESTS_ENVIRONMENT) \ + CK_DEFAULT_TIMEOUT=20 \ + $*; done + +# run any given test in an infinite loop +%.forever: % + @while true; do \ + $(TESTS_ENVIRONMENT) \ + CK_DEFAULT_TIMEOUT=20 \ + $*; done + # valgrind any given test by running make test.valgrind %.valgrind: % $(TESTS_ENVIRONMENT) \ @@ -39,6 +55,15 @@ endif libtool --mode=execute \ gdb $* +# torture tests +torture: $(TESTS) + @echo "Torturing tests ..." + for i in `seq 1 $(LOOPS)`; do \ + make check || \ + (echo "Failure after $$i runs"; exit 1) || \ + exit 1; \ + done + # valgrind all tests valgrind: $(TESTS) @@ -57,3 +82,15 @@ valgrind: $(TESTS) echo "$$whicht"; \ false; \ fi + +help: + @echo "make check -- run all checks" + @echo "make torture -- run all checks repeatedly" + @echo "make (dir)/(test).check -- run the given check once" + @echo "make (dir)/(test).forever -- run the given check forever" + @echo "make (dir)/(test).torture -- run the given check forever" + @echo + @echo "make (dir)/(test).gdb -- start up gdb for the given test" + @echo + @echo "make valgrind -- valgrind all tests" + @echo "make (dir)/(test).valgrind -- valgrind the given test" |