]> gitweb.michael.orlitzky.com - dunshire.git/commitdiff
Add a "checkloop" makefile target to run tests forever.
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 4 Nov 2016 23:11:45 +0000 (19:11 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 4 Nov 2016 23:11:45 +0000 (19:11 -0400)
makefile

index 8eb2751b3992a0fb059137803ca977e2c62ad7ce..9f9798bf94eda41d74dfd7194f3773bcc6544f9d 100644 (file)
--- a/makefile
+++ b/makefile
@@ -16,6 +16,15 @@ doctest:
 check:
        PYTHONPATH="." test/__main__.py
 
+.PHONE: checkloop
+checkloop:
+       COUNT=0; \
+       while [ $$? -eq 0 ]; do \
+            COUNT=`expr $$COUNT + 1`; \
+            echo $$COUNT; \
+            PYTHONPATH="." test/__main__.py; \
+        done;
+
 .PHONY: lint
 lint:
        pylint --rcfile=./.pylintrc $(SRCS)