Follow through on uncompleted name change.
[super-star-trek.git] / test / Makefile
1 # Test-suite makefile for sst
2
3 all: regress
4         @echo "No diff output is good news."
5
6 .SUFFIXES: .log .chk
7
8 .log.chk:
9         ../sst.py -r $< >$@ 2>&1
10
11 TESTLOADS := $(shell ls *.log | sed '/.log/s///')
12 buildregress:
13         @for test in $(TESTLOADS); do \
14             if [ ! -f $${test}.tst ] ; \
15             then \
16                     echo "Remaking $${test}.chk"; \
17                     rm -f $${test}.chk && ../sst.py -r $${test}.log >$${test}.chk 2>&1; \
18             fi \
19         done
20 regress:
21         @for test in $(TESTLOADS); \
22         do \
23             if [ ! -f $${test}.tst ] ; \
24             then \
25                 (if echo "Testing $${test}" >&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;) \
29             fi \
30         done
31         @rm -f /tmp/regress