diff options
author | Laurent Ghigonis <laurent@p1sec.com> | 2012-11-29 04:38:00 +0100 |
---|---|---|
committer | Laurent Ghigonis <laurent@p1sec.com> | 2012-11-29 04:38:00 +0100 |
commit | a83eebb25397911b77e6d23cb06998189fb8dafb (patch) | |
tree | fd89956be080200ef1add1fd5624fcdbd438da78 | |
parent | formating fix (diff) | |
download | glouglou-a83eebb25397911b77e6d23cb06998189fb8dafb.tar.xz glouglou-a83eebb25397911b77e6d23cb06998189fb8dafb.zip |
add a "make run_loop" target to execute the unit tests 20 times
-rw-r--r-- | libglouglou/tests/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
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) |