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
9 REGRESS_SETUP_ONCE = setup-comp
10 REGRESS_CLEANUP = clean-comp
11 NO_OBJ = Yes
13 CFLAGS += -I${.CURDIR}/../
15 setup-comp:
16 cp ${.CURDIR}/../tmpl.c .
17 ln -f ${.CURDIR}/../template template || \
18 ln -f ${.CURDIR}/../obj/template template
20 clean-comp:
21 rm template
22 rm -f t got 0*.[cdo] runbase.[do] runlist.[do] tmpl.*
24 .SUFFIXES: .tmpl .c .o
26 .tmpl.c:
27 ./template $? > $@
29 00-empty:
30 ./template 00-empty.tmpl >/dev/null
32 01-noise-only:
33 ./template 01-noise-only.tmpl >/dev/null
35 02-only-verbatim: 02-only-verbatim.o tmpl.o
36 ${CC} 02-only-verbatim.o tmpl.o -o t && ./t > got
37 diff -u ${.CURDIR}/02.expected got
39 03-block: 03-block.o runbase.o tmpl.o
40 ${CC} 03-block.o runbase.o tmpl.o -o t && ./t > got
41 diff -u ${.CURDIR}/03.expected got
43 04-flow: 04-flow.o runbase.o tmpl.o
44 ${CC} 04-flow.o runbase.o tmpl.o -o t && ./t > got
45 diff -u ${.CURDIR}/04.expected got
47 05-loop: 05-loop.o runlist.o tmpl.o
48 ${CC} 05-loop.o runlist.o tmpl.o -o t && ./t > got
49 diff -u ${.CURDIR}/05.expected got
51 06-escape: 06-escape.o runbase.o tmpl.o
52 ${CC} 06-escape.o runbase.o tmpl.o -o t && ./t > got
53 diff -u ${.CURDIR}/06.expected got
55 .include <bsd.regress.mk>