26
|
1 TRADCPP=../obj/tradcpp # XXX
|
|
2
|
28
|
3 TESTS=t01 t02 t03 t04 t05 t06 t07 t08 t09
|
26
|
4
|
|
5 all: run-tests .WAIT show-diffs
|
|
6
|
|
7 .for T in $(TESTS)
|
|
8 run-tests: $(T).diff
|
|
9
|
|
10 $(T).diff: $(T).run $(T).good $(TRADCPP)
|
|
11 -diff $(T).good $(T).run > $(T).diff
|
|
12
|
|
13 $(T).run: $(TRADCPP) $(T).c
|
28
|
14 $(TRADCPP) $(T).c > $(T).run 2>&1 || echo FAILED >> $(T).run
|
26
|
15 .endfor
|
|
16
|
|
17 show-diffs:
|
|
18 @echo '*** Test diffs ***'
|
|
19 .for T in $(TESTS)
|
|
20 @cat $(T).diff
|
|
21 .endfor
|
|
22
|
|
23 clean:
|
|
24 .for T in $(TESTS)
|
|
25 rm -f $(T).run $(T).diff
|
|
26 .endfor
|
|
27
|
|
28 good:
|
|
29 .for T in $(TESTS)
|
|
30 cp $(T).run $(T).good
|
|
31 .endfor
|
|
32
|
|
33 .PHONY: all run-tests show-diffs clean good
|