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