1 # Test-suite makefile for sst
4 @$(MAKE) regress | ./tapview
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 -r $${test}.log >$${test}.chk 2>&1; \
21 @echo "1..$$(ls *.log | wc -l)"
22 @for test in $(TESTLOADS); \
24 if [ ! -f $${test}.tst ] ; \
26 legend=$$(sed -n -e '/# Test/s//Test/p' <$${test}.log); \
27 ../sst -r "$${test}.log" | ./tapdiffer "$${legend}" "$${test}.chk"; \
34 @for test in $(TESTLOADS); \
36 if [ ! -f $${test}.tst ] ; \
38 coverage run -a ../sst -r "$${test}.log" >/dev/null; \
44 rm -f .coverage htmlcov/index.html