*** empty log message ***
[coreutils.git] / tests / tac / tac-tests
blobe5ac9b5defdc3462218e916d0c8ce645c92d220b
1 #! /bin/sh
2 # This script was generated automatically by mk-script.
3 case $# in
4 0) xx='../../src/tac';;
5 *) xx="$1";;
6 esac
7 test "$VERBOSE" && echo=echo || echo=:
8 $echo testing program: $xx
9 errors=0
10 test "$srcdir" || srcdir=.
11 test "$VERBOSE" && $xx --version 2> /dev/null
13 # Make sure we get English translations.
14 LANGUAGE=C
15 export LANGUAGE
16 LC_ALL=C
17 export LC_ALL
18 LANG=C
19 export LANG
21 $xx $srcdir/basic-0.I > basic-0.O 2> basic-0.E
22 code=$?
23 if test $code != 0; then
24 $echo "Test basic-0(F) failed: $xx return code $code differs from expected value 0" 1>&2
25 errors=`expr $errors + 1`
26 else
27 cmp basic-0.O $srcdir/basic-0.X > /dev/null 2>&1
28 case $? in
29 0) if test "$VERBOSE"; then $echo "passed basic-0(F)"; fi;;
30 1) $echo "Test basic-0(F) failed: files basic-0.O and $srcdir/basic-0.X differ" 1>&2
31 (diff -c basic-0.O $srcdir/basic-0.X) 2> /dev/null
32 errors=`expr $errors + 1`;;
33 2) $echo "Test basic-0(F) may have failed." 1>&2
34 $echo The command "cmp basic-0.O $srcdir/basic-0.X" failed. 1>&2
35 errors=`expr $errors + 1`;;
36 esac
38 test -s basic-0.E || rm -f basic-0.E
39 cat $srcdir/basic-0.I | $xx > basic-0.O 2> basic-0.E
40 code=$?
41 if test $code != 0; then
42 $echo "Test basic-0(|) failed: $xx return code $code differs from expected value 0" 1>&2
43 errors=`expr $errors + 1`
44 else
45 cmp basic-0.O $srcdir/basic-0.X > /dev/null 2>&1
46 case $? in
47 0) if test "$VERBOSE"; then $echo "passed basic-0(|)"; fi;;
48 1) $echo "Test basic-0(|) failed: files basic-0.O and $srcdir/basic-0.X differ" 1>&2
49 (diff -c basic-0.O $srcdir/basic-0.X) 2> /dev/null
50 errors=`expr $errors + 1`;;
51 2) $echo "Test basic-0(|) may have failed." 1>&2
52 $echo The command "cmp basic-0.O $srcdir/basic-0.X" failed. 1>&2
53 errors=`expr $errors + 1`;;
54 esac
56 test -s basic-0.E || rm -f basic-0.E
57 $xx < $srcdir/basic-0.I > basic-0.O 2> basic-0.E
58 code=$?
59 if test $code != 0; then
60 $echo "Test basic-0(<) failed: $xx return code $code differs from expected value 0" 1>&2
61 errors=`expr $errors + 1`
62 else
63 cmp basic-0.O $srcdir/basic-0.X > /dev/null 2>&1
64 case $? in
65 0) if test "$VERBOSE"; then $echo "passed basic-0(<)"; fi;;
66 1) $echo "Test basic-0(<) failed: files basic-0.O and $srcdir/basic-0.X differ" 1>&2
67 (diff -c basic-0.O $srcdir/basic-0.X) 2> /dev/null
68 errors=`expr $errors + 1`;;
69 2) $echo "Test basic-0(<) may have failed." 1>&2
70 $echo The command "cmp basic-0.O $srcdir/basic-0.X" failed. 1>&2
71 errors=`expr $errors + 1`;;
72 esac
74 test -s basic-0.E || rm -f basic-0.E
75 $xx $srcdir/basic-b.I > basic-b.O 2> basic-b.E
76 code=$?
77 if test $code != 0; then
78 $echo "Test basic-b(F) failed: $xx return code $code differs from expected value 0" 1>&2
79 errors=`expr $errors + 1`
80 else
81 cmp basic-b.O $srcdir/basic-b.X > /dev/null 2>&1
82 case $? in
83 0) if test "$VERBOSE"; then $echo "passed basic-b(F)"; fi;;
84 1) $echo "Test basic-b(F) failed: files basic-b.O and $srcdir/basic-b.X differ" 1>&2
85 (diff -c basic-b.O $srcdir/basic-b.X) 2> /dev/null
86 errors=`expr $errors + 1`;;
87 2) $echo "Test basic-b(F) may have failed." 1>&2
88 $echo The command "cmp basic-b.O $srcdir/basic-b.X" failed. 1>&2
89 errors=`expr $errors + 1`;;
90 esac
92 test -s basic-b.E || rm -f basic-b.E
93 cat $srcdir/basic-b.I | $xx > basic-b.O 2> basic-b.E
94 code=$?
95 if test $code != 0; then
96 $echo "Test basic-b(|) failed: $xx return code $code differs from expected value 0" 1>&2
97 errors=`expr $errors + 1`
98 else
99 cmp basic-b.O $srcdir/basic-b.X > /dev/null 2>&1
100 case $? in
101 0) if test "$VERBOSE"; then $echo "passed basic-b(|)"; fi;;
102 1) $echo "Test basic-b(|) failed: files basic-b.O and $srcdir/basic-b.X differ" 1>&2
103 (diff -c basic-b.O $srcdir/basic-b.X) 2> /dev/null
104 errors=`expr $errors + 1`;;
105 2) $echo "Test basic-b(|) may have failed." 1>&2
106 $echo The command "cmp basic-b.O $srcdir/basic-b.X" failed. 1>&2
107 errors=`expr $errors + 1`;;
108 esac
110 test -s basic-b.E || rm -f basic-b.E
111 $xx < $srcdir/basic-b.I > basic-b.O 2> basic-b.E
112 code=$?
113 if test $code != 0; then
114 $echo "Test basic-b(<) failed: $xx return code $code differs from expected value 0" 1>&2
115 errors=`expr $errors + 1`
116 else
117 cmp basic-b.O $srcdir/basic-b.X > /dev/null 2>&1
118 case $? in
119 0) if test "$VERBOSE"; then $echo "passed basic-b(<)"; fi;;
120 1) $echo "Test basic-b(<) failed: files basic-b.O and $srcdir/basic-b.X differ" 1>&2
121 (diff -c basic-b.O $srcdir/basic-b.X) 2> /dev/null
122 errors=`expr $errors + 1`;;
123 2) $echo "Test basic-b(<) may have failed." 1>&2
124 $echo The command "cmp basic-b.O $srcdir/basic-b.X" failed. 1>&2
125 errors=`expr $errors + 1`;;
126 esac
128 test -s basic-b.E || rm -f basic-b.E
129 $xx $srcdir/basic-c.I > basic-c.O 2> basic-c.E
130 code=$?
131 if test $code != 0; then
132 $echo "Test basic-c(F) failed: $xx return code $code differs from expected value 0" 1>&2
133 errors=`expr $errors + 1`
134 else
135 cmp basic-c.O $srcdir/basic-c.X > /dev/null 2>&1
136 case $? in
137 0) if test "$VERBOSE"; then $echo "passed basic-c(F)"; fi;;
138 1) $echo "Test basic-c(F) failed: files basic-c.O and $srcdir/basic-c.X differ" 1>&2
139 (diff -c basic-c.O $srcdir/basic-c.X) 2> /dev/null
140 errors=`expr $errors + 1`;;
141 2) $echo "Test basic-c(F) may have failed." 1>&2
142 $echo The command "cmp basic-c.O $srcdir/basic-c.X" failed. 1>&2
143 errors=`expr $errors + 1`;;
144 esac
146 test -s basic-c.E || rm -f basic-c.E
147 cat $srcdir/basic-c.I | $xx > basic-c.O 2> basic-c.E
148 code=$?
149 if test $code != 0; then
150 $echo "Test basic-c(|) failed: $xx return code $code differs from expected value 0" 1>&2
151 errors=`expr $errors + 1`
152 else
153 cmp basic-c.O $srcdir/basic-c.X > /dev/null 2>&1
154 case $? in
155 0) if test "$VERBOSE"; then $echo "passed basic-c(|)"; fi;;
156 1) $echo "Test basic-c(|) failed: files basic-c.O and $srcdir/basic-c.X differ" 1>&2
157 (diff -c basic-c.O $srcdir/basic-c.X) 2> /dev/null
158 errors=`expr $errors + 1`;;
159 2) $echo "Test basic-c(|) may have failed." 1>&2
160 $echo The command "cmp basic-c.O $srcdir/basic-c.X" failed. 1>&2
161 errors=`expr $errors + 1`;;
162 esac
164 test -s basic-c.E || rm -f basic-c.E
165 $xx < $srcdir/basic-c.I > basic-c.O 2> basic-c.E
166 code=$?
167 if test $code != 0; then
168 $echo "Test basic-c(<) failed: $xx return code $code differs from expected value 0" 1>&2
169 errors=`expr $errors + 1`
170 else
171 cmp basic-c.O $srcdir/basic-c.X > /dev/null 2>&1
172 case $? in
173 0) if test "$VERBOSE"; then $echo "passed basic-c(<)"; fi;;
174 1) $echo "Test basic-c(<) failed: files basic-c.O and $srcdir/basic-c.X differ" 1>&2
175 (diff -c basic-c.O $srcdir/basic-c.X) 2> /dev/null
176 errors=`expr $errors + 1`;;
177 2) $echo "Test basic-c(<) may have failed." 1>&2
178 $echo The command "cmp basic-c.O $srcdir/basic-c.X" failed. 1>&2
179 errors=`expr $errors + 1`;;
180 esac
182 test -s basic-c.E || rm -f basic-c.E
183 $xx $srcdir/basic-e.I > basic-e.O 2> basic-e.E
184 code=$?
185 if test $code != 0; then
186 $echo "Test basic-e(F) failed: $xx return code $code differs from expected value 0" 1>&2
187 errors=`expr $errors + 1`
188 else
189 cmp basic-e.O $srcdir/basic-e.X > /dev/null 2>&1
190 case $? in
191 0) if test "$VERBOSE"; then $echo "passed basic-e(F)"; fi;;
192 1) $echo "Test basic-e(F) failed: files basic-e.O and $srcdir/basic-e.X differ" 1>&2
193 (diff -c basic-e.O $srcdir/basic-e.X) 2> /dev/null
194 errors=`expr $errors + 1`;;
195 2) $echo "Test basic-e(F) may have failed." 1>&2
196 $echo The command "cmp basic-e.O $srcdir/basic-e.X" failed. 1>&2
197 errors=`expr $errors + 1`;;
198 esac
200 test -s basic-e.E || rm -f basic-e.E
201 cat $srcdir/basic-e.I | $xx > basic-e.O 2> basic-e.E
202 code=$?
203 if test $code != 0; then
204 $echo "Test basic-e(|) failed: $xx return code $code differs from expected value 0" 1>&2
205 errors=`expr $errors + 1`
206 else
207 cmp basic-e.O $srcdir/basic-e.X > /dev/null 2>&1
208 case $? in
209 0) if test "$VERBOSE"; then $echo "passed basic-e(|)"; fi;;
210 1) $echo "Test basic-e(|) failed: files basic-e.O and $srcdir/basic-e.X differ" 1>&2
211 (diff -c basic-e.O $srcdir/basic-e.X) 2> /dev/null
212 errors=`expr $errors + 1`;;
213 2) $echo "Test basic-e(|) may have failed." 1>&2
214 $echo The command "cmp basic-e.O $srcdir/basic-e.X" failed. 1>&2
215 errors=`expr $errors + 1`;;
216 esac
218 test -s basic-e.E || rm -f basic-e.E
219 $xx < $srcdir/basic-e.I > basic-e.O 2> basic-e.E
220 code=$?
221 if test $code != 0; then
222 $echo "Test basic-e(<) failed: $xx return code $code differs from expected value 0" 1>&2
223 errors=`expr $errors + 1`
224 else
225 cmp basic-e.O $srcdir/basic-e.X > /dev/null 2>&1
226 case $? in
227 0) if test "$VERBOSE"; then $echo "passed basic-e(<)"; fi;;
228 1) $echo "Test basic-e(<) failed: files basic-e.O and $srcdir/basic-e.X differ" 1>&2
229 (diff -c basic-e.O $srcdir/basic-e.X) 2> /dev/null
230 errors=`expr $errors + 1`;;
231 2) $echo "Test basic-e(<) may have failed." 1>&2
232 $echo The command "cmp basic-e.O $srcdir/basic-e.X" failed. 1>&2
233 errors=`expr $errors + 1`;;
234 esac
236 test -s basic-e.E || rm -f basic-e.E
237 $xx $srcdir/basic-f.I > basic-f.O 2> basic-f.E
238 code=$?
239 if test $code != 0; then
240 $echo "Test basic-f(F) failed: $xx return code $code differs from expected value 0" 1>&2
241 errors=`expr $errors + 1`
242 else
243 cmp basic-f.O $srcdir/basic-f.X > /dev/null 2>&1
244 case $? in
245 0) if test "$VERBOSE"; then $echo "passed basic-f(F)"; fi;;
246 1) $echo "Test basic-f(F) failed: files basic-f.O and $srcdir/basic-f.X differ" 1>&2
247 (diff -c basic-f.O $srcdir/basic-f.X) 2> /dev/null
248 errors=`expr $errors + 1`;;
249 2) $echo "Test basic-f(F) may have failed." 1>&2
250 $echo The command "cmp basic-f.O $srcdir/basic-f.X" failed. 1>&2
251 errors=`expr $errors + 1`;;
252 esac
254 test -s basic-f.E || rm -f basic-f.E
255 cat $srcdir/basic-f.I | $xx > basic-f.O 2> basic-f.E
256 code=$?
257 if test $code != 0; then
258 $echo "Test basic-f(|) failed: $xx return code $code differs from expected value 0" 1>&2
259 errors=`expr $errors + 1`
260 else
261 cmp basic-f.O $srcdir/basic-f.X > /dev/null 2>&1
262 case $? in
263 0) if test "$VERBOSE"; then $echo "passed basic-f(|)"; fi;;
264 1) $echo "Test basic-f(|) failed: files basic-f.O and $srcdir/basic-f.X differ" 1>&2
265 (diff -c basic-f.O $srcdir/basic-f.X) 2> /dev/null
266 errors=`expr $errors + 1`;;
267 2) $echo "Test basic-f(|) may have failed." 1>&2
268 $echo The command "cmp basic-f.O $srcdir/basic-f.X" failed. 1>&2
269 errors=`expr $errors + 1`;;
270 esac
272 test -s basic-f.E || rm -f basic-f.E
273 $xx < $srcdir/basic-f.I > basic-f.O 2> basic-f.E
274 code=$?
275 if test $code != 0; then
276 $echo "Test basic-f(<) failed: $xx return code $code differs from expected value 0" 1>&2
277 errors=`expr $errors + 1`
278 else
279 cmp basic-f.O $srcdir/basic-f.X > /dev/null 2>&1
280 case $? in
281 0) if test "$VERBOSE"; then $echo "passed basic-f(<)"; fi;;
282 1) $echo "Test basic-f(<) failed: files basic-f.O and $srcdir/basic-f.X differ" 1>&2
283 (diff -c basic-f.O $srcdir/basic-f.X) 2> /dev/null
284 errors=`expr $errors + 1`;;
285 2) $echo "Test basic-f(<) may have failed." 1>&2
286 $echo The command "cmp basic-f.O $srcdir/basic-f.X" failed. 1>&2
287 errors=`expr $errors + 1`;;
288 esac
290 test -s basic-f.E || rm -f basic-f.E
291 $xx $srcdir/basic-g.I > basic-g.O 2> basic-g.E
292 code=$?
293 if test $code != 0; then
294 $echo "Test basic-g(F) failed: $xx return code $code differs from expected value 0" 1>&2
295 errors=`expr $errors + 1`
296 else
297 cmp basic-g.O $srcdir/basic-g.X > /dev/null 2>&1
298 case $? in
299 0) if test "$VERBOSE"; then $echo "passed basic-g(F)"; fi;;
300 1) $echo "Test basic-g(F) failed: files basic-g.O and $srcdir/basic-g.X differ" 1>&2
301 (diff -c basic-g.O $srcdir/basic-g.X) 2> /dev/null
302 errors=`expr $errors + 1`;;
303 2) $echo "Test basic-g(F) may have failed." 1>&2
304 $echo The command "cmp basic-g.O $srcdir/basic-g.X" failed. 1>&2
305 errors=`expr $errors + 1`;;
306 esac
308 test -s basic-g.E || rm -f basic-g.E
309 cat $srcdir/basic-g.I | $xx > basic-g.O 2> basic-g.E
310 code=$?
311 if test $code != 0; then
312 $echo "Test basic-g(|) failed: $xx return code $code differs from expected value 0" 1>&2
313 errors=`expr $errors + 1`
314 else
315 cmp basic-g.O $srcdir/basic-g.X > /dev/null 2>&1
316 case $? in
317 0) if test "$VERBOSE"; then $echo "passed basic-g(|)"; fi;;
318 1) $echo "Test basic-g(|) failed: files basic-g.O and $srcdir/basic-g.X differ" 1>&2
319 (diff -c basic-g.O $srcdir/basic-g.X) 2> /dev/null
320 errors=`expr $errors + 1`;;
321 2) $echo "Test basic-g(|) may have failed." 1>&2
322 $echo The command "cmp basic-g.O $srcdir/basic-g.X" failed. 1>&2
323 errors=`expr $errors + 1`;;
324 esac
326 test -s basic-g.E || rm -f basic-g.E
327 $xx < $srcdir/basic-g.I > basic-g.O 2> basic-g.E
328 code=$?
329 if test $code != 0; then
330 $echo "Test basic-g(<) failed: $xx return code $code differs from expected value 0" 1>&2
331 errors=`expr $errors + 1`
332 else
333 cmp basic-g.O $srcdir/basic-g.X > /dev/null 2>&1
334 case $? in
335 0) if test "$VERBOSE"; then $echo "passed basic-g(<)"; fi;;
336 1) $echo "Test basic-g(<) failed: files basic-g.O and $srcdir/basic-g.X differ" 1>&2
337 (diff -c basic-g.O $srcdir/basic-g.X) 2> /dev/null
338 errors=`expr $errors + 1`;;
339 2) $echo "Test basic-g(<) may have failed." 1>&2
340 $echo The command "cmp basic-g.O $srcdir/basic-g.X" failed. 1>&2
341 errors=`expr $errors + 1`;;
342 esac
344 test -s basic-g.E || rm -f basic-g.E
345 $xx $srcdir/basic-h.I > basic-h.O 2> basic-h.E
346 code=$?
347 if test $code != 0; then
348 $echo "Test basic-h(F) failed: $xx return code $code differs from expected value 0" 1>&2
349 errors=`expr $errors + 1`
350 else
351 cmp basic-h.O $srcdir/basic-h.X > /dev/null 2>&1
352 case $? in
353 0) if test "$VERBOSE"; then $echo "passed basic-h(F)"; fi;;
354 1) $echo "Test basic-h(F) failed: files basic-h.O and $srcdir/basic-h.X differ" 1>&2
355 (diff -c basic-h.O $srcdir/basic-h.X) 2> /dev/null
356 errors=`expr $errors + 1`;;
357 2) $echo "Test basic-h(F) may have failed." 1>&2
358 $echo The command "cmp basic-h.O $srcdir/basic-h.X" failed. 1>&2
359 errors=`expr $errors + 1`;;
360 esac
362 test -s basic-h.E || rm -f basic-h.E
363 cat $srcdir/basic-h.I | $xx > basic-h.O 2> basic-h.E
364 code=$?
365 if test $code != 0; then
366 $echo "Test basic-h(|) failed: $xx return code $code differs from expected value 0" 1>&2
367 errors=`expr $errors + 1`
368 else
369 cmp basic-h.O $srcdir/basic-h.X > /dev/null 2>&1
370 case $? in
371 0) if test "$VERBOSE"; then $echo "passed basic-h(|)"; fi;;
372 1) $echo "Test basic-h(|) failed: files basic-h.O and $srcdir/basic-h.X differ" 1>&2
373 (diff -c basic-h.O $srcdir/basic-h.X) 2> /dev/null
374 errors=`expr $errors + 1`;;
375 2) $echo "Test basic-h(|) may have failed." 1>&2
376 $echo The command "cmp basic-h.O $srcdir/basic-h.X" failed. 1>&2
377 errors=`expr $errors + 1`;;
378 esac
380 test -s basic-h.E || rm -f basic-h.E
381 $xx < $srcdir/basic-h.I > basic-h.O 2> basic-h.E
382 code=$?
383 if test $code != 0; then
384 $echo "Test basic-h(<) failed: $xx return code $code differs from expected value 0" 1>&2
385 errors=`expr $errors + 1`
386 else
387 cmp basic-h.O $srcdir/basic-h.X > /dev/null 2>&1
388 case $? in
389 0) if test "$VERBOSE"; then $echo "passed basic-h(<)"; fi;;
390 1) $echo "Test basic-h(<) failed: files basic-h.O and $srcdir/basic-h.X differ" 1>&2
391 (diff -c basic-h.O $srcdir/basic-h.X) 2> /dev/null
392 errors=`expr $errors + 1`;;
393 2) $echo "Test basic-h(<) may have failed." 1>&2
394 $echo The command "cmp basic-h.O $srcdir/basic-h.X" failed. 1>&2
395 errors=`expr $errors + 1`;;
396 esac
398 test -s basic-h.E || rm -f basic-h.E
399 $xx $srcdir/basic-i.I > basic-i.O 2> basic-i.E
400 code=$?
401 if test $code != 0; then
402 $echo "Test basic-i(F) failed: $xx return code $code differs from expected value 0" 1>&2
403 errors=`expr $errors + 1`
404 else
405 cmp basic-i.O $srcdir/basic-i.X > /dev/null 2>&1
406 case $? in
407 0) if test "$VERBOSE"; then $echo "passed basic-i(F)"; fi;;
408 1) $echo "Test basic-i(F) failed: files basic-i.O and $srcdir/basic-i.X differ" 1>&2
409 (diff -c basic-i.O $srcdir/basic-i.X) 2> /dev/null
410 errors=`expr $errors + 1`;;
411 2) $echo "Test basic-i(F) may have failed." 1>&2
412 $echo The command "cmp basic-i.O $srcdir/basic-i.X" failed. 1>&2
413 errors=`expr $errors + 1`;;
414 esac
416 test -s basic-i.E || rm -f basic-i.E
417 cat $srcdir/basic-i.I | $xx > basic-i.O 2> basic-i.E
418 code=$?
419 if test $code != 0; then
420 $echo "Test basic-i(|) failed: $xx return code $code differs from expected value 0" 1>&2
421 errors=`expr $errors + 1`
422 else
423 cmp basic-i.O $srcdir/basic-i.X > /dev/null 2>&1
424 case $? in
425 0) if test "$VERBOSE"; then $echo "passed basic-i(|)"; fi;;
426 1) $echo "Test basic-i(|) failed: files basic-i.O and $srcdir/basic-i.X differ" 1>&2
427 (diff -c basic-i.O $srcdir/basic-i.X) 2> /dev/null
428 errors=`expr $errors + 1`;;
429 2) $echo "Test basic-i(|) may have failed." 1>&2
430 $echo The command "cmp basic-i.O $srcdir/basic-i.X" failed. 1>&2
431 errors=`expr $errors + 1`;;
432 esac
434 test -s basic-i.E || rm -f basic-i.E
435 $xx < $srcdir/basic-i.I > basic-i.O 2> basic-i.E
436 code=$?
437 if test $code != 0; then
438 $echo "Test basic-i(<) failed: $xx return code $code differs from expected value 0" 1>&2
439 errors=`expr $errors + 1`
440 else
441 cmp basic-i.O $srcdir/basic-i.X > /dev/null 2>&1
442 case $? in
443 0) if test "$VERBOSE"; then $echo "passed basic-i(<)"; fi;;
444 1) $echo "Test basic-i(<) failed: files basic-i.O and $srcdir/basic-i.X differ" 1>&2
445 (diff -c basic-i.O $srcdir/basic-i.X) 2> /dev/null
446 errors=`expr $errors + 1`;;
447 2) $echo "Test basic-i(<) may have failed." 1>&2
448 $echo The command "cmp basic-i.O $srcdir/basic-i.X" failed. 1>&2
449 errors=`expr $errors + 1`;;
450 esac
452 test -s basic-i.E || rm -f basic-i.E
453 $xx $srcdir/basic-j.I > basic-j.O 2> basic-j.E
454 code=$?
455 if test $code != 0; then
456 $echo "Test basic-j(F) failed: $xx return code $code differs from expected value 0" 1>&2
457 errors=`expr $errors + 1`
458 else
459 cmp basic-j.O $srcdir/basic-j.X > /dev/null 2>&1
460 case $? in
461 0) if test "$VERBOSE"; then $echo "passed basic-j(F)"; fi;;
462 1) $echo "Test basic-j(F) failed: files basic-j.O and $srcdir/basic-j.X differ" 1>&2
463 (diff -c basic-j.O $srcdir/basic-j.X) 2> /dev/null
464 errors=`expr $errors + 1`;;
465 2) $echo "Test basic-j(F) may have failed." 1>&2
466 $echo The command "cmp basic-j.O $srcdir/basic-j.X" failed. 1>&2
467 errors=`expr $errors + 1`;;
468 esac
470 test -s basic-j.E || rm -f basic-j.E
471 cat $srcdir/basic-j.I | $xx > basic-j.O 2> basic-j.E
472 code=$?
473 if test $code != 0; then
474 $echo "Test basic-j(|) failed: $xx return code $code differs from expected value 0" 1>&2
475 errors=`expr $errors + 1`
476 else
477 cmp basic-j.O $srcdir/basic-j.X > /dev/null 2>&1
478 case $? in
479 0) if test "$VERBOSE"; then $echo "passed basic-j(|)"; fi;;
480 1) $echo "Test basic-j(|) failed: files basic-j.O and $srcdir/basic-j.X differ" 1>&2
481 (diff -c basic-j.O $srcdir/basic-j.X) 2> /dev/null
482 errors=`expr $errors + 1`;;
483 2) $echo "Test basic-j(|) may have failed." 1>&2
484 $echo The command "cmp basic-j.O $srcdir/basic-j.X" failed. 1>&2
485 errors=`expr $errors + 1`;;
486 esac
488 test -s basic-j.E || rm -f basic-j.E
489 $xx < $srcdir/basic-j.I > basic-j.O 2> basic-j.E
490 code=$?
491 if test $code != 0; then
492 $echo "Test basic-j(<) failed: $xx return code $code differs from expected value 0" 1>&2
493 errors=`expr $errors + 1`
494 else
495 cmp basic-j.O $srcdir/basic-j.X > /dev/null 2>&1
496 case $? in
497 0) if test "$VERBOSE"; then $echo "passed basic-j(<)"; fi;;
498 1) $echo "Test basic-j(<) failed: files basic-j.O and $srcdir/basic-j.X differ" 1>&2
499 (diff -c basic-j.O $srcdir/basic-j.X) 2> /dev/null
500 errors=`expr $errors + 1`;;
501 2) $echo "Test basic-j(<) may have failed." 1>&2
502 $echo The command "cmp basic-j.O $srcdir/basic-j.X" failed. 1>&2
503 errors=`expr $errors + 1`;;
504 esac
506 test -s basic-j.E || rm -f basic-j.E
507 $xx $srcdir/basic-k.I > basic-k.O 2> basic-k.E
508 code=$?
509 if test $code != 0; then
510 $echo "Test basic-k(F) failed: $xx return code $code differs from expected value 0" 1>&2
511 errors=`expr $errors + 1`
512 else
513 cmp basic-k.O $srcdir/basic-k.X > /dev/null 2>&1
514 case $? in
515 0) if test "$VERBOSE"; then $echo "passed basic-k(F)"; fi;;
516 1) $echo "Test basic-k(F) failed: files basic-k.O and $srcdir/basic-k.X differ" 1>&2
517 (diff -c basic-k.O $srcdir/basic-k.X) 2> /dev/null
518 errors=`expr $errors + 1`;;
519 2) $echo "Test basic-k(F) may have failed." 1>&2
520 $echo The command "cmp basic-k.O $srcdir/basic-k.X" failed. 1>&2
521 errors=`expr $errors + 1`;;
522 esac
524 test -s basic-k.E || rm -f basic-k.E
525 cat $srcdir/basic-k.I | $xx > basic-k.O 2> basic-k.E
526 code=$?
527 if test $code != 0; then
528 $echo "Test basic-k(|) failed: $xx return code $code differs from expected value 0" 1>&2
529 errors=`expr $errors + 1`
530 else
531 cmp basic-k.O $srcdir/basic-k.X > /dev/null 2>&1
532 case $? in
533 0) if test "$VERBOSE"; then $echo "passed basic-k(|)"; fi;;
534 1) $echo "Test basic-k(|) failed: files basic-k.O and $srcdir/basic-k.X differ" 1>&2
535 (diff -c basic-k.O $srcdir/basic-k.X) 2> /dev/null
536 errors=`expr $errors + 1`;;
537 2) $echo "Test basic-k(|) may have failed." 1>&2
538 $echo The command "cmp basic-k.O $srcdir/basic-k.X" failed. 1>&2
539 errors=`expr $errors + 1`;;
540 esac
542 test -s basic-k.E || rm -f basic-k.E
543 $xx < $srcdir/basic-k.I > basic-k.O 2> basic-k.E
544 code=$?
545 if test $code != 0; then
546 $echo "Test basic-k(<) failed: $xx return code $code differs from expected value 0" 1>&2
547 errors=`expr $errors + 1`
548 else
549 cmp basic-k.O $srcdir/basic-k.X > /dev/null 2>&1
550 case $? in
551 0) if test "$VERBOSE"; then $echo "passed basic-k(<)"; fi;;
552 1) $echo "Test basic-k(<) failed: files basic-k.O and $srcdir/basic-k.X differ" 1>&2
553 (diff -c basic-k.O $srcdir/basic-k.X) 2> /dev/null
554 errors=`expr $errors + 1`;;
555 2) $echo "Test basic-k(<) may have failed." 1>&2
556 $echo The command "cmp basic-k.O $srcdir/basic-k.X" failed. 1>&2
557 errors=`expr $errors + 1`;;
558 esac
560 test -s basic-k.E || rm -f basic-k.E
561 $xx -b $srcdir/opt-b.I > opt-b.O 2> opt-b.E
562 code=$?
563 if test $code != 0; then
564 $echo "Test opt-b(F) failed: $xx return code $code differs from expected value 0" 1>&2
565 errors=`expr $errors + 1`
566 else
567 cmp opt-b.O $srcdir/opt-b.X > /dev/null 2>&1
568 case $? in
569 0) if test "$VERBOSE"; then $echo "passed opt-b(F)"; fi;;
570 1) $echo "Test opt-b(F) failed: files opt-b.O and $srcdir/opt-b.X differ" 1>&2
571 (diff -c opt-b.O $srcdir/opt-b.X) 2> /dev/null
572 errors=`expr $errors + 1`;;
573 2) $echo "Test opt-b(F) may have failed." 1>&2
574 $echo The command "cmp opt-b.O $srcdir/opt-b.X" failed. 1>&2
575 errors=`expr $errors + 1`;;
576 esac
578 test -s opt-b.E || rm -f opt-b.E
579 cat $srcdir/opt-b.I | $xx -b > opt-b.O 2> opt-b.E
580 code=$?
581 if test $code != 0; then
582 $echo "Test opt-b(|) failed: $xx return code $code differs from expected value 0" 1>&2
583 errors=`expr $errors + 1`
584 else
585 cmp opt-b.O $srcdir/opt-b.X > /dev/null 2>&1
586 case $? in
587 0) if test "$VERBOSE"; then $echo "passed opt-b(|)"; fi;;
588 1) $echo "Test opt-b(|) failed: files opt-b.O and $srcdir/opt-b.X differ" 1>&2
589 (diff -c opt-b.O $srcdir/opt-b.X) 2> /dev/null
590 errors=`expr $errors + 1`;;
591 2) $echo "Test opt-b(|) may have failed." 1>&2
592 $echo The command "cmp opt-b.O $srcdir/opt-b.X" failed. 1>&2
593 errors=`expr $errors + 1`;;
594 esac
596 test -s opt-b.E || rm -f opt-b.E
597 $xx -b < $srcdir/opt-b.I > opt-b.O 2> opt-b.E
598 code=$?
599 if test $code != 0; then
600 $echo "Test opt-b(<) failed: $xx return code $code differs from expected value 0" 1>&2
601 errors=`expr $errors + 1`
602 else
603 cmp opt-b.O $srcdir/opt-b.X > /dev/null 2>&1
604 case $? in
605 0) if test "$VERBOSE"; then $echo "passed opt-b(<)"; fi;;
606 1) $echo "Test opt-b(<) failed: files opt-b.O and $srcdir/opt-b.X differ" 1>&2
607 (diff -c opt-b.O $srcdir/opt-b.X) 2> /dev/null
608 errors=`expr $errors + 1`;;
609 2) $echo "Test opt-b(<) may have failed." 1>&2
610 $echo The command "cmp opt-b.O $srcdir/opt-b.X" failed. 1>&2
611 errors=`expr $errors + 1`;;
612 esac
614 test -s opt-b.E || rm -f opt-b.E
615 $xx -s: $srcdir/opt-s.I > opt-s.O 2> opt-s.E
616 code=$?
617 if test $code != 0; then
618 $echo "Test opt-s(F) failed: $xx return code $code differs from expected value 0" 1>&2
619 errors=`expr $errors + 1`
620 else
621 cmp opt-s.O $srcdir/opt-s.X > /dev/null 2>&1
622 case $? in
623 0) if test "$VERBOSE"; then $echo "passed opt-s(F)"; fi;;
624 1) $echo "Test opt-s(F) failed: files opt-s.O and $srcdir/opt-s.X differ" 1>&2
625 (diff -c opt-s.O $srcdir/opt-s.X) 2> /dev/null
626 errors=`expr $errors + 1`;;
627 2) $echo "Test opt-s(F) may have failed." 1>&2
628 $echo The command "cmp opt-s.O $srcdir/opt-s.X" failed. 1>&2
629 errors=`expr $errors + 1`;;
630 esac
632 test -s opt-s.E || rm -f opt-s.E
633 cat $srcdir/opt-s.I | $xx -s: > opt-s.O 2> opt-s.E
634 code=$?
635 if test $code != 0; then
636 $echo "Test opt-s(|) failed: $xx return code $code differs from expected value 0" 1>&2
637 errors=`expr $errors + 1`
638 else
639 cmp opt-s.O $srcdir/opt-s.X > /dev/null 2>&1
640 case $? in
641 0) if test "$VERBOSE"; then $echo "passed opt-s(|)"; fi;;
642 1) $echo "Test opt-s(|) failed: files opt-s.O and $srcdir/opt-s.X differ" 1>&2
643 (diff -c opt-s.O $srcdir/opt-s.X) 2> /dev/null
644 errors=`expr $errors + 1`;;
645 2) $echo "Test opt-s(|) may have failed." 1>&2
646 $echo The command "cmp opt-s.O $srcdir/opt-s.X" failed. 1>&2
647 errors=`expr $errors + 1`;;
648 esac
650 test -s opt-s.E || rm -f opt-s.E
651 $xx -s: < $srcdir/opt-s.I > opt-s.O 2> opt-s.E
652 code=$?
653 if test $code != 0; then
654 $echo "Test opt-s(<) failed: $xx return code $code differs from expected value 0" 1>&2
655 errors=`expr $errors + 1`
656 else
657 cmp opt-s.O $srcdir/opt-s.X > /dev/null 2>&1
658 case $? in
659 0) if test "$VERBOSE"; then $echo "passed opt-s(<)"; fi;;
660 1) $echo "Test opt-s(<) failed: files opt-s.O and $srcdir/opt-s.X differ" 1>&2
661 (diff -c opt-s.O $srcdir/opt-s.X) 2> /dev/null
662 errors=`expr $errors + 1`;;
663 2) $echo "Test opt-s(<) may have failed." 1>&2
664 $echo The command "cmp opt-s.O $srcdir/opt-s.X" failed. 1>&2
665 errors=`expr $errors + 1`;;
666 esac
668 test -s opt-s.E || rm -f opt-s.E
669 $xx -s : -b $srcdir/opt-sb.I > opt-sb.O 2> opt-sb.E
670 code=$?
671 if test $code != 0; then
672 $echo "Test opt-sb(F) failed: $xx return code $code differs from expected value 0" 1>&2
673 errors=`expr $errors + 1`
674 else
675 cmp opt-sb.O $srcdir/opt-sb.X > /dev/null 2>&1
676 case $? in
677 0) if test "$VERBOSE"; then $echo "passed opt-sb(F)"; fi;;
678 1) $echo "Test opt-sb(F) failed: files opt-sb.O and $srcdir/opt-sb.X differ" 1>&2
679 (diff -c opt-sb.O $srcdir/opt-sb.X) 2> /dev/null
680 errors=`expr $errors + 1`;;
681 2) $echo "Test opt-sb(F) may have failed." 1>&2
682 $echo The command "cmp opt-sb.O $srcdir/opt-sb.X" failed. 1>&2
683 errors=`expr $errors + 1`;;
684 esac
686 test -s opt-sb.E || rm -f opt-sb.E
687 cat $srcdir/opt-sb.I | $xx -s : -b > opt-sb.O 2> opt-sb.E
688 code=$?
689 if test $code != 0; then
690 $echo "Test opt-sb(|) failed: $xx return code $code differs from expected value 0" 1>&2
691 errors=`expr $errors + 1`
692 else
693 cmp opt-sb.O $srcdir/opt-sb.X > /dev/null 2>&1
694 case $? in
695 0) if test "$VERBOSE"; then $echo "passed opt-sb(|)"; fi;;
696 1) $echo "Test opt-sb(|) failed: files opt-sb.O and $srcdir/opt-sb.X differ" 1>&2
697 (diff -c opt-sb.O $srcdir/opt-sb.X) 2> /dev/null
698 errors=`expr $errors + 1`;;
699 2) $echo "Test opt-sb(|) may have failed." 1>&2
700 $echo The command "cmp opt-sb.O $srcdir/opt-sb.X" failed. 1>&2
701 errors=`expr $errors + 1`;;
702 esac
704 test -s opt-sb.E || rm -f opt-sb.E
705 $xx -s : -b < $srcdir/opt-sb.I > opt-sb.O 2> opt-sb.E
706 code=$?
707 if test $code != 0; then
708 $echo "Test opt-sb(<) failed: $xx return code $code differs from expected value 0" 1>&2
709 errors=`expr $errors + 1`
710 else
711 cmp opt-sb.O $srcdir/opt-sb.X > /dev/null 2>&1
712 case $? in
713 0) if test "$VERBOSE"; then $echo "passed opt-sb(<)"; fi;;
714 1) $echo "Test opt-sb(<) failed: files opt-sb.O and $srcdir/opt-sb.X differ" 1>&2
715 (diff -c opt-sb.O $srcdir/opt-sb.X) 2> /dev/null
716 errors=`expr $errors + 1`;;
717 2) $echo "Test opt-sb(<) may have failed." 1>&2
718 $echo The command "cmp opt-sb.O $srcdir/opt-sb.X" failed. 1>&2
719 errors=`expr $errors + 1`;;
720 esac
722 test -s opt-sb.E || rm -f opt-sb.E
723 $xx -r -s '\._+' $srcdir/opt-r.I > opt-r.O 2> opt-r.E
724 code=$?
725 if test $code != 0; then
726 $echo "Test opt-r(F) failed: $xx return code $code differs from expected value 0" 1>&2
727 errors=`expr $errors + 1`
728 else
729 cmp opt-r.O $srcdir/opt-r.X > /dev/null 2>&1
730 case $? in
731 0) if test "$VERBOSE"; then $echo "passed opt-r(F)"; fi;;
732 1) $echo "Test opt-r(F) failed: files opt-r.O and $srcdir/opt-r.X differ" 1>&2
733 (diff -c opt-r.O $srcdir/opt-r.X) 2> /dev/null
734 errors=`expr $errors + 1`;;
735 2) $echo "Test opt-r(F) may have failed." 1>&2
736 $echo The command "cmp opt-r.O $srcdir/opt-r.X" failed. 1>&2
737 errors=`expr $errors + 1`;;
738 esac
740 test -s opt-r.E || rm -f opt-r.E
741 cat $srcdir/opt-r.I | $xx -r -s '\._+' > opt-r.O 2> opt-r.E
742 code=$?
743 if test $code != 0; then
744 $echo "Test opt-r(|) failed: $xx return code $code differs from expected value 0" 1>&2
745 errors=`expr $errors + 1`
746 else
747 cmp opt-r.O $srcdir/opt-r.X > /dev/null 2>&1
748 case $? in
749 0) if test "$VERBOSE"; then $echo "passed opt-r(|)"; fi;;
750 1) $echo "Test opt-r(|) failed: files opt-r.O and $srcdir/opt-r.X differ" 1>&2
751 (diff -c opt-r.O $srcdir/opt-r.X) 2> /dev/null
752 errors=`expr $errors + 1`;;
753 2) $echo "Test opt-r(|) may have failed." 1>&2
754 $echo The command "cmp opt-r.O $srcdir/opt-r.X" failed. 1>&2
755 errors=`expr $errors + 1`;;
756 esac
758 test -s opt-r.E || rm -f opt-r.E
759 $xx -r -s '\._+' < $srcdir/opt-r.I > opt-r.O 2> opt-r.E
760 code=$?
761 if test $code != 0; then
762 $echo "Test opt-r(<) failed: $xx return code $code differs from expected value 0" 1>&2
763 errors=`expr $errors + 1`
764 else
765 cmp opt-r.O $srcdir/opt-r.X > /dev/null 2>&1
766 case $? in
767 0) if test "$VERBOSE"; then $echo "passed opt-r(<)"; fi;;
768 1) $echo "Test opt-r(<) failed: files opt-r.O and $srcdir/opt-r.X differ" 1>&2
769 (diff -c opt-r.O $srcdir/opt-r.X) 2> /dev/null
770 errors=`expr $errors + 1`;;
771 2) $echo "Test opt-r(<) may have failed." 1>&2
772 $echo The command "cmp opt-r.O $srcdir/opt-r.X" failed. 1>&2
773 errors=`expr $errors + 1`;;
774 esac
776 test -s opt-r.E || rm -f opt-r.E
777 $xx -r -s '\._+' $srcdir/opt-r2.I > opt-r2.O 2> opt-r2.E
778 code=$?
779 if test $code != 0; then
780 $echo "Test opt-r2(F) failed: $xx return code $code differs from expected value 0" 1>&2
781 errors=`expr $errors + 1`
782 else
783 cmp opt-r2.O $srcdir/opt-r2.X > /dev/null 2>&1
784 case $? in
785 0) if test "$VERBOSE"; then $echo "passed opt-r2(F)"; fi;;
786 1) $echo "Test opt-r2(F) failed: files opt-r2.O and $srcdir/opt-r2.X differ" 1>&2
787 (diff -c opt-r2.O $srcdir/opt-r2.X) 2> /dev/null
788 errors=`expr $errors + 1`;;
789 2) $echo "Test opt-r2(F) may have failed." 1>&2
790 $echo The command "cmp opt-r2.O $srcdir/opt-r2.X" failed. 1>&2
791 errors=`expr $errors + 1`;;
792 esac
794 test -s opt-r2.E || rm -f opt-r2.E
795 cat $srcdir/opt-r2.I | $xx -r -s '\._+' > opt-r2.O 2> opt-r2.E
796 code=$?
797 if test $code != 0; then
798 $echo "Test opt-r2(|) failed: $xx return code $code differs from expected value 0" 1>&2
799 errors=`expr $errors + 1`
800 else
801 cmp opt-r2.O $srcdir/opt-r2.X > /dev/null 2>&1
802 case $? in
803 0) if test "$VERBOSE"; then $echo "passed opt-r2(|)"; fi;;
804 1) $echo "Test opt-r2(|) failed: files opt-r2.O and $srcdir/opt-r2.X differ" 1>&2
805 (diff -c opt-r2.O $srcdir/opt-r2.X) 2> /dev/null
806 errors=`expr $errors + 1`;;
807 2) $echo "Test opt-r2(|) may have failed." 1>&2
808 $echo The command "cmp opt-r2.O $srcdir/opt-r2.X" failed. 1>&2
809 errors=`expr $errors + 1`;;
810 esac
812 test -s opt-r2.E || rm -f opt-r2.E
813 $xx -r -s '\._+' < $srcdir/opt-r2.I > opt-r2.O 2> opt-r2.E
814 code=$?
815 if test $code != 0; then
816 $echo "Test opt-r2(<) failed: $xx return code $code differs from expected value 0" 1>&2
817 errors=`expr $errors + 1`
818 else
819 cmp opt-r2.O $srcdir/opt-r2.X > /dev/null 2>&1
820 case $? in
821 0) if test "$VERBOSE"; then $echo "passed opt-r2(<)"; fi;;
822 1) $echo "Test opt-r2(<) failed: files opt-r2.O and $srcdir/opt-r2.X differ" 1>&2
823 (diff -c opt-r2.O $srcdir/opt-r2.X) 2> /dev/null
824 errors=`expr $errors + 1`;;
825 2) $echo "Test opt-r2(<) may have failed." 1>&2
826 $echo The command "cmp opt-r2.O $srcdir/opt-r2.X" failed. 1>&2
827 errors=`expr $errors + 1`;;
828 esac
830 test -s opt-r2.E || rm -f opt-r2.E
831 $xx -b -r -s '\._+' $srcdir/opt-br.I > opt-br.O 2> opt-br.E
832 code=$?
833 if test $code != 0; then
834 $echo "Test opt-br(F) failed: $xx return code $code differs from expected value 0" 1>&2
835 errors=`expr $errors + 1`
836 else
837 cmp opt-br.O $srcdir/opt-br.X > /dev/null 2>&1
838 case $? in
839 0) if test "$VERBOSE"; then $echo "passed opt-br(F)"; fi;;
840 1) $echo "Test opt-br(F) failed: files opt-br.O and $srcdir/opt-br.X differ" 1>&2
841 (diff -c opt-br.O $srcdir/opt-br.X) 2> /dev/null
842 errors=`expr $errors + 1`;;
843 2) $echo "Test opt-br(F) may have failed." 1>&2
844 $echo The command "cmp opt-br.O $srcdir/opt-br.X" failed. 1>&2
845 errors=`expr $errors + 1`;;
846 esac
848 test -s opt-br.E || rm -f opt-br.E
849 cat $srcdir/opt-br.I | $xx -b -r -s '\._+' > opt-br.O 2> opt-br.E
850 code=$?
851 if test $code != 0; then
852 $echo "Test opt-br(|) failed: $xx return code $code differs from expected value 0" 1>&2
853 errors=`expr $errors + 1`
854 else
855 cmp opt-br.O $srcdir/opt-br.X > /dev/null 2>&1
856 case $? in
857 0) if test "$VERBOSE"; then $echo "passed opt-br(|)"; fi;;
858 1) $echo "Test opt-br(|) failed: files opt-br.O and $srcdir/opt-br.X differ" 1>&2
859 (diff -c opt-br.O $srcdir/opt-br.X) 2> /dev/null
860 errors=`expr $errors + 1`;;
861 2) $echo "Test opt-br(|) may have failed." 1>&2
862 $echo The command "cmp opt-br.O $srcdir/opt-br.X" failed. 1>&2
863 errors=`expr $errors + 1`;;
864 esac
866 test -s opt-br.E || rm -f opt-br.E
867 $xx -b -r -s '\._+' < $srcdir/opt-br.I > opt-br.O 2> opt-br.E
868 code=$?
869 if test $code != 0; then
870 $echo "Test opt-br(<) failed: $xx return code $code differs from expected value 0" 1>&2
871 errors=`expr $errors + 1`
872 else
873 cmp opt-br.O $srcdir/opt-br.X > /dev/null 2>&1
874 case $? in
875 0) if test "$VERBOSE"; then $echo "passed opt-br(<)"; fi;;
876 1) $echo "Test opt-br(<) failed: files opt-br.O and $srcdir/opt-br.X differ" 1>&2
877 (diff -c opt-br.O $srcdir/opt-br.X) 2> /dev/null
878 errors=`expr $errors + 1`;;
879 2) $echo "Test opt-br(<) may have failed." 1>&2
880 $echo The command "cmp opt-br.O $srcdir/opt-br.X" failed. 1>&2
881 errors=`expr $errors + 1`;;
882 esac
884 test -s opt-br.E || rm -f opt-br.E
885 $xx -b -r -s '\._+' $srcdir/opt-br2.I > opt-br2.O 2> opt-br2.E
886 code=$?
887 if test $code != 0; then
888 $echo "Test opt-br2(F) failed: $xx return code $code differs from expected value 0" 1>&2
889 errors=`expr $errors + 1`
890 else
891 cmp opt-br2.O $srcdir/opt-br2.X > /dev/null 2>&1
892 case $? in
893 0) if test "$VERBOSE"; then $echo "passed opt-br2(F)"; fi;;
894 1) $echo "Test opt-br2(F) failed: files opt-br2.O and $srcdir/opt-br2.X differ" 1>&2
895 (diff -c opt-br2.O $srcdir/opt-br2.X) 2> /dev/null
896 errors=`expr $errors + 1`;;
897 2) $echo "Test opt-br2(F) may have failed." 1>&2
898 $echo The command "cmp opt-br2.O $srcdir/opt-br2.X" failed. 1>&2
899 errors=`expr $errors + 1`;;
900 esac
902 test -s opt-br2.E || rm -f opt-br2.E
903 cat $srcdir/opt-br2.I | $xx -b -r -s '\._+' > opt-br2.O 2> opt-br2.E
904 code=$?
905 if test $code != 0; then
906 $echo "Test opt-br2(|) failed: $xx return code $code differs from expected value 0" 1>&2
907 errors=`expr $errors + 1`
908 else
909 cmp opt-br2.O $srcdir/opt-br2.X > /dev/null 2>&1
910 case $? in
911 0) if test "$VERBOSE"; then $echo "passed opt-br2(|)"; fi;;
912 1) $echo "Test opt-br2(|) failed: files opt-br2.O and $srcdir/opt-br2.X differ" 1>&2
913 (diff -c opt-br2.O $srcdir/opt-br2.X) 2> /dev/null
914 errors=`expr $errors + 1`;;
915 2) $echo "Test opt-br2(|) may have failed." 1>&2
916 $echo The command "cmp opt-br2.O $srcdir/opt-br2.X" failed. 1>&2
917 errors=`expr $errors + 1`;;
918 esac
920 test -s opt-br2.E || rm -f opt-br2.E
921 $xx -b -r -s '\._+' < $srcdir/opt-br2.I > opt-br2.O 2> opt-br2.E
922 code=$?
923 if test $code != 0; then
924 $echo "Test opt-br2(<) failed: $xx return code $code differs from expected value 0" 1>&2
925 errors=`expr $errors + 1`
926 else
927 cmp opt-br2.O $srcdir/opt-br2.X > /dev/null 2>&1
928 case $? in
929 0) if test "$VERBOSE"; then $echo "passed opt-br2(<)"; fi;;
930 1) $echo "Test opt-br2(<) failed: files opt-br2.O and $srcdir/opt-br2.X differ" 1>&2
931 (diff -c opt-br2.O $srcdir/opt-br2.X) 2> /dev/null
932 errors=`expr $errors + 1`;;
933 2) $echo "Test opt-br2(<) may have failed." 1>&2
934 $echo The command "cmp opt-br2.O $srcdir/opt-br2.X" failed. 1>&2
935 errors=`expr $errors + 1`;;
936 esac
938 test -s opt-br2.E || rm -f opt-br2.E
939 if test $errors = 0; then
940 $echo Passed all 51 tests. 1>&2
941 else
942 $echo Failed $errors tests. 1>&2
944 test $errors = 0 || errors=1
945 exit $errors