check.mak: add a valgrind-forever target for tests
authorThomas Vander Stichele <thomas@apestaart.org>
Tue, 29 Nov 2005 01:16:02 +0000 (01:16 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Tue, 29 Nov 2005 01:16:02 +0000 (01:16 +0000)
Original commit message from CVS:

* check.mak:
add a valgrind-forever target for tests

ChangeLog
check.mak

index 8979910..2023937 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-29  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+       * check.mak:
+         add a valgrind-forever target for tests
+
 2005-11-28  Thomas Vander Stichele  <thomas at apestaart dot org>
 
        * check.mak:
index 0e9dce8..475d7db 100644 (file)
--- a/check.mak
+++ b/check.mak
@@ -54,6 +54,11 @@ LOOPS = 10
        fi
        @rm valgrind.log
 
+# valgrind any given test until failure by running make test.valgrind-forever
+%.valgrind-forever: %
+       @while make $*.valgrind; do                             \
+         true; done
+
 # gdb any given test by running make test.gdb
 %.gdb: %
        $(TESTS_ENVIRONMENT)                                    \
@@ -93,13 +98,14 @@ valgrind: $(TESTS)
        fi
 
 help:
-       @echo "make check                 -- run all checks"
-       @echo "make torture               -- run all checks $(LOOPS) times"
-       @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 $(LOOPS) times"
+       @echo "make check                         -- run all checks"
+       @echo "make torture                       -- run all checks $(LOOPS) times"
+       @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 $(LOOPS) times"
        @echo
-       @echo "make (dir)/(test).gdb      -- start up gdb for the given test"
+       @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"
+       @echo "make valgrind                      -- valgrind all tests"
+       @echo "make (dir)/(test).valgrind         -- valgrind the given test"
+       @echo "make (dir)/(test).valgrind-forever -- valgrind the given test forever"