X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=test%2FMakefile;h=cf908beb7c607e34a9bcfcc210beb519567a103f;hp=dd1f5740669c5e8d269266091dcc00d6312b3c1c;hb=HEAD;hpb=3e07a4f55fffad24b7ef47530d8b48becd7db889 diff --git a/test/Makefile b/test/Makefile index dd1f574..de8df77 100644 --- a/test/Makefile +++ b/test/Makefile @@ -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