xref: /freebsd/usr.bin/yacc/tests/Makefile (revision 1f4bcc459a76b7aa664f3fd557684cd0ba6da352)
1# $FreeBSD$
2
3.include <bsd.own.mk>
4
5PACKAGE=	tests
6FILESGROUPS=	TESTS
7TESTSPACKAGE=	${PACKAGE}
8PACKAGE=	tests
9
10TEST_DIR=	${SRCTOP}/contrib/byacc/test
11
12.PATH: ${TEST_DIR} ${TEST_DIR}/yacc
13
14PLAIN_TESTS_SH=	yacc_tests
15# NOTE: due to caveats with how permissions are handled on FreeBSD
16# with root, this must be run as a non-privileged user; otherwise
17# the testcases will fail unexpectedly.
18TEST_METADATA.yacc_tests+=	required_user="unprivileged"
19
20SCRIPTS=	run_test
21SCRIPTSDIR=	${TESTSDIR}
22
23CLEANFILES=	run_test
24
25FILESGROUPS+=	FILES FILEStest FILEStest_yacc
26FILESPACKAGE=	${PACKAGE}
27FILEStestPACKAGE=${PACKAGE}
28FILEStest_yaccPACKAGE=${PACKAGE}
29
30FILEStestDIR=	${TESTSDIR}
31
32FILEStest+=	btyacc_calc1.y
33FILEStest+=	btyacc_demo.y
34FILEStest+=	calc.y
35FILEStest+=	calc1.y
36FILEStest+=	calc2.y
37FILEStest+=	calc3.y
38FILEStest+=	code_calc.y
39FILEStest+=	code_debug.y
40FILEStest+=	code_error.y
41FILEStest+=	empty.y
42FILEStest+=	err_inherit1.y
43FILEStest+=	err_inherit2.y
44FILEStest+=	err_inherit3.y
45FILEStest+=	err_inherit4.y
46FILEStest+=	err_inherit5.y
47FILEStest+=	err_syntax1.y
48FILEStest+=	err_syntax10.y
49FILEStest+=	err_syntax11.y
50FILEStest+=	err_syntax12.y
51FILEStest+=	err_syntax13.y
52FILEStest+=	err_syntax14.y
53FILEStest+=	err_syntax15.y
54FILEStest+=	err_syntax16.y
55FILEStest+=	err_syntax17.y
56FILEStest+=	err_syntax18.y
57FILEStest+=	err_syntax19.y
58FILEStest+=	err_syntax2.y
59FILEStest+=	err_syntax20.y
60FILEStest+=	err_syntax21.y
61FILEStest+=	err_syntax22.y
62FILEStest+=	err_syntax23.y
63FILEStest+=	err_syntax24.y
64FILEStest+=	err_syntax25.y
65FILEStest+=	err_syntax26.y
66FILEStest+=	err_syntax27.y
67FILEStest+=	err_syntax3.y
68FILEStest+=	err_syntax4.y
69FILEStest+=	err_syntax5.y
70FILEStest+=	err_syntax6.y
71FILEStest+=	err_syntax7.y
72FILEStest+=	err_syntax7a.y
73FILEStest+=	err_syntax7b.y
74FILEStest+=	err_syntax8.y
75FILEStest+=	err_syntax8a.y
76FILEStest+=	err_syntax9.y
77FILEStest+=	error.y
78FILEStest+=	grammar.y
79FILEStest+=	inherit0.y
80FILEStest+=	inherit1.y
81FILEStest+=	inherit2.y
82FILEStest+=	ok_syntax1.y
83FILEStest+=	pure_calc.y
84FILEStest+=	pure_error.y
85FILEStest+=	quote_calc.y
86FILEStest+=	quote_calc2.y
87FILEStest+=	quote_calc3.y
88FILEStest+=	quote_calc4.y
89FILEStest+=	varsyntax_calc1.y
90
91FILEStest_yaccDIR=	${TESTSDIR}/yacc
92
93FILEStest_yacc+=	big_b.error
94FILEStest_yacc+=	big_b.output
95FILEStest_yacc+=	big_l.error
96FILEStest_yacc+=	big_l.output
97FILEStest_yacc+=	calc.error
98FILEStest_yacc+=	calc.output
99FILEStest_yacc+=	calc.tab.c
100FILEStest_yacc+=	calc.tab.h
101FILEStest_yacc+=	calc1.error
102FILEStest_yacc+=	calc1.output
103FILEStest_yacc+=	calc1.tab.c
104FILEStest_yacc+=	calc1.tab.h
105FILEStest_yacc+=	calc2.error
106FILEStest_yacc+=	calc2.output
107FILEStest_yacc+=	calc2.tab.c
108FILEStest_yacc+=	calc2.tab.h
109FILEStest_yacc+=	calc3.error
110FILEStest_yacc+=	calc3.output
111FILEStest_yacc+=	calc3.tab.c
112FILEStest_yacc+=	calc3.tab.h
113FILEStest_yacc+=	code_calc.code.c
114FILEStest_yacc+=	code_calc.error
115FILEStest_yacc+=	code_calc.output
116FILEStest_yacc+=	code_calc.tab.c
117FILEStest_yacc+=	code_calc.tab.h
118FILEStest_yacc+=	code_error.code.c
119FILEStest_yacc+=	code_error.error
120FILEStest_yacc+=	code_error.output
121FILEStest_yacc+=	code_error.tab.c
122FILEStest_yacc+=	code_error.tab.h
123FILEStest_yacc+=	empty.error
124FILEStest_yacc+=	empty.output
125FILEStest_yacc+=	empty.tab.c
126FILEStest_yacc+=	empty.tab.h
127FILEStest_yacc+=	err_syntax1.error
128FILEStest_yacc+=	err_syntax1.output
129FILEStest_yacc+=	err_syntax1.tab.c
130FILEStest_yacc+=	err_syntax1.tab.h
131FILEStest_yacc+=	err_syntax10.error
132FILEStest_yacc+=	err_syntax10.output
133FILEStest_yacc+=	err_syntax10.tab.c
134FILEStest_yacc+=	err_syntax10.tab.h
135FILEStest_yacc+=	err_syntax11.error
136FILEStest_yacc+=	err_syntax11.output
137FILEStest_yacc+=	err_syntax11.tab.c
138FILEStest_yacc+=	err_syntax11.tab.h
139FILEStest_yacc+=	err_syntax12.error
140FILEStest_yacc+=	err_syntax12.output
141FILEStest_yacc+=	err_syntax12.tab.c
142FILEStest_yacc+=	err_syntax12.tab.h
143FILEStest_yacc+=	err_syntax13.error
144FILEStest_yacc+=	err_syntax13.output
145FILEStest_yacc+=	err_syntax13.tab.c
146FILEStest_yacc+=	err_syntax13.tab.h
147FILEStest_yacc+=	err_syntax14.error
148FILEStest_yacc+=	err_syntax14.output
149FILEStest_yacc+=	err_syntax14.tab.c
150FILEStest_yacc+=	err_syntax14.tab.h
151FILEStest_yacc+=	err_syntax15.error
152FILEStest_yacc+=	err_syntax15.output
153FILEStest_yacc+=	err_syntax15.tab.c
154FILEStest_yacc+=	err_syntax15.tab.h
155FILEStest_yacc+=	err_syntax16.error
156FILEStest_yacc+=	err_syntax16.output
157FILEStest_yacc+=	err_syntax16.tab.c
158FILEStest_yacc+=	err_syntax16.tab.h
159FILEStest_yacc+=	err_syntax17.error
160FILEStest_yacc+=	err_syntax17.output
161FILEStest_yacc+=	err_syntax17.tab.c
162FILEStest_yacc+=	err_syntax17.tab.h
163FILEStest_yacc+=	err_syntax18.error
164FILEStest_yacc+=	err_syntax18.output
165FILEStest_yacc+=	err_syntax18.tab.c
166FILEStest_yacc+=	err_syntax18.tab.h
167FILEStest_yacc+=	err_syntax19.error
168FILEStest_yacc+=	err_syntax19.output
169FILEStest_yacc+=	err_syntax19.tab.c
170FILEStest_yacc+=	err_syntax19.tab.h
171FILEStest_yacc+=	err_syntax2.error
172FILEStest_yacc+=	err_syntax2.output
173FILEStest_yacc+=	err_syntax2.tab.c
174FILEStest_yacc+=	err_syntax2.tab.h
175FILEStest_yacc+=	err_syntax20.error
176FILEStest_yacc+=	err_syntax20.output
177FILEStest_yacc+=	err_syntax20.tab.c
178FILEStest_yacc+=	err_syntax20.tab.h
179FILEStest_yacc+=	err_syntax21.error
180FILEStest_yacc+=	err_syntax21.output
181FILEStest_yacc+=	err_syntax21.tab.c
182FILEStest_yacc+=	err_syntax21.tab.h
183FILEStest_yacc+=	err_syntax22.error
184FILEStest_yacc+=	err_syntax22.output
185FILEStest_yacc+=	err_syntax22.tab.c
186FILEStest_yacc+=	err_syntax22.tab.h
187FILEStest_yacc+=	err_syntax23.error
188FILEStest_yacc+=	err_syntax23.output
189FILEStest_yacc+=	err_syntax23.tab.c
190FILEStest_yacc+=	err_syntax23.tab.h
191FILEStest_yacc+=	err_syntax24.error
192FILEStest_yacc+=	err_syntax24.output
193FILEStest_yacc+=	err_syntax24.tab.c
194FILEStest_yacc+=	err_syntax24.tab.h
195FILEStest_yacc+=	err_syntax25.error
196FILEStest_yacc+=	err_syntax25.output
197FILEStest_yacc+=	err_syntax25.tab.c
198FILEStest_yacc+=	err_syntax25.tab.h
199FILEStest_yacc+=	err_syntax26.error
200FILEStest_yacc+=	err_syntax26.output
201FILEStest_yacc+=	err_syntax26.tab.c
202FILEStest_yacc+=	err_syntax26.tab.h
203FILEStest_yacc+=	err_syntax27.error
204FILEStest_yacc+=	err_syntax27.output
205FILEStest_yacc+=	err_syntax27.tab.c
206FILEStest_yacc+=	err_syntax27.tab.h
207FILEStest_yacc+=	err_syntax3.error
208FILEStest_yacc+=	err_syntax3.output
209FILEStest_yacc+=	err_syntax3.tab.c
210FILEStest_yacc+=	err_syntax3.tab.h
211FILEStest_yacc+=	err_syntax4.error
212FILEStest_yacc+=	err_syntax4.output
213FILEStest_yacc+=	err_syntax4.tab.c
214FILEStest_yacc+=	err_syntax4.tab.h
215FILEStest_yacc+=	err_syntax5.error
216FILEStest_yacc+=	err_syntax5.output
217FILEStest_yacc+=	err_syntax5.tab.c
218FILEStest_yacc+=	err_syntax5.tab.h
219FILEStest_yacc+=	err_syntax6.error
220FILEStest_yacc+=	err_syntax6.output
221FILEStest_yacc+=	err_syntax6.tab.c
222FILEStest_yacc+=	err_syntax6.tab.h
223FILEStest_yacc+=	err_syntax7.error
224FILEStest_yacc+=	err_syntax7.output
225FILEStest_yacc+=	err_syntax7.tab.c
226FILEStest_yacc+=	err_syntax7.tab.h
227FILEStest_yacc+=	err_syntax7a.error
228FILEStest_yacc+=	err_syntax7a.output
229FILEStest_yacc+=	err_syntax7a.tab.c
230FILEStest_yacc+=	err_syntax7a.tab.h
231FILEStest_yacc+=	err_syntax7b.error
232FILEStest_yacc+=	err_syntax7b.output
233FILEStest_yacc+=	err_syntax7b.tab.c
234FILEStest_yacc+=	err_syntax7b.tab.h
235FILEStest_yacc+=	err_syntax8.error
236FILEStest_yacc+=	err_syntax8.output
237FILEStest_yacc+=	err_syntax8.tab.c
238FILEStest_yacc+=	err_syntax8.tab.h
239FILEStest_yacc+=	err_syntax8a.error
240FILEStest_yacc+=	err_syntax8a.output
241FILEStest_yacc+=	err_syntax8a.tab.c
242FILEStest_yacc+=	err_syntax8a.tab.h
243FILEStest_yacc+=	err_syntax9.error
244FILEStest_yacc+=	err_syntax9.output
245FILEStest_yacc+=	err_syntax9.tab.c
246FILEStest_yacc+=	err_syntax9.tab.h
247FILEStest_yacc+=	error.error
248FILEStest_yacc+=	error.output
249FILEStest_yacc+=	error.tab.c
250FILEStest_yacc+=	error.tab.h
251FILEStest_yacc+=	grammar.dot
252FILEStest_yacc+=	grammar.error
253FILEStest_yacc+=	grammar.output
254FILEStest_yacc+=	grammar.tab.c
255FILEStest_yacc+=	grammar.tab.h
256FILEStest_yacc+=	help.error
257FILEStest_yacc+=	help.output
258FILEStest_yacc+=	no_b_opt.error
259FILEStest_yacc+=	no_b_opt.output
260FILEStest_yacc+=	no_b_opt1.error
261FILEStest_yacc+=	no_b_opt1.output
262FILEStest_yacc+=	no_code_c.error
263FILEStest_yacc+=	no_code_c.output
264FILEStest_yacc+=	no_defines.error
265FILEStest_yacc+=	no_defines.output
266FILEStest_yacc+=	no_graph.error
267FILEStest_yacc+=	no_graph.output
268FILEStest_yacc+=	no_include.error
269FILEStest_yacc+=	no_include.output
270FILEStest_yacc+=	no_opts.error
271FILEStest_yacc+=	no_opts.output
272FILEStest_yacc+=	no_output.error
273FILEStest_yacc+=	no_output.output
274FILEStest_yacc+=	no_output1.error
275FILEStest_yacc+=	no_output1.output
276FILEStest_yacc+=	no_output2.error
277FILEStest_yacc+=	no_output2.output
278FILEStest_yacc+=	no_p_opt.error
279FILEStest_yacc+=	no_p_opt.output
280FILEStest_yacc+=	no_p_opt1.error
281FILEStest_yacc+=	no_p_opt1.output
282FILEStest_yacc+=	no_verbose.error
283FILEStest_yacc+=	no_verbose.output
284FILEStest_yacc+=	nostdin.error
285FILEStest_yacc+=	nostdin.output
286FILEStest_yacc+=	ok_syntax1.error
287FILEStest_yacc+=	ok_syntax1.output
288FILEStest_yacc+=	ok_syntax1.tab.c
289FILEStest_yacc+=	ok_syntax1.tab.h
290FILEStest_yacc+=	pure_calc.error
291FILEStest_yacc+=	pure_calc.output
292FILEStest_yacc+=	pure_calc.tab.c
293FILEStest_yacc+=	pure_calc.tab.h
294FILEStest_yacc+=	pure_error.error
295FILEStest_yacc+=	pure_error.output
296FILEStest_yacc+=	pure_error.tab.c
297FILEStest_yacc+=	pure_error.tab.h
298FILEStest_yacc+=	quote_calc-s.error
299FILEStest_yacc+=	quote_calc-s.output
300FILEStest_yacc+=	quote_calc-s.tab.c
301FILEStest_yacc+=	quote_calc-s.tab.h
302FILEStest_yacc+=	quote_calc.error
303FILEStest_yacc+=	quote_calc.output
304FILEStest_yacc+=	quote_calc.tab.c
305FILEStest_yacc+=	quote_calc.tab.h
306FILEStest_yacc+=	quote_calc2-s.error
307FILEStest_yacc+=	quote_calc2-s.output
308FILEStest_yacc+=	quote_calc2-s.tab.c
309FILEStest_yacc+=	quote_calc2-s.tab.h
310FILEStest_yacc+=	quote_calc2.error
311FILEStest_yacc+=	quote_calc2.output
312FILEStest_yacc+=	quote_calc2.tab.c
313FILEStest_yacc+=	quote_calc2.tab.h
314FILEStest_yacc+=	quote_calc3-s.error
315FILEStest_yacc+=	quote_calc3-s.output
316FILEStest_yacc+=	quote_calc3-s.tab.c
317FILEStest_yacc+=	quote_calc3-s.tab.h
318FILEStest_yacc+=	quote_calc3.error
319FILEStest_yacc+=	quote_calc3.output
320FILEStest_yacc+=	quote_calc3.tab.c
321FILEStest_yacc+=	quote_calc3.tab.h
322FILEStest_yacc+=	quote_calc4-s.error
323FILEStest_yacc+=	quote_calc4-s.output
324FILEStest_yacc+=	quote_calc4-s.tab.c
325FILEStest_yacc+=	quote_calc4-s.tab.h
326FILEStest_yacc+=	quote_calc4.error
327FILEStest_yacc+=	quote_calc4.output
328FILEStest_yacc+=	quote_calc4.tab.c
329FILEStest_yacc+=	quote_calc4.tab.h
330FILEStest_yacc+=	rename_debug.c
331FILEStest_yacc+=	rename_debug.error
332FILEStest_yacc+=	rename_debug.h
333FILEStest_yacc+=	rename_debug.i
334FILEStest_yacc+=	rename_debug.output
335FILEStest_yacc+=	varsyntax_calc1.error
336FILEStest_yacc+=	varsyntax_calc1.output
337FILEStest_yacc+=	varsyntax_calc1.tab.c
338FILEStest_yacc+=	varsyntax_calc1.tab.h
339
340.include <bsd.test.mk>
341