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