Ready to ship 2.8
[super-star-trek.git] / test / Makefile
index dd1f5740669c5e8d269266091dcc00d6312b3c1c..de8df77745187ef9bf1b3ea4d58f1733e667e25a 100644 (file)
@@ -1,13 +1,7 @@
 # Test-suite makefile for sst
 
-PYTHON=python3
-
 all:
-       @echo "With Python 2:"
-       @$(MAKE) -e PYTHON=python2 regress | ./tapview
-       @echo "With Python 3:"
-       @$(MAKE) -e PYTHON=python3 regress | ./tapview
-       @echo "No diff output is good news."
+       @$(MAKE) regress | ./tapview
 
 .SUFFIXES: .log .chk
 
@@ -15,10 +9,10 @@ all:
        ../sst -r $< >$@ 2>&1
 
 TESTLOADS := $(shell ls *.log | sed '/.log/s///')
-buildregress:
+rebuild:
        @for test in $(TESTLOADS); do \
            if [ ! -f $${test}.tst ] ; \
-           then \
+    then \
                    echo "Remaking $${test}.chk"; \
                    rm -f $${test}.chk && ../sst -r $${test}.log >$${test}.chk 2>&1; \
            fi \
@@ -34,3 +28,17 @@ regress:
            fi \
        done
        @rm -f /tmp/regress
+
+coverage:
+       @coverage erase
+       @for test in $(TESTLOADS); \
+       do \
+           if [ ! -f $${test}.tst ] ; \
+           then \
+               coverage run -a ../sst -r "$${test}.log" >/dev/null; \
+           fi \
+       done
+       @coverage html
+
+clean:
+       rm -f .coverage htmlcov/index.html