Mercurial > ~dholland > hg > tradcpp > index.cgi
comparison tests/Makefile @ 28:8a955e3dda2c posted-20101220
two more tests, more fixes
author | David A. Holland |
---|---|
date | Mon, 20 Dec 2010 05:42:15 -0500 |
parents | ac45dcc57ff9 |
children | b30f69cab9bc |
comparison
equal
deleted
inserted
replaced
27:01c3a2088ab4 | 28:8a955e3dda2c |
---|---|
1 TRADCPP=../obj/tradcpp # XXX | 1 TRADCPP=../obj/tradcpp # XXX |
2 | 2 |
3 TESTS=t01 t02 t03 t04 t05 t06 t07 | 3 TESTS=t01 t02 t03 t04 t05 t06 t07 t08 t09 |
4 | 4 |
5 all: run-tests .WAIT show-diffs | 5 all: run-tests .WAIT show-diffs |
6 | 6 |
7 .for T in $(TESTS) | 7 .for T in $(TESTS) |
8 run-tests: $(T).diff | 8 run-tests: $(T).diff |
9 | 9 |
10 $(T).diff: $(T).run $(T).good $(TRADCPP) | 10 $(T).diff: $(T).run $(T).good $(TRADCPP) |
11 -diff $(T).good $(T).run > $(T).diff | 11 -diff $(T).good $(T).run > $(T).diff |
12 | 12 |
13 $(T).run: $(TRADCPP) $(T).c | 13 $(T).run: $(TRADCPP) $(T).c |
14 $(TRADCPP) $(T).c $(T).run | 14 $(TRADCPP) $(T).c > $(T).run 2>&1 || echo FAILED >> $(T).run |
15 .endfor | 15 .endfor |
16 | 16 |
17 show-diffs: | 17 show-diffs: |
18 @echo '*** Test diffs ***' | 18 @echo '*** Test diffs ***' |
19 .for T in $(TESTS) | 19 .for T in $(TESTS) |