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