Mercurial > ~dholland > hg > tradcpp > index.cgi
annotate tests/Makefile @ 49:8a204d153398
Intercept multiline comments earlier. Leave same-line comments alone.
Fixes all of the pathological comment behavior we've noticed so far.
author | David A. Holland |
---|---|
date | Sun, 31 Mar 2013 01:04:43 -0400 |
parents | 0af03c5571e0 |
children | a52f0229f22b 737ffe27b4bd |
rev | line source |
---|---|
26 | 1 TRADCPP=../obj/tradcpp # XXX |
2 | |
49
8a204d153398
Intercept multiline comments earlier. Leave same-line comments alone.
David A. Holland
parents:
48
diff
changeset
|
3 TESTS=t01 t02 t03 t04 t05 t06 t07 t08 t09 t10 t11 t12 t13 t14 t15 |
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) | |
48 | 11 -diff -u $(T).good $(T).run > $(T).diff |
26 | 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 |