comparison tests/Makefile @ 26:ac45dcc57ff9

add some simple tests
author David A. Holland
date Mon, 20 Dec 2010 05:01:07 -0500
parents
children 8a955e3dda2c
comparison
equal deleted inserted replaced
25:18681e5ae6e4 26:ac45dcc57ff9
1 TRADCPP=../obj/tradcpp # XXX
2
3 TESTS=t01 t02 t03 t04 t05 t06 t07
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
14 $(TRADCPP) $(T).c $(T).run
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