1 # Test-suite makefile for sst
5 # The tests output TAP (Test Anything Proocol)
6 # If you have either of these TAP viwers installed,
7 # S good ing will happen.
9 ifeq (,$(command -v tapview))
12 ifeq (,$(command -v tappy))
18 @echo "With Python 2:"
19 @$(MAKE) -e PYTHON=python2 regress | $(TAPVIEWER)
20 @echo "With Python 3:"
21 @$(MAKE) -e PYTHON=python3 regress | $(TAPVIEWER)
22 @echo "No diff output is good news."
27 ../sst.py -r $< >$@ 2>&1
29 TESTLOADS := $(shell ls *.log | sed '/.log/s///')
31 @for test in $(TESTLOADS); do \
32 if [ ! -f $${test}.tst ] ; \
34 echo "Remaking $${test}.chk"; \
35 rm -f $${test}.chk && ../sst.py -r $${test}.log >$${test}.chk 2>&1; \
39 echo "1..$$(ls *.log | wc -l)"
40 @for test in $(TESTLOADS); \
42 if [ ! -f $${test}.tst ] ; \
44 legend=$$(sed -n -e '/# Test/s//Test/p' <$${test}.log); \
45 ../sst.py -r "$${test}.log" | ./tapdiffer "$${legend}" "$${test}.chk"; \