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
10 REGRESS_SETUP_ONCE = setup-comp
11 REGRESS_CLEANUP = clean-comp
12 NO_OBJ = Yes
14 CFLAGS += -I${.CURDIR}/../
16 setup-comp:
17 cp ${.CURDIR}/../tmpl.c .
18 ln -f ${.CURDIR}/../template template || \
19 ln -f ${.CURDIR}/../obj/template template
21 clean-comp:
22 rm template
23 rm -f t got 0*.[cdo] runbase.[do] runlist.[do] tmpl.*
25 .SUFFIXES: .tmpl .c .o
27 .tmpl.c:
28 ./template -o $@ $?
30 00-empty:
31 ./template 00-empty.tmpl >/dev/null
33 01-noise-only:
34 ./template 01-noise-only.tmpl >/dev/null
36 02-only-verbatim: 02-only-verbatim.o tmpl.o
37 ${CC} 02-only-verbatim.o tmpl.o -o t && ./t > got
38 diff -u ${.CURDIR}/02.expected got
40 03-block: 03-block.o runbase.o tmpl.o
41 ${CC} 03-block.o runbase.o tmpl.o -o t && ./t > got
42 diff -u ${.CURDIR}/03.expected got
44 04-flow: 04-flow.o runbase.o tmpl.o
45 ${CC} 04-flow.o runbase.o tmpl.o -o t && ./t > got
46 diff -u ${.CURDIR}/04.expected got
48 05-loop: 05-loop.o runlist.o tmpl.o
49 ${CC} 05-loop.o runlist.o tmpl.o -o t && ./t > got
50 diff -u ${.CURDIR}/05.expected got
52 06-escape: 06-escape.o runbase.o tmpl.o
53 ${CC} 06-escape.o runbase.o tmpl.o -o t && ./t > got
54 diff -u ${.CURDIR}/06.expected got
56 07-printf: 07-printf.o runbase.o tmpl.o
57 ${CC} 07-printf.o runbase.o tmpl.o -o t && ./t > got
58 diff -u ${.CURDIR}/07.expected got
60 .include <bsd.regress.mk>