1 # Test-suite makefile for sst
6 ifeq (,$(command -v tapview))
9 ifeq (,$(command -v tappy))
15 @echo "With Python 2:"
16 @$(MAKE) -e PYTHON=python2 regress | $(TAPFILTER)
17 @echo "With Python 3:"
18 @$(MAKE) -e PYTHON=python3 regress | $(TAPFILTER)
19 @echo "No diff output is good news."
24 ../sst.py -r $< >$@ 2>&1
26 TESTLOADS := $(shell ls *.log | sed '/.log/s///')
28 @for test in $(TESTLOADS); do \
29 if [ ! -f $${test}.tst ] ; \
31 echo "Remaking $${test}.chk"; \
32 rm -f $${test}.chk && ../sst.py -r $${test}.log >$${test}.chk 2>&1; \
36 echo "1..$$(ls *.log | wc -l)"
37 @for test in $(TESTLOADS); \
39 if [ ! -f $${test}.tst ] ; \
41 legend=$$(sed -n -e '/# Test/s//Test/p' <$${test}.log); \
42 ../sst.py -r "$${test}.log" | ./tapdiffer "$${legend}" "$${test}.chk"; \