Blob


1 REGRESS_TARGETS = 00-empty \
2 01-noise-only \
3 02-only-verbatim \
4 03-block \
5 04-flow \
6 05-loop \
7 06-escape \
8 07-printf \
9 08-dangling
11 REGRESS_SETUP_ONCE = setup-comp
12 REGRESS_CLEANUP = clean-comp
13 NO_OBJ = Yes
15 CFLAGS += -I${.CURDIR}/../
17 setup-comp:
18 cp ${.CURDIR}/../tmpl.c .
19 ln -f ${.CURDIR}/../template template || \
20 ln -f ${.CURDIR}/../obj/template template
22 clean-comp:
23 rm template
24 rm -f t got 0*.[cdo] runbase.[do] runlist.[do] tmpl.*
26 .SUFFIXES: .tmpl .c .o
28 .tmpl.c:
29 ./template -o $@ $?
31 00-empty:
32 ./template 00-empty.tmpl >/dev/null
34 01-noise-only:
35 ./template 01-noise-only.tmpl >/dev/null
37 02-only-verbatim: 02-only-verbatim.o tmpl.o
38 ${CC} 02-only-verbatim.o tmpl.o -o t && ./t > got
39 diff -u ${.CURDIR}/02.expected got
41 03-block: 03-block.o runbase.o tmpl.o
42 ${CC} 03-block.o runbase.o tmpl.o -o t && ./t > got
43 diff -u ${.CURDIR}/03.expected got
45 04-flow: 04-flow.o runbase.o tmpl.o
46 ${CC} 04-flow.o runbase.o tmpl.o -o t && ./t > got
47 diff -u ${.CURDIR}/04.expected got
49 05-loop: 05-loop.o runlist.o tmpl.o
50 ${CC} 05-loop.o runlist.o tmpl.o -o t && ./t > got
51 diff -u ${.CURDIR}/05.expected got
53 06-escape: 06-escape.o runbase.o tmpl.o
54 ${CC} 06-escape.o runbase.o tmpl.o -o t && ./t > got
55 diff -u ${.CURDIR}/06.expected got
57 07-printf: 07-printf.o runbase.o tmpl.o
58 ${CC} 07-printf.o runbase.o tmpl.o -o t && ./t > got
59 diff -u ${.CURDIR}/07.expected got
61 08-dangling: 08-dangling.o runbase.o tmpl.o
62 ${CC} 08-dangling.o runbase.o tmpl.o -o t && ./t > got
63 diff -u ${.CURDIR}/08.expected got
65 .include <bsd.regress.mk>