From a83eebb25397911b77e6d23cb06998189fb8dafb Mon Sep 17 00:00:00 2001 From: Laurent Ghigonis Date: Thu, 29 Nov 2012 04:38:00 +0100 Subject: add a "make run_loop" target to execute the unit tests 20 times --- libglouglou/tests/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/libglouglou/tests/Makefile b/libglouglou/tests/Makefile index 47dbfd2..a68c095 100644 --- a/libglouglou/tests/Makefile +++ b/libglouglou/tests/Makefile @@ -29,5 +29,23 @@ run: $(TARGET) echo "$$count tests executed, $$errors errors" ;\ exit $$errors +run_loop: + @loopcount=20 ;\ + count=1 ;\ + while [ $$count -lt $$loopcount ]; do \ + echo "###############################################################################" ;\ + make run ;\ + if [ $$? -ne 0 ]; then \ + echo ERROR ;\ + break ;\ + echo "$$count / $$loopcount loops of tests executed, last one did ERROR" ;\ + exit $$? ;\ + fi ;\ + count=$$(($$count + 1)) ;\ + done ;\ + echo "###############################################################################" ;\ + echo "$$count / $$loopcount loops of tests executed, all OK" ;\ + exit 0 + clean: rm -f $(TARGET) $(OBJECTS) -- cgit v1.2.3-59-g8ed1b