blob: 7716c736e14839d1dcda42287663555071e8ffa0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
|
#! /bin/sh
# This script was generated automatically by build-script.
case $# in
0) xx='../../src/wc';;
*) xx="$1";;
esac
test "$VERBOSE" && echo=echo || echo=:
$echo testing program: $xx
errors=0
test "$srcdir" || srcdir=.
test "$VERBOSE" && $xx --version 2> /dev/null
# Make sure we get English translations.
LANGUAGE=C
export LANGUAGE
LC_ALL=C
export LC_ALL
LANG=C
export LANG
cat $srcdir/a0.I | $xx -c > a0.O 2> a0.E
code=$?
if test $code != 0 ; then
$echo "Test a0(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp a0.O $srcdir/a0.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed a0(|)"; fi ;;
1) $echo "Test a0(|) failed: files a0.O and $srcdir/a0.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test a0(|) may have failed." 1>&2;
$echo The command "cmp a0.O $srcdir/a0.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s a0.E || rm -f a0.E
$xx -c < $srcdir/a0.I > a0.O 2> a0.E
code=$?
if test $code != 0 ; then
$echo "Test a0(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp a0.O $srcdir/a0.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed a0(<)"; fi ;;
1) $echo "Test a0(<) failed: files a0.O and $srcdir/a0.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test a0(<) may have failed." 1>&2;
$echo The command "cmp a0.O $srcdir/a0.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s a0.E || rm -f a0.E
cat $srcdir/a1.I | $xx -l > a1.O 2> a1.E
code=$?
if test $code != 0 ; then
$echo "Test a1(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp a1.O $srcdir/a1.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed a1(|)"; fi ;;
1) $echo "Test a1(|) failed: files a1.O and $srcdir/a1.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test a1(|) may have failed." 1>&2;
$echo The command "cmp a1.O $srcdir/a1.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s a1.E || rm -f a1.E
$xx -l < $srcdir/a1.I > a1.O 2> a1.E
code=$?
if test $code != 0 ; then
$echo "Test a1(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp a1.O $srcdir/a1.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed a1(<)"; fi ;;
1) $echo "Test a1(<) failed: files a1.O and $srcdir/a1.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test a1(<) may have failed." 1>&2;
$echo The command "cmp a1.O $srcdir/a1.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s a1.E || rm -f a1.E
cat $srcdir/a2.I | $xx -w > a2.O 2> a2.E
code=$?
if test $code != 0 ; then
$echo "Test a2(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp a2.O $srcdir/a2.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed a2(|)"; fi ;;
1) $echo "Test a2(|) failed: files a2.O and $srcdir/a2.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test a2(|) may have failed." 1>&2;
$echo The command "cmp a2.O $srcdir/a2.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s a2.E || rm -f a2.E
$xx -w < $srcdir/a2.I > a2.O 2> a2.E
code=$?
if test $code != 0 ; then
$echo "Test a2(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp a2.O $srcdir/a2.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed a2(<)"; fi ;;
1) $echo "Test a2(<) failed: files a2.O and $srcdir/a2.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test a2(<) may have failed." 1>&2;
$echo The command "cmp a2.O $srcdir/a2.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s a2.E || rm -f a2.E
cat $srcdir/a3.I | $xx -c > a3.O 2> a3.E
code=$?
if test $code != 0 ; then
$echo "Test a3(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp a3.O $srcdir/a3.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed a3(|)"; fi ;;
1) $echo "Test a3(|) failed: files a3.O and $srcdir/a3.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test a3(|) may have failed." 1>&2;
$echo The command "cmp a3.O $srcdir/a3.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s a3.E || rm -f a3.E
$xx -c < $srcdir/a3.I > a3.O 2> a3.E
code=$?
if test $code != 0 ; then
$echo "Test a3(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp a3.O $srcdir/a3.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed a3(<)"; fi ;;
1) $echo "Test a3(<) failed: files a3.O and $srcdir/a3.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test a3(<) may have failed." 1>&2;
$echo The command "cmp a3.O $srcdir/a3.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s a3.E || rm -f a3.E
cat $srcdir/a4.I | $xx -w > a4.O 2> a4.E
code=$?
if test $code != 0 ; then
$echo "Test a4(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp a4.O $srcdir/a4.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed a4(|)"; fi ;;
1) $echo "Test a4(|) failed: files a4.O and $srcdir/a4.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test a4(|) may have failed." 1>&2;
$echo The command "cmp a4.O $srcdir/a4.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s a4.E || rm -f a4.E
$xx -w < $srcdir/a4.I > a4.O 2> a4.E
code=$?
if test $code != 0 ; then
$echo "Test a4(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp a4.O $srcdir/a4.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed a4(<)"; fi ;;
1) $echo "Test a4(<) failed: files a4.O and $srcdir/a4.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test a4(<) may have failed." 1>&2;
$echo The command "cmp a4.O $srcdir/a4.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s a4.E || rm -f a4.E
cat $srcdir/a5.I | $xx -w > a5.O 2> a5.E
code=$?
if test $code != 0 ; then
$echo "Test a5(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp a5.O $srcdir/a5.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed a5(|)"; fi ;;
1) $echo "Test a5(|) failed: files a5.O and $srcdir/a5.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test a5(|) may have failed." 1>&2;
$echo The command "cmp a5.O $srcdir/a5.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s a5.E || rm -f a5.E
$xx -w < $srcdir/a5.I > a5.O 2> a5.E
code=$?
if test $code != 0 ; then
$echo "Test a5(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp a5.O $srcdir/a5.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed a5(<)"; fi ;;
1) $echo "Test a5(<) failed: files a5.O and $srcdir/a5.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test a5(<) may have failed." 1>&2;
$echo The command "cmp a5.O $srcdir/a5.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s a5.E || rm -f a5.E
cat $srcdir/a6.I | $xx -w > a6.O 2> a6.E
code=$?
if test $code != 0 ; then
$echo "Test a6(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp a6.O $srcdir/a6.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed a6(|)"; fi ;;
1) $echo "Test a6(|) failed: files a6.O and $srcdir/a6.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test a6(|) may have failed." 1>&2;
$echo The command "cmp a6.O $srcdir/a6.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s a6.E || rm -f a6.E
$xx -w < $srcdir/a6.I > a6.O 2> a6.E
code=$?
if test $code != 0 ; then
$echo "Test a6(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp a6.O $srcdir/a6.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed a6(<)"; fi ;;
1) $echo "Test a6(<) failed: files a6.O and $srcdir/a6.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test a6(<) may have failed." 1>&2;
$echo The command "cmp a6.O $srcdir/a6.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s a6.E || rm -f a6.E
cat $srcdir/a7.I | $xx -l > a7.O 2> a7.E
code=$?
if test $code != 0 ; then
$echo "Test a7(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp a7.O $srcdir/a7.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed a7(|)"; fi ;;
1) $echo "Test a7(|) failed: files a7.O and $srcdir/a7.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test a7(|) may have failed." 1>&2;
$echo The command "cmp a7.O $srcdir/a7.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s a7.E || rm -f a7.E
$xx -l < $srcdir/a7.I > a7.O 2> a7.E
code=$?
if test $code != 0 ; then
$echo "Test a7(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp a7.O $srcdir/a7.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed a7(<)"; fi ;;
1) $echo "Test a7(<) failed: files a7.O and $srcdir/a7.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test a7(<) may have failed." 1>&2;
$echo The command "cmp a7.O $srcdir/a7.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s a7.E || rm -f a7.E
cat $srcdir/a8.I | $xx -l > a8.O 2> a8.E
code=$?
if test $code != 0 ; then
$echo "Test a8(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp a8.O $srcdir/a8.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed a8(|)"; fi ;;
1) $echo "Test a8(|) failed: files a8.O and $srcdir/a8.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test a8(|) may have failed." 1>&2;
$echo The command "cmp a8.O $srcdir/a8.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s a8.E || rm -f a8.E
$xx -l < $srcdir/a8.I > a8.O 2> a8.E
code=$?
if test $code != 0 ; then
$echo "Test a8(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp a8.O $srcdir/a8.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed a8(<)"; fi ;;
1) $echo "Test a8(<) failed: files a8.O and $srcdir/a8.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test a8(<) may have failed." 1>&2;
$echo The command "cmp a8.O $srcdir/a8.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s a8.E || rm -f a8.E
cat $srcdir/a9.I | $xx -l > a9.O 2> a9.E
code=$?
if test $code != 0 ; then
$echo "Test a9(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp a9.O $srcdir/a9.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed a9(|)"; fi ;;
1) $echo "Test a9(|) failed: files a9.O and $srcdir/a9.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test a9(|) may have failed." 1>&2;
$echo The command "cmp a9.O $srcdir/a9.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s a9.E || rm -f a9.E
$xx -l < $srcdir/a9.I > a9.O 2> a9.E
code=$?
if test $code != 0 ; then
$echo "Test a9(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp a9.O $srcdir/a9.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed a9(<)"; fi ;;
1) $echo "Test a9(<) failed: files a9.O and $srcdir/a9.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test a9(<) may have failed." 1>&2;
$echo The command "cmp a9.O $srcdir/a9.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s a9.E || rm -f a9.E
cat $srcdir/b0.I | $xx > b0.O 2> b0.E
code=$?
if test $code != 0 ; then
$echo "Test b0(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp b0.O $srcdir/b0.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed b0(|)"; fi ;;
1) $echo "Test b0(|) failed: files b0.O and $srcdir/b0.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test b0(|) may have failed." 1>&2;
$echo The command "cmp b0.O $srcdir/b0.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s b0.E || rm -f b0.E
$xx < $srcdir/b0.I > b0.O 2> b0.E
code=$?
if test $code != 0 ; then
$echo "Test b0(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp b0.O $srcdir/b0.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed b0(<)"; fi ;;
1) $echo "Test b0(<) failed: files b0.O and $srcdir/b0.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test b0(<) may have failed." 1>&2;
$echo The command "cmp b0.O $srcdir/b0.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s b0.E || rm -f b0.E
cat $srcdir/b1.I | $xx > b1.O 2> b1.E
code=$?
if test $code != 0 ; then
$echo "Test b1(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp b1.O $srcdir/b1.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed b1(|)"; fi ;;
1) $echo "Test b1(|) failed: files b1.O and $srcdir/b1.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test b1(|) may have failed." 1>&2;
$echo The command "cmp b1.O $srcdir/b1.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s b1.E || rm -f b1.E
$xx < $srcdir/b1.I > b1.O 2> b1.E
code=$?
if test $code != 0 ; then
$echo "Test b1(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp b1.O $srcdir/b1.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed b1(<)"; fi ;;
1) $echo "Test b1(<) failed: files b1.O and $srcdir/b1.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test b1(<) may have failed." 1>&2;
$echo The command "cmp b1.O $srcdir/b1.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s b1.E || rm -f b1.E
cat $srcdir/c0.I | $xx -L > c0.O 2> c0.E
code=$?
if test $code != 0 ; then
$echo "Test c0(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp c0.O $srcdir/c0.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed c0(|)"; fi ;;
1) $echo "Test c0(|) failed: files c0.O and $srcdir/c0.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test c0(|) may have failed." 1>&2;
$echo The command "cmp c0.O $srcdir/c0.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s c0.E || rm -f c0.E
$xx -L < $srcdir/c0.I > c0.O 2> c0.E
code=$?
if test $code != 0 ; then
$echo "Test c0(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp c0.O $srcdir/c0.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed c0(<)"; fi ;;
1) $echo "Test c0(<) failed: files c0.O and $srcdir/c0.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test c0(<) may have failed." 1>&2;
$echo The command "cmp c0.O $srcdir/c0.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s c0.E || rm -f c0.E
cat $srcdir/c1.I | $xx -L > c1.O 2> c1.E
code=$?
if test $code != 0 ; then
$echo "Test c1(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp c1.O $srcdir/c1.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed c1(|)"; fi ;;
1) $echo "Test c1(|) failed: files c1.O and $srcdir/c1.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test c1(|) may have failed." 1>&2;
$echo The command "cmp c1.O $srcdir/c1.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s c1.E || rm -f c1.E
$xx -L < $srcdir/c1.I > c1.O 2> c1.E
code=$?
if test $code != 0 ; then
$echo "Test c1(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp c1.O $srcdir/c1.X > /dev/null 2>&1
case $? in
0) if test "$VERBOSE" ; then $echo "passed c1(<)"; fi ;;
1) $echo "Test c1(<) failed: files c1.O and $srcdir/c1.X differ" 1>&2;
errors=`expr $errors + 1` ;;
2) $echo "Test c1(<) may have failed." 1>&2;
$echo The command "cmp c1.O $srcdir/c1.X" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
fi
test -s c1.E || rm -f c1.E
if test $errors = 0 ; then
$echo Passed all 28 tests. 1>&2
else
$echo Failed $errors tests. 1>&2
fi
test $errors = 0 || errors=1
exit $errors
|