X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=test%2FMakefile;h=de8df77745187ef9bf1b3ea4d58f1733e667e25a;hb=3ee3175eb21f0f72fcf9044eed47a6786a32b1e4;hp=dd1f5740669c5e8d269266091dcc00d6312b3c1c;hpb=3e07a4f55fffad24b7ef47530d8b48becd7db889;p=super-star-trek.git 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