From 33084fbe0531733bc02aa1d9de608206d5553a15 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Tue, 29 Nov 2005 01:16:02 +0000 Subject: [PATCH] check.mak: add a valgrind-forever target for tests Original commit message from CVS: * check.mak: add a valgrind-forever target for tests --- ChangeLog | 5 +++++ check.mak | 22 ++++++++++++++-------- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8979910..2023937 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-11-29 Thomas Vander Stichele + + * check.mak: + add a valgrind-forever target for tests + 2005-11-28 Thomas Vander Stichele * check.mak: diff --git a/check.mak b/check.mak index 0e9dce8..475d7db 100644 --- 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" -- 2.7.4