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