check.mak: Add support for valgrinding all tests forever
authorSebastian Rasmussen <sebrn@axis.com>
Wed, 6 Mar 2013 18:51:11 +0000 (19:51 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 6 Mar 2013 23:43:10 +0000 (23:43 +0000)
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=695315

check.mak

index 0665d63..bf762f8 100644 (file)
--- a/check.mak
+++ b/check.mak
@@ -152,6 +152,16 @@ valgrind: $(TESTS)
                false;                                                  \
        fi
 
+# valgrind all tests until failure
+valgrind-forever: $(TESTS)
+       -rm test-registry.xml
+       @echo "Forever valgrinding tests ..."
+       @while true; do                                         \
+               $(MAKE) valgrind ||                             \
+               (echo "Failure"; exit 1) ||                     \
+               exit 1;                                         \
+       done
+
 # valgrind all tests and generate suppressions
 valgrind.gen-suppressions: $(TESTS)
        @echo "Valgrinding tests ..."
@@ -191,6 +201,7 @@ help:
        @echo "make (dir)/(test).gdb              -- start up gdb for the given test"
        @echo
        @echo "make valgrind                      -- valgrind all tests"
+       @echo "make valgrind-forever              -- valgrind all tests forever"
        @echo "make valgrind.gen-suppressions     -- generate suppressions for all tests"
        @echo "                                      and save to suppressions.log"
        @echo "make (dir)/(test).valgrind         -- valgrind the given test"