1 # Test-suite makefile for sst
6 @echo "No diff output is good news."
11 ../sst.py -r $< >$@ 2>&1
13 TESTLOADS := $(shell ls *.log | sed '/.log/s///')
15 @for test in $(TESTLOADS); do \
16 if [ ! -f $${test}.tst ] ; \
18 echo "Remaking $${test}.chk"; \
19 rm -f $${test}.chk && ../sst.py -r $${test}.log >$${test}.chk 2>&1; \
23 @for test in $(TESTLOADS); \
25 if [ ! -f $${test}.tst ] ; \
27 (if echo -n "$${test}: " >&2; grep 'Test' $${test}.log >&2;\
28 $(PYTHON) ../sst.py -r $${test}.log >/tmp/regress 2>&1; \
29 then diff -u $${test}.chk /tmp/regress; \
30 else echo "*** Nonzero return status on $${test}!"; exit 1; fi;) \