Mercurial > ~dholland > hg > tradcpp > index.cgi
annotate tests/Makefile @ 71:dc63e70e425d
Accept and ignore -traditional.
author | David A. Holland |
---|---|
date | Mon, 10 Jun 2013 16:05:42 -0400 |
parents | ca5e4e0237f5 |
children | d122b4553150 |
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 \ | |
66
f8507e5ed84c
Recognize directive lines only when the # is exactly in column 0.
David A. Holland
parents:
65
diff
changeset
|
6 t17 t18 t19 t20 t21 |
26 | 7 |
8 all: run-tests .WAIT show-diffs | |
9 | |
10 .for T in $(TESTS) | |
11 run-tests: $(T).diff | |
12 | |
13 $(T).diff: $(T).run $(T).good $(TRADCPP) | |
48 | 14 -diff -u $(T).good $(T).run > $(T).diff |
26 | 15 |
16 $(T).run: $(TRADCPP) $(T).c | |
28 | 17 $(TRADCPP) $(T).c > $(T).run 2>&1 || echo FAILED >> $(T).run |
26 | 18 .endfor |
19 | |
20 show-diffs: | |
21 @echo '*** Test diffs ***' | |
22 .for T in $(TESTS) | |
23 @cat $(T).diff | |
24 .endfor | |
25 | |
26 clean: | |
27 .for T in $(TESTS) | |
28 rm -f $(T).run $(T).diff | |
29 .endfor | |
30 | |
31 good: | |
32 .for T in $(TESTS) | |
33 cp $(T).run $(T).good | |
34 .endfor | |
35 | |
36 .PHONY: all run-tests show-diffs clean good | |
59 | 37 |
38 ############################################################ | |
39 | |
40 .if defined(ALLOW_BROKEN_ATF_POLLUTION) | |
41 TESTDIR= ${TESTSBASE}/usr.bin/tradcpp | |
42 TESTS_SH+= tradcpp | |
43 .include <bsd.test.mk> | |
44 .endif |