Mercurial > ~dholland > hg > tradcpp > index.cgi
annotate tests/Makefile @ 109:4483a14ee101
Make -Wcomment work again
author | David A. Holland |
---|---|
date | Tue, 11 Jun 2013 12:26:20 -0400 |
parents | ecec7c16e3ba |
children | 4f493fb35821 |
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 \ | |
106
ecec7c16e3ba
add a couple more tests, taken from the 2010 tech-toolchain thread
David A. Holland
parents:
94
diff
changeset
|
6 t17 t18 t19 t20 t21 t22 t23 t24 t25 t26 |
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 |