1 # Test-suite makefile for sst
7 @make -e PYTHON=python2 regress
9 @make -e PYTHON=python3 regress
10 @echo "No diff output is good news."
15 ../sst.py -r $< >$@ 2>&1
17 TESTLOADS := $(shell ls *.log | sed '/.log/s///')
19 @for test in $(TESTLOADS); do \
20 if [ ! -f $${test}.tst ] ; \
22 echo "Remaking $${test}.chk"; \
23 rm -f $${test}.chk && ../sst.py -r $${test}.log >$${test}.chk 2>&1; \
27 @for test in $(TESTLOADS); \
29 if [ ! -f $${test}.tst ] ; \
31 (if echo -n "$${test}: " >&2; grep 'Test' $${test}.log >&2;\
32 $(PYTHON) ../sst.py -r $${test}.log >/tmp/regress 2>&1; \
33 then diff -u $${test}.chk /tmp/regress; \
34 else echo "*** Nonzero return status on $${test}!"; exit 1; fi;) \