Mercurial > ~dholland > hg > tradcpp > index.cgi
annotate tests/Makefile @ 194:879fd8f0dd53
add test that would have caught the breakage in 0.5
author | David A. Holland |
---|---|
date | Fri, 12 Jun 2015 22:02:50 -0400 |
parents | 82cc6fa54b01 |
children |
rev | line source |
---|---|
61 | 1 TRADCPP_OBJDIR!= ${MAKE} -C ${.CURDIR}/.. -V .OBJDIR |
50 | 2 TRADCPP= ${TRADCPP_OBJDIR}/tradcpp |
26 | 3 |
59 | 4 TESTS=\ |
5 t01 t02 t03 t04 t05 t06 t07 t08 t09 t10 t11 t12 t13 t14 t15 t16 \ | |
145 | 6 t17 t18 t19 t20 t21 t22 t23 t24 t25 t26 t27 t28 t29 t30 t31 t32 \ |
194
879fd8f0dd53
add test that would have caught the breakage in 0.5
David A. Holland
parents:
162
diff
changeset
|
7 t33 t34 t35 t36 t37 t38 t39 t40 |
26 | 8 |
9 all: run-tests .WAIT show-diffs | |
10 | |
11 .for T in $(TESTS) | |
12 run-tests: $(T).diff | |
13 | |
14 $(T).diff: $(T).run $(T).good $(TRADCPP) | |
48 | 15 -diff -u $(T).good $(T).run > $(T).diff |
26 | 16 |
17 $(T).run: $(TRADCPP) $(T).c | |
28 | 18 $(TRADCPP) $(T).c > $(T).run 2>&1 || echo FAILED >> $(T).run |
26 | 19 .endfor |
20 | |
21 show-diffs: | |
22 @echo '*** Test diffs ***' | |
23 .for T in $(TESTS) | |
24 @cat $(T).diff | |
25 .endfor | |
26 | |
27 clean: | |
28 .for T in $(TESTS) | |
29 rm -f $(T).run $(T).diff | |
30 .endfor | |
31 | |
32 good: | |
33 .for T in $(TESTS) | |
34 cp $(T).run $(T).good | |
35 .endfor | |
36 | |
37 .PHONY: all run-tests show-diffs clean good | |
59 | 38 |
39 ############################################################ | |
40 | |
41 .if defined(ALLOW_BROKEN_ATF_POLLUTION) | |
42 TESTDIR= ${TESTSBASE}/usr.bin/tradcpp | |
43 TESTS_SH+= tradcpp | |
44 .include <bsd.test.mk> | |
45 .endif |