blob: 04845d90411a4aa092d5c97fda4c46642dd36702 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
# $OpenBSD: Makefile,v 1.32 2016/11/01 00:35:34 tb Exp $
FIBOMAX=25
M4=m4
.SUFFIXES: .m4 .m4.uu
CLEANFILES+= ff_after_dnl.m4 strangequotes.m4 fibo.out
REGRESS_TARGETS= test-ff_after_dnl test-m4wrap test-m4wrap2 \
test-m4wrap3 test-gm4wrap3 test-fibo \
test-patterns trip test-strangequotes test-redef test-redef2 test-quotes \
test-weird test-args test-args2 test-esyscmd test-eval test-gnupatterns \
test-gnupatterns2 test-comments test-synch1 test-synch1bis \
test-gnuformat test-includes test-dumpdef test-gnuprefix \
test-translit test-translit2 test-gnutranslit2 \
test-gnueval test-gnusofterror
test-ff_after_dnl: ff_after_dnl.m4
${M4} ff_after_dnl.m4 | diff - ${.CURDIR}/ff_after_dnl.out
.m4.uu.m4:
uudecode $<
test-m4wrap:
${M4} ${.CURDIR}/m4wrap.m4 | diff - ${.CURDIR}/m4wrap.out
test-m4wrap2:
test `${M4} ${.CURDIR}/m4wrap2.m4 | wc -c` == 0
test-m4wrap3:
${M4} ${.CURDIR}/m4wrap3.m4 | diff - ${.CURDIR}/m4wrap3.out
test-gm4wrap3:
${M4} -g ${.CURDIR}/m4wrap3.m4 | diff - ${.CURDIR}/gm4wrap3.out
test-patterns:
${M4} ${.CURDIR}/patterns.m4 | diff - ${.CURDIR}/patterns.out
test-gnupatterns:
${M4} -g ${.CURDIR}/gnupatterns.m4 | diff - ${.CURDIR}/gnupatterns.out
test-gnupatterns2:
${M4} -g ${.CURDIR}/gnupatterns2.m4 | diff - ${.CURDIR}/gnupatterns2.out
test-gnuformat:
${M4} -g ${.CURDIR}/gnuformat.m4 | diff - ${.CURDIR}/gnuformat.out
test-translit:
${M4} ${.CURDIR}/translit.m4 | diff - ${.CURDIR}/translit.out
fibo.out:
perl ${.CURDIR}/fibo.pl ${FIBOMAX} >$@
test-fibo: fibo.out
${M4} -DN=${FIBOMAX} ${.CURDIR}/fibo.m4| diff - fibo.out
trip:
echo "undefine(\`errprint')" | ${M4} -Derrprint=a >/dev/null
test-quotes:
${M4} ${.CURDIR}/quotes.m4 2>&1| \
sed -e 's,\( *\).*/quotes.m4,\1quotes.m4,' | \
diff - ${.CURDIR}/quotes.out
test-comments:
${M4} ${.CURDIR}/comments.m4 | diff - ${.CURDIR}/comments.out
test-strangequotes: strangequotes.m4
${M4} strangequotes.m4| diff - ${.CURDIR}/strangequotes.out
test-redef:
${M4} ${.CURDIR}/redef.m4 | diff - ${.CURDIR}/redef.out
test-redef2:
MALLOC_OPTIONS=F ${M4} ${.CURDIR}/redef2.m4 2>/dev/null
test-weird:
test `${M4} ${.CURDIR}/weird,name.m4 | wc -c` == 0
test-args2:
${M4} ${.CURDIR}/args2.m4 | diff - ${.CURDIR}/args2.out
test-args:
${M4} ${.CURDIR}/args.m4 | diff - ${.CURDIR}/args.out
test-includes:
${M4} -I${.CURDIR} ${.CURDIR}/includes.m4 | \
diff - ${.CURDIR}/includes.out
test-esyscmd:
${M4} ${.CURDIR}/esyscmd.m4 | diff -u - ${.CURDIR}/esyscmd.out
test-eval:
${M4} ${.CURDIR}/eval.m4 | diff -u - ${.CURDIR}/eval.out
test-synch1:
${M4} -s ${.CURDIR}/synch1.m4|perl ${.CURDIR}/reconstitute|\
grep MARK| diff - ${.CURDIR}/synch1.out
test-synch1bis:
${M4} -s <${.CURDIR}/synch1.m4|perl ${.CURDIR}/reconstitute|\
grep MARK| diff - ${.CURDIR}/synch1bis.out
test-dumpdef:
${M4} ${.CURDIR}/dumpdef.m4 2>/dev/null
test-gnuprefix:
${M4} -P ${.CURDIR}/gnuprefix.m4 2>&1 | \
diff -u - ${.CURDIR}/gnuprefix.out
test-translit2:
${M4} ${.CURDIR}/translit2.m4 | diff -u - ${.CURDIR}/translit2.out
test-gnutranslit2:
${M4} -g ${.CURDIR}/translit2.m4 | diff -u - ${.CURDIR}/gnutranslit2.out
test-gnueval:
${M4} -g ${.CURDIR}/gnueval.m4 | diff -u - ${.CURDIR}/gnueval.out
test-gnusofterror:
${M4} -g ${.CURDIR}/gnusofterror.m4 2>/dev/null| diff -u - ${.CURDIR}/gnusofterror.out
! ${M4} -g ${.CURDIR}/gnusofterror.m4 2>/dev/null >/dev/null
.PHONY: ${REGRESS_TARGETS}
.include <bsd.regress.mk>
|