*** empty log message ***
[coreutils.git] / tests / tr / tr-tests
blobc7de7daead7d001cda809226027c53b4297e012d
1 #! /bin/sh
2 # This script was generated automatically by build-script.
3 case $# in
4 0) xx='../../src/tr';;
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 cat $srcdir/1.I | $xx 'abcd' '[]*]' > 1.O 2> 1.E
22 code=$?
23 if test $code != 0 ; then
24 $echo "Test 1(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
25 errors=`expr $errors + 1`
26 else
27 cmp 1.O $srcdir/1.X > /dev/null 2>&1
28 case $? in
29 0) if test "$VERBOSE" ; then $echo "passed 1(|)"; fi ;;
30 1) $echo "Test 1(|) failed: files 1.O and $srcdir/1.X differ" 1>&2;
31 errors=`expr $errors + 1` ;;
32 2) $echo "Test 1(|) may have failed." 1>&2;
33 $echo The command "cmp 1.O $srcdir/1.X" failed. 1>&2 ;
34 errors=`expr $errors + 1` ;;
35 esac
37 test -s 1.E || rm -f 1.E
38 $xx 'abcd' '[]*]' < $srcdir/1.I > 1.O 2> 1.E
39 code=$?
40 if test $code != 0 ; then
41 $echo "Test 1(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
42 errors=`expr $errors + 1`
43 else
44 cmp 1.O $srcdir/1.X > /dev/null 2>&1
45 case $? in
46 0) if test "$VERBOSE" ; then $echo "passed 1(<)"; fi ;;
47 1) $echo "Test 1(<) failed: files 1.O and $srcdir/1.X differ" 1>&2;
48 errors=`expr $errors + 1` ;;
49 2) $echo "Test 1(<) may have failed." 1>&2;
50 $echo The command "cmp 1.O $srcdir/1.X" failed. 1>&2 ;
51 errors=`expr $errors + 1` ;;
52 esac
54 test -s 1.E || rm -f 1.E
55 cat $srcdir/2.I | $xx 'abc' '[%*]xyz' > 2.O 2> 2.E
56 code=$?
57 if test $code != 0 ; then
58 $echo "Test 2(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
59 errors=`expr $errors + 1`
60 else
61 cmp 2.O $srcdir/2.X > /dev/null 2>&1
62 case $? in
63 0) if test "$VERBOSE" ; then $echo "passed 2(|)"; fi ;;
64 1) $echo "Test 2(|) failed: files 2.O and $srcdir/2.X differ" 1>&2;
65 errors=`expr $errors + 1` ;;
66 2) $echo "Test 2(|) may have failed." 1>&2;
67 $echo The command "cmp 2.O $srcdir/2.X" failed. 1>&2 ;
68 errors=`expr $errors + 1` ;;
69 esac
71 test -s 2.E || rm -f 2.E
72 $xx 'abc' '[%*]xyz' < $srcdir/2.I > 2.O 2> 2.E
73 code=$?
74 if test $code != 0 ; then
75 $echo "Test 2(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
76 errors=`expr $errors + 1`
77 else
78 cmp 2.O $srcdir/2.X > /dev/null 2>&1
79 case $? in
80 0) if test "$VERBOSE" ; then $echo "passed 2(<)"; fi ;;
81 1) $echo "Test 2(<) failed: files 2.O and $srcdir/2.X differ" 1>&2;
82 errors=`expr $errors + 1` ;;
83 2) $echo "Test 2(<) may have failed." 1>&2;
84 $echo The command "cmp 2.O $srcdir/2.X" failed. 1>&2 ;
85 errors=`expr $errors + 1` ;;
86 esac
88 test -s 2.E || rm -f 2.E
89 cat $srcdir/3.I | $xx '' '[.*]' > 3.O 2> 3.E
90 code=$?
91 if test $code != 0 ; then
92 $echo "Test 3(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
93 errors=`expr $errors + 1`
94 else
95 cmp 3.O $srcdir/3.X > /dev/null 2>&1
96 case $? in
97 0) if test "$VERBOSE" ; then $echo "passed 3(|)"; fi ;;
98 1) $echo "Test 3(|) failed: files 3.O and $srcdir/3.X differ" 1>&2;
99 errors=`expr $errors + 1` ;;
100 2) $echo "Test 3(|) may have failed." 1>&2;
101 $echo The command "cmp 3.O $srcdir/3.X" failed. 1>&2 ;
102 errors=`expr $errors + 1` ;;
103 esac
105 test -s 3.E || rm -f 3.E
106 $xx '' '[.*]' < $srcdir/3.I > 3.O 2> 3.E
107 code=$?
108 if test $code != 0 ; then
109 $echo "Test 3(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
110 errors=`expr $errors + 1`
111 else
112 cmp 3.O $srcdir/3.X > /dev/null 2>&1
113 case $? in
114 0) if test "$VERBOSE" ; then $echo "passed 3(<)"; fi ;;
115 1) $echo "Test 3(<) failed: files 3.O and $srcdir/3.X differ" 1>&2;
116 errors=`expr $errors + 1` ;;
117 2) $echo "Test 3(<) may have failed." 1>&2;
118 $echo The command "cmp 3.O $srcdir/3.X" failed. 1>&2 ;
119 errors=`expr $errors + 1` ;;
120 esac
122 test -s 3.E || rm -f 3.E
123 cat $srcdir/4.I | $xx -t 'abcd' 'xy' > 4.O 2> 4.E
124 code=$?
125 if test $code != 0 ; then
126 $echo "Test 4(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
127 errors=`expr $errors + 1`
128 else
129 cmp 4.O $srcdir/4.X > /dev/null 2>&1
130 case $? in
131 0) if test "$VERBOSE" ; then $echo "passed 4(|)"; fi ;;
132 1) $echo "Test 4(|) failed: files 4.O and $srcdir/4.X differ" 1>&2;
133 errors=`expr $errors + 1` ;;
134 2) $echo "Test 4(|) may have failed." 1>&2;
135 $echo The command "cmp 4.O $srcdir/4.X" failed. 1>&2 ;
136 errors=`expr $errors + 1` ;;
137 esac
139 test -s 4.E || rm -f 4.E
140 $xx -t 'abcd' 'xy' < $srcdir/4.I > 4.O 2> 4.E
141 code=$?
142 if test $code != 0 ; then
143 $echo "Test 4(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
144 errors=`expr $errors + 1`
145 else
146 cmp 4.O $srcdir/4.X > /dev/null 2>&1
147 case $? in
148 0) if test "$VERBOSE" ; then $echo "passed 4(<)"; fi ;;
149 1) $echo "Test 4(<) failed: files 4.O and $srcdir/4.X differ" 1>&2;
150 errors=`expr $errors + 1` ;;
151 2) $echo "Test 4(<) may have failed." 1>&2;
152 $echo The command "cmp 4.O $srcdir/4.X" failed. 1>&2 ;
153 errors=`expr $errors + 1` ;;
154 esac
156 test -s 4.E || rm -f 4.E
157 cat $srcdir/5.I | $xx 'abcd' 'xy' > 5.O 2> 5.E
158 code=$?
159 if test $code != 0 ; then
160 $echo "Test 5(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
161 errors=`expr $errors + 1`
162 else
163 cmp 5.O $srcdir/5.X > /dev/null 2>&1
164 case $? in
165 0) if test "$VERBOSE" ; then $echo "passed 5(|)"; fi ;;
166 1) $echo "Test 5(|) failed: files 5.O and $srcdir/5.X differ" 1>&2;
167 errors=`expr $errors + 1` ;;
168 2) $echo "Test 5(|) may have failed." 1>&2;
169 $echo The command "cmp 5.O $srcdir/5.X" failed. 1>&2 ;
170 errors=`expr $errors + 1` ;;
171 esac
173 test -s 5.E || rm -f 5.E
174 $xx 'abcd' 'xy' < $srcdir/5.I > 5.O 2> 5.E
175 code=$?
176 if test $code != 0 ; then
177 $echo "Test 5(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
178 errors=`expr $errors + 1`
179 else
180 cmp 5.O $srcdir/5.X > /dev/null 2>&1
181 case $? in
182 0) if test "$VERBOSE" ; then $echo "passed 5(<)"; fi ;;
183 1) $echo "Test 5(<) failed: files 5.O and $srcdir/5.X differ" 1>&2;
184 errors=`expr $errors + 1` ;;
185 2) $echo "Test 5(<) may have failed." 1>&2;
186 $echo The command "cmp 5.O $srcdir/5.X" failed. 1>&2 ;
187 errors=`expr $errors + 1` ;;
188 esac
190 test -s 5.E || rm -f 5.E
191 cat $srcdir/6.I | $xx 'abcd' 'x[y*]' > 6.O 2> 6.E
192 code=$?
193 if test $code != 0 ; then
194 $echo "Test 6(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
195 errors=`expr $errors + 1`
196 else
197 cmp 6.O $srcdir/6.X > /dev/null 2>&1
198 case $? in
199 0) if test "$VERBOSE" ; then $echo "passed 6(|)"; fi ;;
200 1) $echo "Test 6(|) failed: files 6.O and $srcdir/6.X differ" 1>&2;
201 errors=`expr $errors + 1` ;;
202 2) $echo "Test 6(|) may have failed." 1>&2;
203 $echo The command "cmp 6.O $srcdir/6.X" failed. 1>&2 ;
204 errors=`expr $errors + 1` ;;
205 esac
207 test -s 6.E || rm -f 6.E
208 $xx 'abcd' 'x[y*]' < $srcdir/6.I > 6.O 2> 6.E
209 code=$?
210 if test $code != 0 ; then
211 $echo "Test 6(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
212 errors=`expr $errors + 1`
213 else
214 cmp 6.O $srcdir/6.X > /dev/null 2>&1
215 case $? in
216 0) if test "$VERBOSE" ; then $echo "passed 6(<)"; fi ;;
217 1) $echo "Test 6(<) failed: files 6.O and $srcdir/6.X differ" 1>&2;
218 errors=`expr $errors + 1` ;;
219 2) $echo "Test 6(<) may have failed." 1>&2;
220 $echo The command "cmp 6.O $srcdir/6.X" failed. 1>&2 ;
221 errors=`expr $errors + 1` ;;
222 esac
224 test -s 6.E || rm -f 6.E
225 cat $srcdir/7.I | $xx -s 'a-p' '%[.*]$' > 7.O 2> 7.E
226 code=$?
227 if test $code != 0 ; then
228 $echo "Test 7(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
229 errors=`expr $errors + 1`
230 else
231 cmp 7.O $srcdir/7.X > /dev/null 2>&1
232 case $? in
233 0) if test "$VERBOSE" ; then $echo "passed 7(|)"; fi ;;
234 1) $echo "Test 7(|) failed: files 7.O and $srcdir/7.X differ" 1>&2;
235 errors=`expr $errors + 1` ;;
236 2) $echo "Test 7(|) may have failed." 1>&2;
237 $echo The command "cmp 7.O $srcdir/7.X" failed. 1>&2 ;
238 errors=`expr $errors + 1` ;;
239 esac
241 test -s 7.E || rm -f 7.E
242 $xx -s 'a-p' '%[.*]$' < $srcdir/7.I > 7.O 2> 7.E
243 code=$?
244 if test $code != 0 ; then
245 $echo "Test 7(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
246 errors=`expr $errors + 1`
247 else
248 cmp 7.O $srcdir/7.X > /dev/null 2>&1
249 case $? in
250 0) if test "$VERBOSE" ; then $echo "passed 7(<)"; fi ;;
251 1) $echo "Test 7(<) failed: files 7.O and $srcdir/7.X differ" 1>&2;
252 errors=`expr $errors + 1` ;;
253 2) $echo "Test 7(<) may have failed." 1>&2;
254 $echo The command "cmp 7.O $srcdir/7.X" failed. 1>&2 ;
255 errors=`expr $errors + 1` ;;
256 esac
258 test -s 7.E || rm -f 7.E
259 cat $srcdir/8.I | $xx -s 'a-p' '[.*]$' > 8.O 2> 8.E
260 code=$?
261 if test $code != 0 ; then
262 $echo "Test 8(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
263 errors=`expr $errors + 1`
264 else
265 cmp 8.O $srcdir/8.X > /dev/null 2>&1
266 case $? in
267 0) if test "$VERBOSE" ; then $echo "passed 8(|)"; fi ;;
268 1) $echo "Test 8(|) failed: files 8.O and $srcdir/8.X differ" 1>&2;
269 errors=`expr $errors + 1` ;;
270 2) $echo "Test 8(|) may have failed." 1>&2;
271 $echo The command "cmp 8.O $srcdir/8.X" failed. 1>&2 ;
272 errors=`expr $errors + 1` ;;
273 esac
275 test -s 8.E || rm -f 8.E
276 $xx -s 'a-p' '[.*]$' < $srcdir/8.I > 8.O 2> 8.E
277 code=$?
278 if test $code != 0 ; then
279 $echo "Test 8(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
280 errors=`expr $errors + 1`
281 else
282 cmp 8.O $srcdir/8.X > /dev/null 2>&1
283 case $? in
284 0) if test "$VERBOSE" ; then $echo "passed 8(<)"; fi ;;
285 1) $echo "Test 8(<) failed: files 8.O and $srcdir/8.X differ" 1>&2;
286 errors=`expr $errors + 1` ;;
287 2) $echo "Test 8(<) may have failed." 1>&2;
288 $echo The command "cmp 8.O $srcdir/8.X" failed. 1>&2 ;
289 errors=`expr $errors + 1` ;;
290 esac
292 test -s 8.E || rm -f 8.E
293 cat $srcdir/9.I | $xx -s 'a-p' '%[.*]' > 9.O 2> 9.E
294 code=$?
295 if test $code != 0 ; then
296 $echo "Test 9(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
297 errors=`expr $errors + 1`
298 else
299 cmp 9.O $srcdir/9.X > /dev/null 2>&1
300 case $? in
301 0) if test "$VERBOSE" ; then $echo "passed 9(|)"; fi ;;
302 1) $echo "Test 9(|) failed: files 9.O and $srcdir/9.X differ" 1>&2;
303 errors=`expr $errors + 1` ;;
304 2) $echo "Test 9(|) may have failed." 1>&2;
305 $echo The command "cmp 9.O $srcdir/9.X" failed. 1>&2 ;
306 errors=`expr $errors + 1` ;;
307 esac
309 test -s 9.E || rm -f 9.E
310 $xx -s 'a-p' '%[.*]' < $srcdir/9.I > 9.O 2> 9.E
311 code=$?
312 if test $code != 0 ; then
313 $echo "Test 9(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
314 errors=`expr $errors + 1`
315 else
316 cmp 9.O $srcdir/9.X > /dev/null 2>&1
317 case $? in
318 0) if test "$VERBOSE" ; then $echo "passed 9(<)"; fi ;;
319 1) $echo "Test 9(<) failed: files 9.O and $srcdir/9.X differ" 1>&2;
320 errors=`expr $errors + 1` ;;
321 2) $echo "Test 9(<) may have failed." 1>&2;
322 $echo The command "cmp 9.O $srcdir/9.X" failed. 1>&2 ;
323 errors=`expr $errors + 1` ;;
324 esac
326 test -s 9.E || rm -f 9.E
327 cat $srcdir/a.I | $xx -s '[a-z]' > a.O 2> a.E
328 code=$?
329 if test $code != 0 ; then
330 $echo "Test a(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
331 errors=`expr $errors + 1`
332 else
333 cmp a.O $srcdir/a.X > /dev/null 2>&1
334 case $? in
335 0) if test "$VERBOSE" ; then $echo "passed a(|)"; fi ;;
336 1) $echo "Test a(|) failed: files a.O and $srcdir/a.X differ" 1>&2;
337 errors=`expr $errors + 1` ;;
338 2) $echo "Test a(|) may have failed." 1>&2;
339 $echo The command "cmp a.O $srcdir/a.X" failed. 1>&2 ;
340 errors=`expr $errors + 1` ;;
341 esac
343 test -s a.E || rm -f a.E
344 $xx -s '[a-z]' < $srcdir/a.I > a.O 2> a.E
345 code=$?
346 if test $code != 0 ; then
347 $echo "Test a(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
348 errors=`expr $errors + 1`
349 else
350 cmp a.O $srcdir/a.X > /dev/null 2>&1
351 case $? in
352 0) if test "$VERBOSE" ; then $echo "passed a(<)"; fi ;;
353 1) $echo "Test a(<) failed: files a.O and $srcdir/a.X differ" 1>&2;
354 errors=`expr $errors + 1` ;;
355 2) $echo "Test a(<) may have failed." 1>&2;
356 $echo The command "cmp a.O $srcdir/a.X" failed. 1>&2 ;
357 errors=`expr $errors + 1` ;;
358 esac
360 test -s a.E || rm -f a.E
361 cat $srcdir/b.I | $xx -s '[a-c]' > b.O 2> b.E
362 code=$?
363 if test $code != 0 ; then
364 $echo "Test b(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
365 errors=`expr $errors + 1`
366 else
367 cmp b.O $srcdir/b.X > /dev/null 2>&1
368 case $? in
369 0) if test "$VERBOSE" ; then $echo "passed b(|)"; fi ;;
370 1) $echo "Test b(|) failed: files b.O and $srcdir/b.X differ" 1>&2;
371 errors=`expr $errors + 1` ;;
372 2) $echo "Test b(|) may have failed." 1>&2;
373 $echo The command "cmp b.O $srcdir/b.X" failed. 1>&2 ;
374 errors=`expr $errors + 1` ;;
375 esac
377 test -s b.E || rm -f b.E
378 $xx -s '[a-c]' < $srcdir/b.I > b.O 2> b.E
379 code=$?
380 if test $code != 0 ; then
381 $echo "Test b(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
382 errors=`expr $errors + 1`
383 else
384 cmp b.O $srcdir/b.X > /dev/null 2>&1
385 case $? in
386 0) if test "$VERBOSE" ; then $echo "passed b(<)"; fi ;;
387 1) $echo "Test b(<) failed: files b.O and $srcdir/b.X differ" 1>&2;
388 errors=`expr $errors + 1` ;;
389 2) $echo "Test b(<) may have failed." 1>&2;
390 $echo The command "cmp b.O $srcdir/b.X" failed. 1>&2 ;
391 errors=`expr $errors + 1` ;;
392 esac
394 test -s b.E || rm -f b.E
395 cat $srcdir/c.I | $xx -s '[a-b]' > c.O 2> c.E
396 code=$?
397 if test $code != 0 ; then
398 $echo "Test c(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
399 errors=`expr $errors + 1`
400 else
401 cmp c.O $srcdir/c.X > /dev/null 2>&1
402 case $? in
403 0) if test "$VERBOSE" ; then $echo "passed c(|)"; fi ;;
404 1) $echo "Test c(|) failed: files c.O and $srcdir/c.X differ" 1>&2;
405 errors=`expr $errors + 1` ;;
406 2) $echo "Test c(|) may have failed." 1>&2;
407 $echo The command "cmp c.O $srcdir/c.X" failed. 1>&2 ;
408 errors=`expr $errors + 1` ;;
409 esac
411 test -s c.E || rm -f c.E
412 $xx -s '[a-b]' < $srcdir/c.I > c.O 2> c.E
413 code=$?
414 if test $code != 0 ; then
415 $echo "Test c(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
416 errors=`expr $errors + 1`
417 else
418 cmp c.O $srcdir/c.X > /dev/null 2>&1
419 case $? in
420 0) if test "$VERBOSE" ; then $echo "passed c(<)"; fi ;;
421 1) $echo "Test c(<) failed: files c.O and $srcdir/c.X differ" 1>&2;
422 errors=`expr $errors + 1` ;;
423 2) $echo "Test c(<) may have failed." 1>&2;
424 $echo The command "cmp c.O $srcdir/c.X" failed. 1>&2 ;
425 errors=`expr $errors + 1` ;;
426 esac
428 test -s c.E || rm -f c.E
429 cat $srcdir/d.I | $xx -s '[b-c]' > d.O 2> d.E
430 code=$?
431 if test $code != 0 ; then
432 $echo "Test d(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
433 errors=`expr $errors + 1`
434 else
435 cmp d.O $srcdir/d.X > /dev/null 2>&1
436 case $? in
437 0) if test "$VERBOSE" ; then $echo "passed d(|)"; fi ;;
438 1) $echo "Test d(|) failed: files d.O and $srcdir/d.X differ" 1>&2;
439 errors=`expr $errors + 1` ;;
440 2) $echo "Test d(|) may have failed." 1>&2;
441 $echo The command "cmp d.O $srcdir/d.X" failed. 1>&2 ;
442 errors=`expr $errors + 1` ;;
443 esac
445 test -s d.E || rm -f d.E
446 $xx -s '[b-c]' < $srcdir/d.I > d.O 2> d.E
447 code=$?
448 if test $code != 0 ; then
449 $echo "Test d(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
450 errors=`expr $errors + 1`
451 else
452 cmp d.O $srcdir/d.X > /dev/null 2>&1
453 case $? in
454 0) if test "$VERBOSE" ; then $echo "passed d(<)"; fi ;;
455 1) $echo "Test d(<) failed: files d.O and $srcdir/d.X differ" 1>&2;
456 errors=`expr $errors + 1` ;;
457 2) $echo "Test d(<) may have failed." 1>&2;
458 $echo The command "cmp d.O $srcdir/d.X" failed. 1>&2 ;
459 errors=`expr $errors + 1` ;;
460 esac
462 test -s d.E || rm -f d.E
463 cat $srcdir/e.I | $xx -s '[\0-\5]' > e.O 2> e.E
464 code=$?
465 if test $code != 0 ; then
466 $echo "Test e(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
467 errors=`expr $errors + 1`
468 else
469 cmp e.O $srcdir/e.X > /dev/null 2>&1
470 case $? in
471 0) if test "$VERBOSE" ; then $echo "passed e(|)"; fi ;;
472 1) $echo "Test e(|) failed: files e.O and $srcdir/e.X differ" 1>&2;
473 errors=`expr $errors + 1` ;;
474 2) $echo "Test e(|) may have failed." 1>&2;
475 $echo The command "cmp e.O $srcdir/e.X" failed. 1>&2 ;
476 errors=`expr $errors + 1` ;;
477 esac
479 test -s e.E || rm -f e.E
480 $xx -s '[\0-\5]' < $srcdir/e.I > e.O 2> e.E
481 code=$?
482 if test $code != 0 ; then
483 $echo "Test e(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
484 errors=`expr $errors + 1`
485 else
486 cmp e.O $srcdir/e.X > /dev/null 2>&1
487 case $? in
488 0) if test "$VERBOSE" ; then $echo "passed e(<)"; fi ;;
489 1) $echo "Test e(<) failed: files e.O and $srcdir/e.X differ" 1>&2;
490 errors=`expr $errors + 1` ;;
491 2) $echo "Test e(<) may have failed." 1>&2;
492 $echo The command "cmp e.O $srcdir/e.X" failed. 1>&2 ;
493 errors=`expr $errors + 1` ;;
494 esac
496 test -s e.E || rm -f e.E
497 cat $srcdir/f.I | $xx -d '[=[=]' > f.O 2> f.E
498 code=$?
499 if test $code != 0 ; then
500 $echo "Test f(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
501 errors=`expr $errors + 1`
502 else
503 cmp f.O $srcdir/f.X > /dev/null 2>&1
504 case $? in
505 0) if test "$VERBOSE" ; then $echo "passed f(|)"; fi ;;
506 1) $echo "Test f(|) failed: files f.O and $srcdir/f.X differ" 1>&2;
507 errors=`expr $errors + 1` ;;
508 2) $echo "Test f(|) may have failed." 1>&2;
509 $echo The command "cmp f.O $srcdir/f.X" failed. 1>&2 ;
510 errors=`expr $errors + 1` ;;
511 esac
513 test -s f.E || rm -f f.E
514 $xx -d '[=[=]' < $srcdir/f.I > f.O 2> f.E
515 code=$?
516 if test $code != 0 ; then
517 $echo "Test f(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
518 errors=`expr $errors + 1`
519 else
520 cmp f.O $srcdir/f.X > /dev/null 2>&1
521 case $? in
522 0) if test "$VERBOSE" ; then $echo "passed f(<)"; fi ;;
523 1) $echo "Test f(<) failed: files f.O and $srcdir/f.X differ" 1>&2;
524 errors=`expr $errors + 1` ;;
525 2) $echo "Test f(<) may have failed." 1>&2;
526 $echo The command "cmp f.O $srcdir/f.X" failed. 1>&2 ;
527 errors=`expr $errors + 1` ;;
528 esac
530 test -s f.E || rm -f f.E
531 cat $srcdir/g.I | $xx -d '[=]=]' > g.O 2> g.E
532 code=$?
533 if test $code != 0 ; then
534 $echo "Test g(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
535 errors=`expr $errors + 1`
536 else
537 cmp g.O $srcdir/g.X > /dev/null 2>&1
538 case $? in
539 0) if test "$VERBOSE" ; then $echo "passed g(|)"; fi ;;
540 1) $echo "Test g(|) failed: files g.O and $srcdir/g.X differ" 1>&2;
541 errors=`expr $errors + 1` ;;
542 2) $echo "Test g(|) may have failed." 1>&2;
543 $echo The command "cmp g.O $srcdir/g.X" failed. 1>&2 ;
544 errors=`expr $errors + 1` ;;
545 esac
547 test -s g.E || rm -f g.E
548 $xx -d '[=]=]' < $srcdir/g.I > g.O 2> g.E
549 code=$?
550 if test $code != 0 ; then
551 $echo "Test g(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
552 errors=`expr $errors + 1`
553 else
554 cmp g.O $srcdir/g.X > /dev/null 2>&1
555 case $? in
556 0) if test "$VERBOSE" ; then $echo "passed g(<)"; fi ;;
557 1) $echo "Test g(<) failed: files g.O and $srcdir/g.X differ" 1>&2;
558 errors=`expr $errors + 1` ;;
559 2) $echo "Test g(<) may have failed." 1>&2;
560 $echo The command "cmp g.O $srcdir/g.X" failed. 1>&2 ;
561 errors=`expr $errors + 1` ;;
562 esac
564 test -s g.E || rm -f g.E
565 cat $srcdir/h.I | $xx -d '[:xdigit:]' > h.O 2> h.E
566 code=$?
567 if test $code != 0 ; then
568 $echo "Test h(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
569 errors=`expr $errors + 1`
570 else
571 cmp h.O $srcdir/h.X > /dev/null 2>&1
572 case $? in
573 0) if test "$VERBOSE" ; then $echo "passed h(|)"; fi ;;
574 1) $echo "Test h(|) failed: files h.O and $srcdir/h.X differ" 1>&2;
575 errors=`expr $errors + 1` ;;
576 2) $echo "Test h(|) may have failed." 1>&2;
577 $echo The command "cmp h.O $srcdir/h.X" failed. 1>&2 ;
578 errors=`expr $errors + 1` ;;
579 esac
581 test -s h.E || rm -f h.E
582 $xx -d '[:xdigit:]' < $srcdir/h.I > h.O 2> h.E
583 code=$?
584 if test $code != 0 ; then
585 $echo "Test h(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
586 errors=`expr $errors + 1`
587 else
588 cmp h.O $srcdir/h.X > /dev/null 2>&1
589 case $? in
590 0) if test "$VERBOSE" ; then $echo "passed h(<)"; fi ;;
591 1) $echo "Test h(<) failed: files h.O and $srcdir/h.X differ" 1>&2;
592 errors=`expr $errors + 1` ;;
593 2) $echo "Test h(<) may have failed." 1>&2;
594 $echo The command "cmp h.O $srcdir/h.X" failed. 1>&2 ;
595 errors=`expr $errors + 1` ;;
596 esac
598 test -s h.E || rm -f h.E
599 cat $srcdir/i.I | $xx -d '[:xdigit:]' > i.O 2> i.E
600 code=$?
601 if test $code != 0 ; then
602 $echo "Test i(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
603 errors=`expr $errors + 1`
604 else
605 cmp i.O $srcdir/i.X > /dev/null 2>&1
606 case $? in
607 0) if test "$VERBOSE" ; then $echo "passed i(|)"; fi ;;
608 1) $echo "Test i(|) failed: files i.O and $srcdir/i.X differ" 1>&2;
609 errors=`expr $errors + 1` ;;
610 2) $echo "Test i(|) may have failed." 1>&2;
611 $echo The command "cmp i.O $srcdir/i.X" failed. 1>&2 ;
612 errors=`expr $errors + 1` ;;
613 esac
615 test -s i.E || rm -f i.E
616 $xx -d '[:xdigit:]' < $srcdir/i.I > i.O 2> i.E
617 code=$?
618 if test $code != 0 ; then
619 $echo "Test i(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
620 errors=`expr $errors + 1`
621 else
622 cmp i.O $srcdir/i.X > /dev/null 2>&1
623 case $? in
624 0) if test "$VERBOSE" ; then $echo "passed i(<)"; fi ;;
625 1) $echo "Test i(<) failed: files i.O and $srcdir/i.X differ" 1>&2;
626 errors=`expr $errors + 1` ;;
627 2) $echo "Test i(<) may have failed." 1>&2;
628 $echo The command "cmp i.O $srcdir/i.X" failed. 1>&2 ;
629 errors=`expr $errors + 1` ;;
630 esac
632 test -s i.E || rm -f i.E
633 cat $srcdir/j.I | $xx -d '[:digit:]' > j.O 2> j.E
634 code=$?
635 if test $code != 0 ; then
636 $echo "Test j(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
637 errors=`expr $errors + 1`
638 else
639 cmp j.O $srcdir/j.X > /dev/null 2>&1
640 case $? in
641 0) if test "$VERBOSE" ; then $echo "passed j(|)"; fi ;;
642 1) $echo "Test j(|) failed: files j.O and $srcdir/j.X differ" 1>&2;
643 errors=`expr $errors + 1` ;;
644 2) $echo "Test j(|) may have failed." 1>&2;
645 $echo The command "cmp j.O $srcdir/j.X" failed. 1>&2 ;
646 errors=`expr $errors + 1` ;;
647 esac
649 test -s j.E || rm -f j.E
650 $xx -d '[:digit:]' < $srcdir/j.I > j.O 2> j.E
651 code=$?
652 if test $code != 0 ; then
653 $echo "Test j(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
654 errors=`expr $errors + 1`
655 else
656 cmp j.O $srcdir/j.X > /dev/null 2>&1
657 case $? in
658 0) if test "$VERBOSE" ; then $echo "passed j(<)"; fi ;;
659 1) $echo "Test j(<) failed: files j.O and $srcdir/j.X differ" 1>&2;
660 errors=`expr $errors + 1` ;;
661 2) $echo "Test j(<) may have failed." 1>&2;
662 $echo The command "cmp j.O $srcdir/j.X" failed. 1>&2 ;
663 errors=`expr $errors + 1` ;;
664 esac
666 test -s j.E || rm -f j.E
667 cat $srcdir/k.I | $xx -d '[:digit:]' > k.O 2> k.E
668 code=$?
669 if test $code != 0 ; then
670 $echo "Test k(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
671 errors=`expr $errors + 1`
672 else
673 cmp k.O $srcdir/k.X > /dev/null 2>&1
674 case $? in
675 0) if test "$VERBOSE" ; then $echo "passed k(|)"; fi ;;
676 1) $echo "Test k(|) failed: files k.O and $srcdir/k.X differ" 1>&2;
677 errors=`expr $errors + 1` ;;
678 2) $echo "Test k(|) may have failed." 1>&2;
679 $echo The command "cmp k.O $srcdir/k.X" failed. 1>&2 ;
680 errors=`expr $errors + 1` ;;
681 esac
683 test -s k.E || rm -f k.E
684 $xx -d '[:digit:]' < $srcdir/k.I > k.O 2> k.E
685 code=$?
686 if test $code != 0 ; then
687 $echo "Test k(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
688 errors=`expr $errors + 1`
689 else
690 cmp k.O $srcdir/k.X > /dev/null 2>&1
691 case $? in
692 0) if test "$VERBOSE" ; then $echo "passed k(<)"; fi ;;
693 1) $echo "Test k(<) failed: files k.O and $srcdir/k.X differ" 1>&2;
694 errors=`expr $errors + 1` ;;
695 2) $echo "Test k(<) may have failed." 1>&2;
696 $echo The command "cmp k.O $srcdir/k.X" failed. 1>&2 ;
697 errors=`expr $errors + 1` ;;
698 esac
700 test -s k.E || rm -f k.E
701 cat $srcdir/l.I | $xx -d '[:lower:]' > l.O 2> l.E
702 code=$?
703 if test $code != 0 ; then
704 $echo "Test l(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
705 errors=`expr $errors + 1`
706 else
707 cmp l.O $srcdir/l.X > /dev/null 2>&1
708 case $? in
709 0) if test "$VERBOSE" ; then $echo "passed l(|)"; fi ;;
710 1) $echo "Test l(|) failed: files l.O and $srcdir/l.X differ" 1>&2;
711 errors=`expr $errors + 1` ;;
712 2) $echo "Test l(|) may have failed." 1>&2;
713 $echo The command "cmp l.O $srcdir/l.X" failed. 1>&2 ;
714 errors=`expr $errors + 1` ;;
715 esac
717 test -s l.E || rm -f l.E
718 $xx -d '[:lower:]' < $srcdir/l.I > l.O 2> l.E
719 code=$?
720 if test $code != 0 ; then
721 $echo "Test l(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
722 errors=`expr $errors + 1`
723 else
724 cmp l.O $srcdir/l.X > /dev/null 2>&1
725 case $? in
726 0) if test "$VERBOSE" ; then $echo "passed l(<)"; fi ;;
727 1) $echo "Test l(<) failed: files l.O and $srcdir/l.X differ" 1>&2;
728 errors=`expr $errors + 1` ;;
729 2) $echo "Test l(<) may have failed." 1>&2;
730 $echo The command "cmp l.O $srcdir/l.X" failed. 1>&2 ;
731 errors=`expr $errors + 1` ;;
732 esac
734 test -s l.E || rm -f l.E
735 cat $srcdir/m.I | $xx -d '[:upper:]' > m.O 2> m.E
736 code=$?
737 if test $code != 0 ; then
738 $echo "Test m(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
739 errors=`expr $errors + 1`
740 else
741 cmp m.O $srcdir/m.X > /dev/null 2>&1
742 case $? in
743 0) if test "$VERBOSE" ; then $echo "passed m(|)"; fi ;;
744 1) $echo "Test m(|) failed: files m.O and $srcdir/m.X differ" 1>&2;
745 errors=`expr $errors + 1` ;;
746 2) $echo "Test m(|) may have failed." 1>&2;
747 $echo The command "cmp m.O $srcdir/m.X" failed. 1>&2 ;
748 errors=`expr $errors + 1` ;;
749 esac
751 test -s m.E || rm -f m.E
752 $xx -d '[:upper:]' < $srcdir/m.I > m.O 2> m.E
753 code=$?
754 if test $code != 0 ; then
755 $echo "Test m(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
756 errors=`expr $errors + 1`
757 else
758 cmp m.O $srcdir/m.X > /dev/null 2>&1
759 case $? in
760 0) if test "$VERBOSE" ; then $echo "passed m(<)"; fi ;;
761 1) $echo "Test m(<) failed: files m.O and $srcdir/m.X differ" 1>&2;
762 errors=`expr $errors + 1` ;;
763 2) $echo "Test m(<) may have failed." 1>&2;
764 $echo The command "cmp m.O $srcdir/m.X" failed. 1>&2 ;
765 errors=`expr $errors + 1` ;;
766 esac
768 test -s m.E || rm -f m.E
769 cat $srcdir/n.I | $xx -d '[:lower:][:upper:]' > n.O 2> n.E
770 code=$?
771 if test $code != 0 ; then
772 $echo "Test n(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
773 errors=`expr $errors + 1`
774 else
775 cmp n.O $srcdir/n.X > /dev/null 2>&1
776 case $? in
777 0) if test "$VERBOSE" ; then $echo "passed n(|)"; fi ;;
778 1) $echo "Test n(|) failed: files n.O and $srcdir/n.X differ" 1>&2;
779 errors=`expr $errors + 1` ;;
780 2) $echo "Test n(|) may have failed." 1>&2;
781 $echo The command "cmp n.O $srcdir/n.X" failed. 1>&2 ;
782 errors=`expr $errors + 1` ;;
783 esac
785 test -s n.E || rm -f n.E
786 $xx -d '[:lower:][:upper:]' < $srcdir/n.I > n.O 2> n.E
787 code=$?
788 if test $code != 0 ; then
789 $echo "Test n(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
790 errors=`expr $errors + 1`
791 else
792 cmp n.O $srcdir/n.X > /dev/null 2>&1
793 case $? in
794 0) if test "$VERBOSE" ; then $echo "passed n(<)"; fi ;;
795 1) $echo "Test n(<) failed: files n.O and $srcdir/n.X differ" 1>&2;
796 errors=`expr $errors + 1` ;;
797 2) $echo "Test n(<) may have failed." 1>&2;
798 $echo The command "cmp n.O $srcdir/n.X" failed. 1>&2 ;
799 errors=`expr $errors + 1` ;;
800 esac
802 test -s n.E || rm -f n.E
803 cat $srcdir/o.I | $xx -d '[:alpha:]' > o.O 2> o.E
804 code=$?
805 if test $code != 0 ; then
806 $echo "Test o(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
807 errors=`expr $errors + 1`
808 else
809 cmp o.O $srcdir/o.X > /dev/null 2>&1
810 case $? in
811 0) if test "$VERBOSE" ; then $echo "passed o(|)"; fi ;;
812 1) $echo "Test o(|) failed: files o.O and $srcdir/o.X differ" 1>&2;
813 errors=`expr $errors + 1` ;;
814 2) $echo "Test o(|) may have failed." 1>&2;
815 $echo The command "cmp o.O $srcdir/o.X" failed. 1>&2 ;
816 errors=`expr $errors + 1` ;;
817 esac
819 test -s o.E || rm -f o.E
820 $xx -d '[:alpha:]' < $srcdir/o.I > o.O 2> o.E
821 code=$?
822 if test $code != 0 ; then
823 $echo "Test o(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
824 errors=`expr $errors + 1`
825 else
826 cmp o.O $srcdir/o.X > /dev/null 2>&1
827 case $? in
828 0) if test "$VERBOSE" ; then $echo "passed o(<)"; fi ;;
829 1) $echo "Test o(<) failed: files o.O and $srcdir/o.X differ" 1>&2;
830 errors=`expr $errors + 1` ;;
831 2) $echo "Test o(<) may have failed." 1>&2;
832 $echo The command "cmp o.O $srcdir/o.X" failed. 1>&2 ;
833 errors=`expr $errors + 1` ;;
834 esac
836 test -s o.E || rm -f o.E
837 cat $srcdir/p.I | $xx -d '[:alnum:]' > p.O 2> p.E
838 code=$?
839 if test $code != 0 ; then
840 $echo "Test p(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
841 errors=`expr $errors + 1`
842 else
843 cmp p.O $srcdir/p.X > /dev/null 2>&1
844 case $? in
845 0) if test "$VERBOSE" ; then $echo "passed p(|)"; fi ;;
846 1) $echo "Test p(|) failed: files p.O and $srcdir/p.X differ" 1>&2;
847 errors=`expr $errors + 1` ;;
848 2) $echo "Test p(|) may have failed." 1>&2;
849 $echo The command "cmp p.O $srcdir/p.X" failed. 1>&2 ;
850 errors=`expr $errors + 1` ;;
851 esac
853 test -s p.E || rm -f p.E
854 $xx -d '[:alnum:]' < $srcdir/p.I > p.O 2> p.E
855 code=$?
856 if test $code != 0 ; then
857 $echo "Test p(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
858 errors=`expr $errors + 1`
859 else
860 cmp p.O $srcdir/p.X > /dev/null 2>&1
861 case $? in
862 0) if test "$VERBOSE" ; then $echo "passed p(<)"; fi ;;
863 1) $echo "Test p(<) failed: files p.O and $srcdir/p.X differ" 1>&2;
864 errors=`expr $errors + 1` ;;
865 2) $echo "Test p(<) may have failed." 1>&2;
866 $echo The command "cmp p.O $srcdir/p.X" failed. 1>&2 ;
867 errors=`expr $errors + 1` ;;
868 esac
870 test -s p.E || rm -f p.E
871 cat $srcdir/q.I | $xx -d '[:alnum:]' > q.O 2> q.E
872 code=$?
873 if test $code != 0 ; then
874 $echo "Test q(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
875 errors=`expr $errors + 1`
876 else
877 cmp q.O $srcdir/q.X > /dev/null 2>&1
878 case $? in
879 0) if test "$VERBOSE" ; then $echo "passed q(|)"; fi ;;
880 1) $echo "Test q(|) failed: files q.O and $srcdir/q.X differ" 1>&2;
881 errors=`expr $errors + 1` ;;
882 2) $echo "Test q(|) may have failed." 1>&2;
883 $echo The command "cmp q.O $srcdir/q.X" failed. 1>&2 ;
884 errors=`expr $errors + 1` ;;
885 esac
887 test -s q.E || rm -f q.E
888 $xx -d '[:alnum:]' < $srcdir/q.I > q.O 2> q.E
889 code=$?
890 if test $code != 0 ; then
891 $echo "Test q(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
892 errors=`expr $errors + 1`
893 else
894 cmp q.O $srcdir/q.X > /dev/null 2>&1
895 case $? in
896 0) if test "$VERBOSE" ; then $echo "passed q(<)"; fi ;;
897 1) $echo "Test q(<) failed: files q.O and $srcdir/q.X differ" 1>&2;
898 errors=`expr $errors + 1` ;;
899 2) $echo "Test q(<) may have failed." 1>&2;
900 $echo The command "cmp q.O $srcdir/q.X" failed. 1>&2 ;
901 errors=`expr $errors + 1` ;;
902 esac
904 test -s q.E || rm -f q.E
905 cat $srcdir/r.I | $xx -ds '[:alnum:]' '.' > r.O 2> r.E
906 code=$?
907 if test $code != 0 ; then
908 $echo "Test r(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
909 errors=`expr $errors + 1`
910 else
911 cmp r.O $srcdir/r.X > /dev/null 2>&1
912 case $? in
913 0) if test "$VERBOSE" ; then $echo "passed r(|)"; fi ;;
914 1) $echo "Test r(|) failed: files r.O and $srcdir/r.X differ" 1>&2;
915 errors=`expr $errors + 1` ;;
916 2) $echo "Test r(|) may have failed." 1>&2;
917 $echo The command "cmp r.O $srcdir/r.X" failed. 1>&2 ;
918 errors=`expr $errors + 1` ;;
919 esac
921 test -s r.E || rm -f r.E
922 $xx -ds '[:alnum:]' '.' < $srcdir/r.I > r.O 2> r.E
923 code=$?
924 if test $code != 0 ; then
925 $echo "Test r(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
926 errors=`expr $errors + 1`
927 else
928 cmp r.O $srcdir/r.X > /dev/null 2>&1
929 case $? in
930 0) if test "$VERBOSE" ; then $echo "passed r(<)"; fi ;;
931 1) $echo "Test r(<) failed: files r.O and $srcdir/r.X differ" 1>&2;
932 errors=`expr $errors + 1` ;;
933 2) $echo "Test r(<) may have failed." 1>&2;
934 $echo The command "cmp r.O $srcdir/r.X" failed. 1>&2 ;
935 errors=`expr $errors + 1` ;;
936 esac
938 test -s r.E || rm -f r.E
939 cat $srcdir/s.I | $xx -cs '[:alnum:]' '\n' > s.O 2> s.E
940 code=$?
941 if test $code != 0 ; then
942 $echo "Test s(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
943 errors=`expr $errors + 1`
944 else
945 cmp s.O $srcdir/s.X > /dev/null 2>&1
946 case $? in
947 0) if test "$VERBOSE" ; then $echo "passed s(|)"; fi ;;
948 1) $echo "Test s(|) failed: files s.O and $srcdir/s.X differ" 1>&2;
949 errors=`expr $errors + 1` ;;
950 2) $echo "Test s(|) may have failed." 1>&2;
951 $echo The command "cmp s.O $srcdir/s.X" failed. 1>&2 ;
952 errors=`expr $errors + 1` ;;
953 esac
955 test -s s.E || rm -f s.E
956 $xx -cs '[:alnum:]' '\n' < $srcdir/s.I > s.O 2> s.E
957 code=$?
958 if test $code != 0 ; then
959 $echo "Test s(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
960 errors=`expr $errors + 1`
961 else
962 cmp s.O $srcdir/s.X > /dev/null 2>&1
963 case $? in
964 0) if test "$VERBOSE" ; then $echo "passed s(<)"; fi ;;
965 1) $echo "Test s(<) failed: files s.O and $srcdir/s.X differ" 1>&2;
966 errors=`expr $errors + 1` ;;
967 2) $echo "Test s(<) may have failed." 1>&2;
968 $echo The command "cmp s.O $srcdir/s.X" failed. 1>&2 ;
969 errors=`expr $errors + 1` ;;
970 esac
972 test -s s.E || rm -f s.E
973 cat $srcdir/t.I | $xx -cs '[:alnum:]' '[\n*]' > t.O 2> t.E
974 code=$?
975 if test $code != 0 ; then
976 $echo "Test t(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
977 errors=`expr $errors + 1`
978 else
979 cmp t.O $srcdir/t.X > /dev/null 2>&1
980 case $? in
981 0) if test "$VERBOSE" ; then $echo "passed t(|)"; fi ;;
982 1) $echo "Test t(|) failed: files t.O and $srcdir/t.X differ" 1>&2;
983 errors=`expr $errors + 1` ;;
984 2) $echo "Test t(|) may have failed." 1>&2;
985 $echo The command "cmp t.O $srcdir/t.X" failed. 1>&2 ;
986 errors=`expr $errors + 1` ;;
987 esac
989 test -s t.E || rm -f t.E
990 $xx -cs '[:alnum:]' '[\n*]' < $srcdir/t.I > t.O 2> t.E
991 code=$?
992 if test $code != 0 ; then
993 $echo "Test t(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
994 errors=`expr $errors + 1`
995 else
996 cmp t.O $srcdir/t.X > /dev/null 2>&1
997 case $? in
998 0) if test "$VERBOSE" ; then $echo "passed t(<)"; fi ;;
999 1) $echo "Test t(<) failed: files t.O and $srcdir/t.X differ" 1>&2;
1000 errors=`expr $errors + 1` ;;
1001 2) $echo "Test t(<) may have failed." 1>&2;
1002 $echo The command "cmp t.O $srcdir/t.X" failed. 1>&2 ;
1003 errors=`expr $errors + 1` ;;
1004 esac
1006 test -s t.E || rm -f t.E
1007 cat $srcdir/u.I | $xx -ds 'b' 'a' > u.O 2> u.E
1008 code=$?
1009 if test $code != 0 ; then
1010 $echo "Test u(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1011 errors=`expr $errors + 1`
1012 else
1013 cmp u.O $srcdir/u.X > /dev/null 2>&1
1014 case $? in
1015 0) if test "$VERBOSE" ; then $echo "passed u(|)"; fi ;;
1016 1) $echo "Test u(|) failed: files u.O and $srcdir/u.X differ" 1>&2;
1017 errors=`expr $errors + 1` ;;
1018 2) $echo "Test u(|) may have failed." 1>&2;
1019 $echo The command "cmp u.O $srcdir/u.X" failed. 1>&2 ;
1020 errors=`expr $errors + 1` ;;
1021 esac
1023 test -s u.E || rm -f u.E
1024 $xx -ds 'b' 'a' < $srcdir/u.I > u.O 2> u.E
1025 code=$?
1026 if test $code != 0 ; then
1027 $echo "Test u(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1028 errors=`expr $errors + 1`
1029 else
1030 cmp u.O $srcdir/u.X > /dev/null 2>&1
1031 case $? in
1032 0) if test "$VERBOSE" ; then $echo "passed u(<)"; fi ;;
1033 1) $echo "Test u(<) failed: files u.O and $srcdir/u.X differ" 1>&2;
1034 errors=`expr $errors + 1` ;;
1035 2) $echo "Test u(<) may have failed." 1>&2;
1036 $echo The command "cmp u.O $srcdir/u.X" failed. 1>&2 ;
1037 errors=`expr $errors + 1` ;;
1038 esac
1040 test -s u.E || rm -f u.E
1041 cat $srcdir/v.I | $xx -ds '[:xdigit:]' 'Z' > v.O 2> v.E
1042 code=$?
1043 if test $code != 0 ; then
1044 $echo "Test v(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1045 errors=`expr $errors + 1`
1046 else
1047 cmp v.O $srcdir/v.X > /dev/null 2>&1
1048 case $? in
1049 0) if test "$VERBOSE" ; then $echo "passed v(|)"; fi ;;
1050 1) $echo "Test v(|) failed: files v.O and $srcdir/v.X differ" 1>&2;
1051 errors=`expr $errors + 1` ;;
1052 2) $echo "Test v(|) may have failed." 1>&2;
1053 $echo The command "cmp v.O $srcdir/v.X" failed. 1>&2 ;
1054 errors=`expr $errors + 1` ;;
1055 esac
1057 test -s v.E || rm -f v.E
1058 $xx -ds '[:xdigit:]' 'Z' < $srcdir/v.I > v.O 2> v.E
1059 code=$?
1060 if test $code != 0 ; then
1061 $echo "Test v(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1062 errors=`expr $errors + 1`
1063 else
1064 cmp v.O $srcdir/v.X > /dev/null 2>&1
1065 case $? in
1066 0) if test "$VERBOSE" ; then $echo "passed v(<)"; fi ;;
1067 1) $echo "Test v(<) failed: files v.O and $srcdir/v.X differ" 1>&2;
1068 errors=`expr $errors + 1` ;;
1069 2) $echo "Test v(<) may have failed." 1>&2;
1070 $echo The command "cmp v.O $srcdir/v.X" failed. 1>&2 ;
1071 errors=`expr $errors + 1` ;;
1072 esac
1074 test -s v.E || rm -f v.E
1075 cat $srcdir/w.I | $xx -ds '\350' '\345' > w.O 2> w.E
1076 code=$?
1077 if test $code != 0 ; then
1078 $echo "Test w(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1079 errors=`expr $errors + 1`
1080 else
1081 cmp w.O $srcdir/w.X > /dev/null 2>&1
1082 case $? in
1083 0) if test "$VERBOSE" ; then $echo "passed w(|)"; fi ;;
1084 1) $echo "Test w(|) failed: files w.O and $srcdir/w.X differ" 1>&2;
1085 errors=`expr $errors + 1` ;;
1086 2) $echo "Test w(|) may have failed." 1>&2;
1087 $echo The command "cmp w.O $srcdir/w.X" failed. 1>&2 ;
1088 errors=`expr $errors + 1` ;;
1089 esac
1091 test -s w.E || rm -f w.E
1092 $xx -ds '\350' '\345' < $srcdir/w.I > w.O 2> w.E
1093 code=$?
1094 if test $code != 0 ; then
1095 $echo "Test w(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1096 errors=`expr $errors + 1`
1097 else
1098 cmp w.O $srcdir/w.X > /dev/null 2>&1
1099 case $? in
1100 0) if test "$VERBOSE" ; then $echo "passed w(<)"; fi ;;
1101 1) $echo "Test w(<) failed: files w.O and $srcdir/w.X differ" 1>&2;
1102 errors=`expr $errors + 1` ;;
1103 2) $echo "Test w(<) may have failed." 1>&2;
1104 $echo The command "cmp w.O $srcdir/w.X" failed. 1>&2 ;
1105 errors=`expr $errors + 1` ;;
1106 esac
1108 test -s w.E || rm -f w.E
1109 cat $srcdir/x.I | $xx -s 'abcdefghijklmn' '[:*016]' > x.O 2> x.E
1110 code=$?
1111 if test $code != 0 ; then
1112 $echo "Test x(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1113 errors=`expr $errors + 1`
1114 else
1115 cmp x.O $srcdir/x.X > /dev/null 2>&1
1116 case $? in
1117 0) if test "$VERBOSE" ; then $echo "passed x(|)"; fi ;;
1118 1) $echo "Test x(|) failed: files x.O and $srcdir/x.X differ" 1>&2;
1119 errors=`expr $errors + 1` ;;
1120 2) $echo "Test x(|) may have failed." 1>&2;
1121 $echo The command "cmp x.O $srcdir/x.X" failed. 1>&2 ;
1122 errors=`expr $errors + 1` ;;
1123 esac
1125 test -s x.E || rm -f x.E
1126 $xx -s 'abcdefghijklmn' '[:*016]' < $srcdir/x.I > x.O 2> x.E
1127 code=$?
1128 if test $code != 0 ; then
1129 $echo "Test x(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1130 errors=`expr $errors + 1`
1131 else
1132 cmp x.O $srcdir/x.X > /dev/null 2>&1
1133 case $? in
1134 0) if test "$VERBOSE" ; then $echo "passed x(<)"; fi ;;
1135 1) $echo "Test x(<) failed: files x.O and $srcdir/x.X differ" 1>&2;
1136 errors=`expr $errors + 1` ;;
1137 2) $echo "Test x(<) may have failed." 1>&2;
1138 $echo The command "cmp x.O $srcdir/x.X" failed. 1>&2 ;
1139 errors=`expr $errors + 1` ;;
1140 esac
1142 test -s x.E || rm -f x.E
1143 cat $srcdir/y.I | $xx -d 'a-z' > y.O 2> y.E
1144 code=$?
1145 if test $code != 0 ; then
1146 $echo "Test y(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1147 errors=`expr $errors + 1`
1148 else
1149 cmp y.O $srcdir/y.X > /dev/null 2>&1
1150 case $? in
1151 0) if test "$VERBOSE" ; then $echo "passed y(|)"; fi ;;
1152 1) $echo "Test y(|) failed: files y.O and $srcdir/y.X differ" 1>&2;
1153 errors=`expr $errors + 1` ;;
1154 2) $echo "Test y(|) may have failed." 1>&2;
1155 $echo The command "cmp y.O $srcdir/y.X" failed. 1>&2 ;
1156 errors=`expr $errors + 1` ;;
1157 esac
1159 test -s y.E || rm -f y.E
1160 $xx -d 'a-z' < $srcdir/y.I > y.O 2> y.E
1161 code=$?
1162 if test $code != 0 ; then
1163 $echo "Test y(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1164 errors=`expr $errors + 1`
1165 else
1166 cmp y.O $srcdir/y.X > /dev/null 2>&1
1167 case $? in
1168 0) if test "$VERBOSE" ; then $echo "passed y(<)"; fi ;;
1169 1) $echo "Test y(<) failed: files y.O and $srcdir/y.X differ" 1>&2;
1170 errors=`expr $errors + 1` ;;
1171 2) $echo "Test y(<) may have failed." 1>&2;
1172 $echo The command "cmp y.O $srcdir/y.X" failed. 1>&2 ;
1173 errors=`expr $errors + 1` ;;
1174 esac
1176 test -s y.E || rm -f y.E
1177 cat $srcdir/z.I | $xx -ds 'a-z' '$.' > z.O 2> z.E
1178 code=$?
1179 if test $code != 0 ; then
1180 $echo "Test z(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1181 errors=`expr $errors + 1`
1182 else
1183 cmp z.O $srcdir/z.X > /dev/null 2>&1
1184 case $? in
1185 0) if test "$VERBOSE" ; then $echo "passed z(|)"; fi ;;
1186 1) $echo "Test z(|) failed: files z.O and $srcdir/z.X differ" 1>&2;
1187 errors=`expr $errors + 1` ;;
1188 2) $echo "Test z(|) may have failed." 1>&2;
1189 $echo The command "cmp z.O $srcdir/z.X" failed. 1>&2 ;
1190 errors=`expr $errors + 1` ;;
1191 esac
1193 test -s z.E || rm -f z.E
1194 $xx -ds 'a-z' '$.' < $srcdir/z.I > z.O 2> z.E
1195 code=$?
1196 if test $code != 0 ; then
1197 $echo "Test z(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1198 errors=`expr $errors + 1`
1199 else
1200 cmp z.O $srcdir/z.X > /dev/null 2>&1
1201 case $? in
1202 0) if test "$VERBOSE" ; then $echo "passed z(<)"; fi ;;
1203 1) $echo "Test z(<) failed: files z.O and $srcdir/z.X differ" 1>&2;
1204 errors=`expr $errors + 1` ;;
1205 2) $echo "Test z(<) may have failed." 1>&2;
1206 $echo The command "cmp z.O $srcdir/z.X" failed. 1>&2 ;
1207 errors=`expr $errors + 1` ;;
1208 esac
1210 test -s z.E || rm -f z.E
1211 cat $srcdir/range-a-a.I | $xx 'a-a' 'z' > range-a-a.O 2> range-a-a.E
1212 code=$?
1213 if test $code != 0 ; then
1214 $echo "Test range-a-a(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1215 errors=`expr $errors + 1`
1216 else
1217 cmp range-a-a.O $srcdir/range-a-a.X > /dev/null 2>&1
1218 case $? in
1219 0) if test "$VERBOSE" ; then $echo "passed range-a-a(|)"; fi ;;
1220 1) $echo "Test range-a-a(|) failed: files range-a-a.O and $srcdir/range-a-a.X differ" 1>&2;
1221 errors=`expr $errors + 1` ;;
1222 2) $echo "Test range-a-a(|) may have failed." 1>&2;
1223 $echo The command "cmp range-a-a.O $srcdir/range-a-a.X" failed. 1>&2 ;
1224 errors=`expr $errors + 1` ;;
1225 esac
1227 test -s range-a-a.E || rm -f range-a-a.E
1228 $xx 'a-a' 'z' < $srcdir/range-a-a.I > range-a-a.O 2> range-a-a.E
1229 code=$?
1230 if test $code != 0 ; then
1231 $echo "Test range-a-a(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1232 errors=`expr $errors + 1`
1233 else
1234 cmp range-a-a.O $srcdir/range-a-a.X > /dev/null 2>&1
1235 case $? in
1236 0) if test "$VERBOSE" ; then $echo "passed range-a-a(<)"; fi ;;
1237 1) $echo "Test range-a-a(<) failed: files range-a-a.O and $srcdir/range-a-a.X differ" 1>&2;
1238 errors=`expr $errors + 1` ;;
1239 2) $echo "Test range-a-a(<) may have failed." 1>&2;
1240 $echo The command "cmp range-a-a.O $srcdir/range-a-a.X" failed. 1>&2 ;
1241 errors=`expr $errors + 1` ;;
1242 esac
1244 test -s range-a-a.E || rm -f range-a-a.E
1245 cat $srcdir/null.I | $xx 'a' '''' > null.O 2> null.E
1246 code=$?
1247 if test $code != 1 ; then
1248 $echo "Test null(|) failed: ../../src/tr return code $code differs from expected value 1" 1>&2
1249 errors=`expr $errors + 1`
1250 else
1251 cmp null.O $srcdir/null.X > /dev/null 2>&1
1252 case $? in
1253 0) if test "$VERBOSE" ; then $echo "passed null(|)"; fi ;;
1254 1) $echo "Test null(|) failed: files null.O and $srcdir/null.X differ" 1>&2;
1255 errors=`expr $errors + 1` ;;
1256 2) $echo "Test null(|) may have failed." 1>&2;
1257 $echo The command "cmp null.O $srcdir/null.X" failed. 1>&2 ;
1258 errors=`expr $errors + 1` ;;
1259 esac
1261 test -s null.E || rm -f null.E
1262 $xx 'a' '''' < $srcdir/null.I > null.O 2> null.E
1263 code=$?
1264 if test $code != 1 ; then
1265 $echo "Test null(<) failed: ../../src/tr return code $code differs from expected value 1" 1>&2
1266 errors=`expr $errors + 1`
1267 else
1268 cmp null.O $srcdir/null.X > /dev/null 2>&1
1269 case $? in
1270 0) if test "$VERBOSE" ; then $echo "passed null(<)"; fi ;;
1271 1) $echo "Test null(<) failed: files null.O and $srcdir/null.X differ" 1>&2;
1272 errors=`expr $errors + 1` ;;
1273 2) $echo "Test null(<) may have failed." 1>&2;
1274 $echo The command "cmp null.O $srcdir/null.X" failed. 1>&2 ;
1275 errors=`expr $errors + 1` ;;
1276 esac
1278 test -s null.E || rm -f null.E
1279 cat $srcdir/upcase.I | $xx '[:lower:]' '[:upper:]' > upcase.O 2> upcase.E
1280 code=$?
1281 if test $code != 0 ; then
1282 $echo "Test upcase(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1283 errors=`expr $errors + 1`
1284 else
1285 cmp upcase.O $srcdir/upcase.X > /dev/null 2>&1
1286 case $? in
1287 0) if test "$VERBOSE" ; then $echo "passed upcase(|)"; fi ;;
1288 1) $echo "Test upcase(|) failed: files upcase.O and $srcdir/upcase.X differ" 1>&2;
1289 errors=`expr $errors + 1` ;;
1290 2) $echo "Test upcase(|) may have failed." 1>&2;
1291 $echo The command "cmp upcase.O $srcdir/upcase.X" failed. 1>&2 ;
1292 errors=`expr $errors + 1` ;;
1293 esac
1295 test -s upcase.E || rm -f upcase.E
1296 $xx '[:lower:]' '[:upper:]' < $srcdir/upcase.I > upcase.O 2> upcase.E
1297 code=$?
1298 if test $code != 0 ; then
1299 $echo "Test upcase(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1300 errors=`expr $errors + 1`
1301 else
1302 cmp upcase.O $srcdir/upcase.X > /dev/null 2>&1
1303 case $? in
1304 0) if test "$VERBOSE" ; then $echo "passed upcase(<)"; fi ;;
1305 1) $echo "Test upcase(<) failed: files upcase.O and $srcdir/upcase.X differ" 1>&2;
1306 errors=`expr $errors + 1` ;;
1307 2) $echo "Test upcase(<) may have failed." 1>&2;
1308 $echo The command "cmp upcase.O $srcdir/upcase.X" failed. 1>&2 ;
1309 errors=`expr $errors + 1` ;;
1310 esac
1312 test -s upcase.E || rm -f upcase.E
1313 cat $srcdir/dncase.I | $xx '[:upper:]' '[:lower:]' > dncase.O 2> dncase.E
1314 code=$?
1315 if test $code != 0 ; then
1316 $echo "Test dncase(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1317 errors=`expr $errors + 1`
1318 else
1319 cmp dncase.O $srcdir/dncase.X > /dev/null 2>&1
1320 case $? in
1321 0) if test "$VERBOSE" ; then $echo "passed dncase(|)"; fi ;;
1322 1) $echo "Test dncase(|) failed: files dncase.O and $srcdir/dncase.X differ" 1>&2;
1323 errors=`expr $errors + 1` ;;
1324 2) $echo "Test dncase(|) may have failed." 1>&2;
1325 $echo The command "cmp dncase.O $srcdir/dncase.X" failed. 1>&2 ;
1326 errors=`expr $errors + 1` ;;
1327 esac
1329 test -s dncase.E || rm -f dncase.E
1330 $xx '[:upper:]' '[:lower:]' < $srcdir/dncase.I > dncase.O 2> dncase.E
1331 code=$?
1332 if test $code != 0 ; then
1333 $echo "Test dncase(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1334 errors=`expr $errors + 1`
1335 else
1336 cmp dncase.O $srcdir/dncase.X > /dev/null 2>&1
1337 case $? in
1338 0) if test "$VERBOSE" ; then $echo "passed dncase(<)"; fi ;;
1339 1) $echo "Test dncase(<) failed: files dncase.O and $srcdir/dncase.X differ" 1>&2;
1340 errors=`expr $errors + 1` ;;
1341 2) $echo "Test dncase(<) may have failed." 1>&2;
1342 $echo The command "cmp dncase.O $srcdir/dncase.X" failed. 1>&2 ;
1343 errors=`expr $errors + 1` ;;
1344 esac
1346 test -s dncase.E || rm -f dncase.E
1347 cat $srcdir/rep-cclass.I | $xx 'a[=*2][=c=]' 'xyyz' > rep-cclass.O 2> rep-cclass.E
1348 code=$?
1349 if test $code != 0 ; then
1350 $echo "Test rep-cclass(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1351 errors=`expr $errors + 1`
1352 else
1353 cmp rep-cclass.O $srcdir/rep-cclass.X > /dev/null 2>&1
1354 case $? in
1355 0) if test "$VERBOSE" ; then $echo "passed rep-cclass(|)"; fi ;;
1356 1) $echo "Test rep-cclass(|) failed: files rep-cclass.O and $srcdir/rep-cclass.X differ" 1>&2;
1357 errors=`expr $errors + 1` ;;
1358 2) $echo "Test rep-cclass(|) may have failed." 1>&2;
1359 $echo The command "cmp rep-cclass.O $srcdir/rep-cclass.X" failed. 1>&2 ;
1360 errors=`expr $errors + 1` ;;
1361 esac
1363 test -s rep-cclass.E || rm -f rep-cclass.E
1364 $xx 'a[=*2][=c=]' 'xyyz' < $srcdir/rep-cclass.I > rep-cclass.O 2> rep-cclass.E
1365 code=$?
1366 if test $code != 0 ; then
1367 $echo "Test rep-cclass(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1368 errors=`expr $errors + 1`
1369 else
1370 cmp rep-cclass.O $srcdir/rep-cclass.X > /dev/null 2>&1
1371 case $? in
1372 0) if test "$VERBOSE" ; then $echo "passed rep-cclass(<)"; fi ;;
1373 1) $echo "Test rep-cclass(<) failed: files rep-cclass.O and $srcdir/rep-cclass.X differ" 1>&2;
1374 errors=`expr $errors + 1` ;;
1375 2) $echo "Test rep-cclass(<) may have failed." 1>&2;
1376 $echo The command "cmp rep-cclass.O $srcdir/rep-cclass.X" failed. 1>&2 ;
1377 errors=`expr $errors + 1` ;;
1378 esac
1380 test -s rep-cclass.E || rm -f rep-cclass.E
1381 cat $srcdir/rep-1.I | $xx '[:*3][:digit:]' 'a-m' > rep-1.O 2> rep-1.E
1382 code=$?
1383 if test $code != 0 ; then
1384 $echo "Test rep-1(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1385 errors=`expr $errors + 1`
1386 else
1387 cmp rep-1.O $srcdir/rep-1.X > /dev/null 2>&1
1388 case $? in
1389 0) if test "$VERBOSE" ; then $echo "passed rep-1(|)"; fi ;;
1390 1) $echo "Test rep-1(|) failed: files rep-1.O and $srcdir/rep-1.X differ" 1>&2;
1391 errors=`expr $errors + 1` ;;
1392 2) $echo "Test rep-1(|) may have failed." 1>&2;
1393 $echo The command "cmp rep-1.O $srcdir/rep-1.X" failed. 1>&2 ;
1394 errors=`expr $errors + 1` ;;
1395 esac
1397 test -s rep-1.E || rm -f rep-1.E
1398 $xx '[:*3][:digit:]' 'a-m' < $srcdir/rep-1.I > rep-1.O 2> rep-1.E
1399 code=$?
1400 if test $code != 0 ; then
1401 $echo "Test rep-1(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1402 errors=`expr $errors + 1`
1403 else
1404 cmp rep-1.O $srcdir/rep-1.X > /dev/null 2>&1
1405 case $? in
1406 0) if test "$VERBOSE" ; then $echo "passed rep-1(<)"; fi ;;
1407 1) $echo "Test rep-1(<) failed: files rep-1.O and $srcdir/rep-1.X differ" 1>&2;
1408 errors=`expr $errors + 1` ;;
1409 2) $echo "Test rep-1(<) may have failed." 1>&2;
1410 $echo The command "cmp rep-1.O $srcdir/rep-1.X" failed. 1>&2 ;
1411 errors=`expr $errors + 1` ;;
1412 esac
1414 test -s rep-1.E || rm -f rep-1.E
1415 cat $srcdir/rep-2.I | $xx 'a[b*512]c' '1[x*]2' > rep-2.O 2> rep-2.E
1416 code=$?
1417 if test $code != 0 ; then
1418 $echo "Test rep-2(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1419 errors=`expr $errors + 1`
1420 else
1421 cmp rep-2.O $srcdir/rep-2.X > /dev/null 2>&1
1422 case $? in
1423 0) if test "$VERBOSE" ; then $echo "passed rep-2(|)"; fi ;;
1424 1) $echo "Test rep-2(|) failed: files rep-2.O and $srcdir/rep-2.X differ" 1>&2;
1425 errors=`expr $errors + 1` ;;
1426 2) $echo "Test rep-2(|) may have failed." 1>&2;
1427 $echo The command "cmp rep-2.O $srcdir/rep-2.X" failed. 1>&2 ;
1428 errors=`expr $errors + 1` ;;
1429 esac
1431 test -s rep-2.E || rm -f rep-2.E
1432 $xx 'a[b*512]c' '1[x*]2' < $srcdir/rep-2.I > rep-2.O 2> rep-2.E
1433 code=$?
1434 if test $code != 0 ; then
1435 $echo "Test rep-2(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1436 errors=`expr $errors + 1`
1437 else
1438 cmp rep-2.O $srcdir/rep-2.X > /dev/null 2>&1
1439 case $? in
1440 0) if test "$VERBOSE" ; then $echo "passed rep-2(<)"; fi ;;
1441 1) $echo "Test rep-2(<) failed: files rep-2.O and $srcdir/rep-2.X differ" 1>&2;
1442 errors=`expr $errors + 1` ;;
1443 2) $echo "Test rep-2(<) may have failed." 1>&2;
1444 $echo The command "cmp rep-2.O $srcdir/rep-2.X" failed. 1>&2 ;
1445 errors=`expr $errors + 1` ;;
1446 esac
1448 test -s rep-2.E || rm -f rep-2.E
1449 cat $srcdir/rep-3.I | $xx 'a[b*513]c' '1[x*]2' > rep-3.O 2> rep-3.E
1450 code=$?
1451 if test $code != 0 ; then
1452 $echo "Test rep-3(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1453 errors=`expr $errors + 1`
1454 else
1455 cmp rep-3.O $srcdir/rep-3.X > /dev/null 2>&1
1456 case $? in
1457 0) if test "$VERBOSE" ; then $echo "passed rep-3(|)"; fi ;;
1458 1) $echo "Test rep-3(|) failed: files rep-3.O and $srcdir/rep-3.X differ" 1>&2;
1459 errors=`expr $errors + 1` ;;
1460 2) $echo "Test rep-3(|) may have failed." 1>&2;
1461 $echo The command "cmp rep-3.O $srcdir/rep-3.X" failed. 1>&2 ;
1462 errors=`expr $errors + 1` ;;
1463 esac
1465 test -s rep-3.E || rm -f rep-3.E
1466 $xx 'a[b*513]c' '1[x*]2' < $srcdir/rep-3.I > rep-3.O 2> rep-3.E
1467 code=$?
1468 if test $code != 0 ; then
1469 $echo "Test rep-3(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1470 errors=`expr $errors + 1`
1471 else
1472 cmp rep-3.O $srcdir/rep-3.X > /dev/null 2>&1
1473 case $? in
1474 0) if test "$VERBOSE" ; then $echo "passed rep-3(<)"; fi ;;
1475 1) $echo "Test rep-3(<) failed: files rep-3.O and $srcdir/rep-3.X differ" 1>&2;
1476 errors=`expr $errors + 1` ;;
1477 2) $echo "Test rep-3(<) may have failed." 1>&2;
1478 $echo The command "cmp rep-3.O $srcdir/rep-3.X" failed. 1>&2 ;
1479 errors=`expr $errors + 1` ;;
1480 esac
1482 test -s rep-3.E || rm -f rep-3.E
1483 cat $srcdir/esc.I | $xx 'a\-z' 'A-Z' > esc.O 2> esc.E
1484 code=$?
1485 if test $code != 0 ; then
1486 $echo "Test esc(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1487 errors=`expr $errors + 1`
1488 else
1489 cmp esc.O $srcdir/esc.X > /dev/null 2>&1
1490 case $? in
1491 0) if test "$VERBOSE" ; then $echo "passed esc(|)"; fi ;;
1492 1) $echo "Test esc(|) failed: files esc.O and $srcdir/esc.X differ" 1>&2;
1493 errors=`expr $errors + 1` ;;
1494 2) $echo "Test esc(|) may have failed." 1>&2;
1495 $echo The command "cmp esc.O $srcdir/esc.X" failed. 1>&2 ;
1496 errors=`expr $errors + 1` ;;
1497 esac
1499 test -s esc.E || rm -f esc.E
1500 $xx 'a\-z' 'A-Z' < $srcdir/esc.I > esc.O 2> esc.E
1501 code=$?
1502 if test $code != 0 ; then
1503 $echo "Test esc(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1504 errors=`expr $errors + 1`
1505 else
1506 cmp esc.O $srcdir/esc.X > /dev/null 2>&1
1507 case $? in
1508 0) if test "$VERBOSE" ; then $echo "passed esc(<)"; fi ;;
1509 1) $echo "Test esc(<) failed: files esc.O and $srcdir/esc.X differ" 1>&2;
1510 errors=`expr $errors + 1` ;;
1511 2) $echo "Test esc(<) may have failed." 1>&2;
1512 $echo The command "cmp esc.O $srcdir/esc.X" failed. 1>&2 ;
1513 errors=`expr $errors + 1` ;;
1514 esac
1516 test -s esc.E || rm -f esc.E
1517 cat $srcdir/ross-0a.I | $xx -cs '[:upper:]' 'X[Y*]' > ross-0a.O 2> ross-0a.E
1518 code=$?
1519 if test $code != 1 ; then
1520 $echo "Test ross-0a(|) failed: ../../src/tr return code $code differs from expected value 1" 1>&2
1521 errors=`expr $errors + 1`
1522 else
1523 cmp ross-0a.O $srcdir/ross-0a.X > /dev/null 2>&1
1524 case $? in
1525 0) if test "$VERBOSE" ; then $echo "passed ross-0a(|)"; fi ;;
1526 1) $echo "Test ross-0a(|) failed: files ross-0a.O and $srcdir/ross-0a.X differ" 1>&2;
1527 errors=`expr $errors + 1` ;;
1528 2) $echo "Test ross-0a(|) may have failed." 1>&2;
1529 $echo The command "cmp ross-0a.O $srcdir/ross-0a.X" failed. 1>&2 ;
1530 errors=`expr $errors + 1` ;;
1531 esac
1533 test -s ross-0a.E || rm -f ross-0a.E
1534 $xx -cs '[:upper:]' 'X[Y*]' < $srcdir/ross-0a.I > ross-0a.O 2> ross-0a.E
1535 code=$?
1536 if test $code != 1 ; then
1537 $echo "Test ross-0a(<) failed: ../../src/tr return code $code differs from expected value 1" 1>&2
1538 errors=`expr $errors + 1`
1539 else
1540 cmp ross-0a.O $srcdir/ross-0a.X > /dev/null 2>&1
1541 case $? in
1542 0) if test "$VERBOSE" ; then $echo "passed ross-0a(<)"; fi ;;
1543 1) $echo "Test ross-0a(<) failed: files ross-0a.O and $srcdir/ross-0a.X differ" 1>&2;
1544 errors=`expr $errors + 1` ;;
1545 2) $echo "Test ross-0a(<) may have failed." 1>&2;
1546 $echo The command "cmp ross-0a.O $srcdir/ross-0a.X" failed. 1>&2 ;
1547 errors=`expr $errors + 1` ;;
1548 esac
1550 test -s ross-0a.E || rm -f ross-0a.E
1551 cat $srcdir/ross-0b.I | $xx -cs '[:cntrl:]' 'X[Y*]' > ross-0b.O 2> ross-0b.E
1552 code=$?
1553 if test $code != 1 ; then
1554 $echo "Test ross-0b(|) failed: ../../src/tr return code $code differs from expected value 1" 1>&2
1555 errors=`expr $errors + 1`
1556 else
1557 cmp ross-0b.O $srcdir/ross-0b.X > /dev/null 2>&1
1558 case $? in
1559 0) if test "$VERBOSE" ; then $echo "passed ross-0b(|)"; fi ;;
1560 1) $echo "Test ross-0b(|) failed: files ross-0b.O and $srcdir/ross-0b.X differ" 1>&2;
1561 errors=`expr $errors + 1` ;;
1562 2) $echo "Test ross-0b(|) may have failed." 1>&2;
1563 $echo The command "cmp ross-0b.O $srcdir/ross-0b.X" failed. 1>&2 ;
1564 errors=`expr $errors + 1` ;;
1565 esac
1567 test -s ross-0b.E || rm -f ross-0b.E
1568 $xx -cs '[:cntrl:]' 'X[Y*]' < $srcdir/ross-0b.I > ross-0b.O 2> ross-0b.E
1569 code=$?
1570 if test $code != 1 ; then
1571 $echo "Test ross-0b(<) failed: ../../src/tr return code $code differs from expected value 1" 1>&2
1572 errors=`expr $errors + 1`
1573 else
1574 cmp ross-0b.O $srcdir/ross-0b.X > /dev/null 2>&1
1575 case $? in
1576 0) if test "$VERBOSE" ; then $echo "passed ross-0b(<)"; fi ;;
1577 1) $echo "Test ross-0b(<) failed: files ross-0b.O and $srcdir/ross-0b.X differ" 1>&2;
1578 errors=`expr $errors + 1` ;;
1579 2) $echo "Test ross-0b(<) may have failed." 1>&2;
1580 $echo The command "cmp ross-0b.O $srcdir/ross-0b.X" failed. 1>&2 ;
1581 errors=`expr $errors + 1` ;;
1582 esac
1584 test -s ross-0b.E || rm -f ross-0b.E
1585 cat $srcdir/ross-1a.I | $xx -cs '[:upper:]' '[X*]' > ross-1a.O 2> ross-1a.E
1586 code=$?
1587 if test $code != 0 ; then
1588 $echo "Test ross-1a(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1589 errors=`expr $errors + 1`
1590 else
1591 cmp ross-1a.O $srcdir/ross-1a.X > /dev/null 2>&1
1592 case $? in
1593 0) if test "$VERBOSE" ; then $echo "passed ross-1a(|)"; fi ;;
1594 1) $echo "Test ross-1a(|) failed: files ross-1a.O and $srcdir/ross-1a.X differ" 1>&2;
1595 errors=`expr $errors + 1` ;;
1596 2) $echo "Test ross-1a(|) may have failed." 1>&2;
1597 $echo The command "cmp ross-1a.O $srcdir/ross-1a.X" failed. 1>&2 ;
1598 errors=`expr $errors + 1` ;;
1599 esac
1601 test -s ross-1a.E || rm -f ross-1a.E
1602 $xx -cs '[:upper:]' '[X*]' < $srcdir/ross-1a.I > ross-1a.O 2> ross-1a.E
1603 code=$?
1604 if test $code != 0 ; then
1605 $echo "Test ross-1a(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1606 errors=`expr $errors + 1`
1607 else
1608 cmp ross-1a.O $srcdir/ross-1a.X > /dev/null 2>&1
1609 case $? in
1610 0) if test "$VERBOSE" ; then $echo "passed ross-1a(<)"; fi ;;
1611 1) $echo "Test ross-1a(<) failed: files ross-1a.O and $srcdir/ross-1a.X differ" 1>&2;
1612 errors=`expr $errors + 1` ;;
1613 2) $echo "Test ross-1a(<) may have failed." 1>&2;
1614 $echo The command "cmp ross-1a.O $srcdir/ross-1a.X" failed. 1>&2 ;
1615 errors=`expr $errors + 1` ;;
1616 esac
1618 test -s ross-1a.E || rm -f ross-1a.E
1619 cat $srcdir/ross-1b.I | $xx -cs '[:upper:][:digit:]' '[Z*]' > ross-1b.O 2> ross-1b.E
1620 code=$?
1621 if test $code != 0 ; then
1622 $echo "Test ross-1b(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1623 errors=`expr $errors + 1`
1624 else
1625 cmp ross-1b.O $srcdir/ross-1b.X > /dev/null 2>&1
1626 case $? in
1627 0) if test "$VERBOSE" ; then $echo "passed ross-1b(|)"; fi ;;
1628 1) $echo "Test ross-1b(|) failed: files ross-1b.O and $srcdir/ross-1b.X differ" 1>&2;
1629 errors=`expr $errors + 1` ;;
1630 2) $echo "Test ross-1b(|) may have failed." 1>&2;
1631 $echo The command "cmp ross-1b.O $srcdir/ross-1b.X" failed. 1>&2 ;
1632 errors=`expr $errors + 1` ;;
1633 esac
1635 test -s ross-1b.E || rm -f ross-1b.E
1636 $xx -cs '[:upper:][:digit:]' '[Z*]' < $srcdir/ross-1b.I > ross-1b.O 2> ross-1b.E
1637 code=$?
1638 if test $code != 0 ; then
1639 $echo "Test ross-1b(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1640 errors=`expr $errors + 1`
1641 else
1642 cmp ross-1b.O $srcdir/ross-1b.X > /dev/null 2>&1
1643 case $? in
1644 0) if test "$VERBOSE" ; then $echo "passed ross-1b(<)"; fi ;;
1645 1) $echo "Test ross-1b(<) failed: files ross-1b.O and $srcdir/ross-1b.X differ" 1>&2;
1646 errors=`expr $errors + 1` ;;
1647 2) $echo "Test ross-1b(<) may have failed." 1>&2;
1648 $echo The command "cmp ross-1b.O $srcdir/ross-1b.X" failed. 1>&2 ;
1649 errors=`expr $errors + 1` ;;
1650 esac
1652 test -s ross-1b.E || rm -f ross-1b.E
1653 cat $srcdir/ross-2.I | $xx -dcs '[:lower:]' 'n-rs-z' > ross-2.O 2> ross-2.E
1654 code=$?
1655 if test $code != 0 ; then
1656 $echo "Test ross-2(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1657 errors=`expr $errors + 1`
1658 else
1659 cmp ross-2.O $srcdir/ross-2.X > /dev/null 2>&1
1660 case $? in
1661 0) if test "$VERBOSE" ; then $echo "passed ross-2(|)"; fi ;;
1662 1) $echo "Test ross-2(|) failed: files ross-2.O and $srcdir/ross-2.X differ" 1>&2;
1663 errors=`expr $errors + 1` ;;
1664 2) $echo "Test ross-2(|) may have failed." 1>&2;
1665 $echo The command "cmp ross-2.O $srcdir/ross-2.X" failed. 1>&2 ;
1666 errors=`expr $errors + 1` ;;
1667 esac
1669 test -s ross-2.E || rm -f ross-2.E
1670 $xx -dcs '[:lower:]' 'n-rs-z' < $srcdir/ross-2.I > ross-2.O 2> ross-2.E
1671 code=$?
1672 if test $code != 0 ; then
1673 $echo "Test ross-2(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1674 errors=`expr $errors + 1`
1675 else
1676 cmp ross-2.O $srcdir/ross-2.X > /dev/null 2>&1
1677 case $? in
1678 0) if test "$VERBOSE" ; then $echo "passed ross-2(<)"; fi ;;
1679 1) $echo "Test ross-2(<) failed: files ross-2.O and $srcdir/ross-2.X differ" 1>&2;
1680 errors=`expr $errors + 1` ;;
1681 2) $echo "Test ross-2(<) may have failed." 1>&2;
1682 $echo The command "cmp ross-2.O $srcdir/ross-2.X" failed. 1>&2 ;
1683 errors=`expr $errors + 1` ;;
1684 esac
1686 test -s ross-2.E || rm -f ross-2.E
1687 cat $srcdir/ross-3.I | $xx -ds '[:xdigit:]' '[:alnum:]' > ross-3.O 2> ross-3.E
1688 code=$?
1689 if test $code != 0 ; then
1690 $echo "Test ross-3(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1691 errors=`expr $errors + 1`
1692 else
1693 cmp ross-3.O $srcdir/ross-3.X > /dev/null 2>&1
1694 case $? in
1695 0) if test "$VERBOSE" ; then $echo "passed ross-3(|)"; fi ;;
1696 1) $echo "Test ross-3(|) failed: files ross-3.O and $srcdir/ross-3.X differ" 1>&2;
1697 errors=`expr $errors + 1` ;;
1698 2) $echo "Test ross-3(|) may have failed." 1>&2;
1699 $echo The command "cmp ross-3.O $srcdir/ross-3.X" failed. 1>&2 ;
1700 errors=`expr $errors + 1` ;;
1701 esac
1703 test -s ross-3.E || rm -f ross-3.E
1704 $xx -ds '[:xdigit:]' '[:alnum:]' < $srcdir/ross-3.I > ross-3.O 2> ross-3.E
1705 code=$?
1706 if test $code != 0 ; then
1707 $echo "Test ross-3(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1708 errors=`expr $errors + 1`
1709 else
1710 cmp ross-3.O $srcdir/ross-3.X > /dev/null 2>&1
1711 case $? in
1712 0) if test "$VERBOSE" ; then $echo "passed ross-3(<)"; fi ;;
1713 1) $echo "Test ross-3(<) failed: files ross-3.O and $srcdir/ross-3.X differ" 1>&2;
1714 errors=`expr $errors + 1` ;;
1715 2) $echo "Test ross-3(<) may have failed." 1>&2;
1716 $echo The command "cmp ross-3.O $srcdir/ross-3.X" failed. 1>&2 ;
1717 errors=`expr $errors + 1` ;;
1718 esac
1720 test -s ross-3.E || rm -f ross-3.E
1721 cat $srcdir/ross-4.I | $xx -dcs '[:alnum:]' '[:digit:]' > ross-4.O 2> ross-4.E
1722 code=$?
1723 if test $code != 0 ; then
1724 $echo "Test ross-4(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1725 errors=`expr $errors + 1`
1726 else
1727 cmp ross-4.O $srcdir/ross-4.X > /dev/null 2>&1
1728 case $? in
1729 0) if test "$VERBOSE" ; then $echo "passed ross-4(|)"; fi ;;
1730 1) $echo "Test ross-4(|) failed: files ross-4.O and $srcdir/ross-4.X differ" 1>&2;
1731 errors=`expr $errors + 1` ;;
1732 2) $echo "Test ross-4(|) may have failed." 1>&2;
1733 $echo The command "cmp ross-4.O $srcdir/ross-4.X" failed. 1>&2 ;
1734 errors=`expr $errors + 1` ;;
1735 esac
1737 test -s ross-4.E || rm -f ross-4.E
1738 $xx -dcs '[:alnum:]' '[:digit:]' < $srcdir/ross-4.I > ross-4.O 2> ross-4.E
1739 code=$?
1740 if test $code != 0 ; then
1741 $echo "Test ross-4(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1742 errors=`expr $errors + 1`
1743 else
1744 cmp ross-4.O $srcdir/ross-4.X > /dev/null 2>&1
1745 case $? in
1746 0) if test "$VERBOSE" ; then $echo "passed ross-4(<)"; fi ;;
1747 1) $echo "Test ross-4(<) failed: files ross-4.O and $srcdir/ross-4.X differ" 1>&2;
1748 errors=`expr $errors + 1` ;;
1749 2) $echo "Test ross-4(<) may have failed." 1>&2;
1750 $echo The command "cmp ross-4.O $srcdir/ross-4.X" failed. 1>&2 ;
1751 errors=`expr $errors + 1` ;;
1752 esac
1754 test -s ross-4.E || rm -f ross-4.E
1755 cat $srcdir/ross-5.I | $xx -dc '[:lower:]' > ross-5.O 2> ross-5.E
1756 code=$?
1757 if test $code != 0 ; then
1758 $echo "Test ross-5(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1759 errors=`expr $errors + 1`
1760 else
1761 cmp ross-5.O $srcdir/ross-5.X > /dev/null 2>&1
1762 case $? in
1763 0) if test "$VERBOSE" ; then $echo "passed ross-5(|)"; fi ;;
1764 1) $echo "Test ross-5(|) failed: files ross-5.O and $srcdir/ross-5.X differ" 1>&2;
1765 errors=`expr $errors + 1` ;;
1766 2) $echo "Test ross-5(|) may have failed." 1>&2;
1767 $echo The command "cmp ross-5.O $srcdir/ross-5.X" failed. 1>&2 ;
1768 errors=`expr $errors + 1` ;;
1769 esac
1771 test -s ross-5.E || rm -f ross-5.E
1772 $xx -dc '[:lower:]' < $srcdir/ross-5.I > ross-5.O 2> ross-5.E
1773 code=$?
1774 if test $code != 0 ; then
1775 $echo "Test ross-5(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1776 errors=`expr $errors + 1`
1777 else
1778 cmp ross-5.O $srcdir/ross-5.X > /dev/null 2>&1
1779 case $? in
1780 0) if test "$VERBOSE" ; then $echo "passed ross-5(<)"; fi ;;
1781 1) $echo "Test ross-5(<) failed: files ross-5.O and $srcdir/ross-5.X differ" 1>&2;
1782 errors=`expr $errors + 1` ;;
1783 2) $echo "Test ross-5(<) may have failed." 1>&2;
1784 $echo The command "cmp ross-5.O $srcdir/ross-5.X" failed. 1>&2 ;
1785 errors=`expr $errors + 1` ;;
1786 esac
1788 test -s ross-5.E || rm -f ross-5.E
1789 cat $srcdir/ross-6.I | $xx -dc '[:upper:]' > ross-6.O 2> ross-6.E
1790 code=$?
1791 if test $code != 0 ; then
1792 $echo "Test ross-6(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1793 errors=`expr $errors + 1`
1794 else
1795 cmp ross-6.O $srcdir/ross-6.X > /dev/null 2>&1
1796 case $? in
1797 0) if test "$VERBOSE" ; then $echo "passed ross-6(|)"; fi ;;
1798 1) $echo "Test ross-6(|) failed: files ross-6.O and $srcdir/ross-6.X differ" 1>&2;
1799 errors=`expr $errors + 1` ;;
1800 2) $echo "Test ross-6(|) may have failed." 1>&2;
1801 $echo The command "cmp ross-6.O $srcdir/ross-6.X" failed. 1>&2 ;
1802 errors=`expr $errors + 1` ;;
1803 esac
1805 test -s ross-6.E || rm -f ross-6.E
1806 $xx -dc '[:upper:]' < $srcdir/ross-6.I > ross-6.O 2> ross-6.E
1807 code=$?
1808 if test $code != 0 ; then
1809 $echo "Test ross-6(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1810 errors=`expr $errors + 1`
1811 else
1812 cmp ross-6.O $srcdir/ross-6.X > /dev/null 2>&1
1813 case $? in
1814 0) if test "$VERBOSE" ; then $echo "passed ross-6(<)"; fi ;;
1815 1) $echo "Test ross-6(<) failed: files ross-6.O and $srcdir/ross-6.X differ" 1>&2;
1816 errors=`expr $errors + 1` ;;
1817 2) $echo "Test ross-6(<) may have failed." 1>&2;
1818 $echo The command "cmp ross-6.O $srcdir/ross-6.X" failed. 1>&2 ;
1819 errors=`expr $errors + 1` ;;
1820 esac
1822 test -s ross-6.E || rm -f ross-6.E
1823 if test $errors = 0 ; then
1824 $echo Passed all 106 tests. 1>&2
1825 else
1826 $echo Failed $errors tests. 1>&2
1828 test $errors = 0 || errors=1
1829 exit $errors