2 # This script was generated automatically by build-script.
7 test "$VERBOSE" && echo=echo ||
echo=:
8 $echo testing program
: $xx
10 test "$srcdir" || srcdir
=.
11 test "$VERBOSE" && $xx --version 2> /dev
/null
13 # Make sure we get English translations.
21 cat $srcdir/1.I |
$xx 'abcd' '[]*]' > 1.O
2> 1.E
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`
27 cmp 1.O
$srcdir/1.X
> /dev
/null
2>&1
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` ;;
37 test -s 1.E ||
rm -f 1.E
38 $xx 'abcd' '[]*]' < $srcdir/1.I
> 1.O
2> 1.E
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`
44 cmp 1.O
$srcdir/1.X
> /dev
/null
2>&1
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` ;;
54 test -s 1.E ||
rm -f 1.E
55 cat $srcdir/2.I |
$xx 'abc' '[%*]xyz' > 2.O
2> 2.E
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`
61 cmp 2.O
$srcdir/2.X
> /dev
/null
2>&1
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` ;;
71 test -s 2.E ||
rm -f 2.E
72 $xx 'abc' '[%*]xyz' < $srcdir/2.I
> 2.O
2> 2.E
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`
78 cmp 2.O
$srcdir/2.X
> /dev
/null
2>&1
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` ;;
88 test -s 2.E ||
rm -f 2.E
89 cat $srcdir/3.I |
$xx '' '[.*]' > 3.O
2> 3.E
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`
95 cmp 3.O
$srcdir/3.X
> /dev
/null
2>&1
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` ;;
105 test -s 3.E ||
rm -f 3.E
106 $xx '' '[.*]' < $srcdir/3.I
> 3.O
2> 3.E
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`
112 cmp 3.O
$srcdir/3.X
> /dev
/null
2>&1
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` ;;
122 test -s 3.E ||
rm -f 3.E
123 cat $srcdir/4.I |
$xx -t 'abcd' 'xy' > 4.O
2> 4.E
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`
129 cmp 4.O
$srcdir/4.X
> /dev
/null
2>&1
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` ;;
139 test -s 4.E ||
rm -f 4.E
140 $xx -t 'abcd' 'xy' < $srcdir/4.I
> 4.O
2> 4.E
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`
146 cmp 4.O
$srcdir/4.X
> /dev
/null
2>&1
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` ;;
156 test -s 4.E ||
rm -f 4.E
157 cat $srcdir/5.I |
$xx 'abcd' 'xy' > 5.O
2> 5.E
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`
163 cmp 5.O
$srcdir/5.X
> /dev
/null
2>&1
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` ;;
173 test -s 5.E ||
rm -f 5.E
174 $xx 'abcd' 'xy' < $srcdir/5.I
> 5.O
2> 5.E
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`
180 cmp 5.O
$srcdir/5.X
> /dev
/null
2>&1
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` ;;
190 test -s 5.E ||
rm -f 5.E
191 cat $srcdir/6.I |
$xx 'abcd' 'x[y*]' > 6.O
2> 6.E
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`
197 cmp 6.O
$srcdir/6.X
> /dev
/null
2>&1
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` ;;
207 test -s 6.E ||
rm -f 6.E
208 $xx 'abcd' 'x[y*]' < $srcdir/6.I
> 6.O
2> 6.E
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`
214 cmp 6.O
$srcdir/6.X
> /dev
/null
2>&1
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` ;;
224 test -s 6.E ||
rm -f 6.E
225 cat $srcdir/7.I |
$xx -s 'a-p' '%[.*]$' > 7.O
2> 7.E
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`
231 cmp 7.O
$srcdir/7.X
> /dev
/null
2>&1
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` ;;
241 test -s 7.E ||
rm -f 7.E
242 $xx -s 'a-p' '%[.*]$' < $srcdir/7.I
> 7.O
2> 7.E
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`
248 cmp 7.O
$srcdir/7.X
> /dev
/null
2>&1
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` ;;
258 test -s 7.E ||
rm -f 7.E
259 cat $srcdir/8.I |
$xx -s 'a-p' '[.*]$' > 8.O
2> 8.E
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`
265 cmp 8.O
$srcdir/8.X
> /dev
/null
2>&1
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` ;;
275 test -s 8.E ||
rm -f 8.E
276 $xx -s 'a-p' '[.*]$' < $srcdir/8.I
> 8.O
2> 8.E
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`
282 cmp 8.O
$srcdir/8.X
> /dev
/null
2>&1
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` ;;
292 test -s 8.E ||
rm -f 8.E
293 cat $srcdir/9.I |
$xx -s 'a-p' '%[.*]' > 9.O
2> 9.E
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`
299 cmp 9.O
$srcdir/9.X
> /dev
/null
2>&1
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` ;;
309 test -s 9.E ||
rm -f 9.E
310 $xx -s 'a-p' '%[.*]' < $srcdir/9.I
> 9.O
2> 9.E
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`
316 cmp 9.O
$srcdir/9.X
> /dev
/null
2>&1
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` ;;
326 test -s 9.E ||
rm -f 9.E
327 cat $srcdir/a.I |
$xx -s '[a-z]' > a.O
2> a.E
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`
333 cmp a.O
$srcdir/a.X
> /dev
/null
2>&1
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` ;;
343 test -s a.E ||
rm -f a.E
344 $xx -s '[a-z]' < $srcdir/a.I
> a.O
2> a.E
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`
350 cmp a.O
$srcdir/a.X
> /dev
/null
2>&1
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` ;;
360 test -s a.E ||
rm -f a.E
361 cat $srcdir/b.I |
$xx -s '[a-c]' > b.O
2> b.E
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`
367 cmp b.O
$srcdir/b.X
> /dev
/null
2>&1
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` ;;
377 test -s b.E ||
rm -f b.E
378 $xx -s '[a-c]' < $srcdir/b.I
> b.O
2> b.E
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`
384 cmp b.O
$srcdir/b.X
> /dev
/null
2>&1
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` ;;
394 test -s b.E ||
rm -f b.E
395 cat $srcdir/c.I |
$xx -s '[a-b]' > c.O
2> c.E
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`
401 cmp c.O
$srcdir/c.X
> /dev
/null
2>&1
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` ;;
411 test -s c.E ||
rm -f c.E
412 $xx -s '[a-b]' < $srcdir/c.I
> c.O
2> c.E
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`
418 cmp c.O
$srcdir/c.X
> /dev
/null
2>&1
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` ;;
428 test -s c.E ||
rm -f c.E
429 cat $srcdir/d.I |
$xx -s '[b-c]' > d.O
2> d.E
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`
435 cmp d.O
$srcdir/d.X
> /dev
/null
2>&1
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` ;;
445 test -s d.E ||
rm -f d.E
446 $xx -s '[b-c]' < $srcdir/d.I
> d.O
2> d.E
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`
452 cmp d.O
$srcdir/d.X
> /dev
/null
2>&1
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` ;;
462 test -s d.E ||
rm -f d.E
463 cat $srcdir/e.I |
$xx -s '[\0-\5]' > e.O
2> e.E
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`
469 cmp e.O
$srcdir/e.X
> /dev
/null
2>&1
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` ;;
479 test -s e.E ||
rm -f e.E
480 $xx -s '[\0-\5]' < $srcdir/e.I
> e.O
2> e.E
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`
486 cmp e.O
$srcdir/e.X
> /dev
/null
2>&1
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` ;;
496 test -s e.E ||
rm -f e.E
497 cat $srcdir/f.I |
$xx -d '[=[=]' > f.O
2> f.E
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`
503 cmp f.O
$srcdir/f.X
> /dev
/null
2>&1
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` ;;
513 test -s f.E ||
rm -f f.E
514 $xx -d '[=[=]' < $srcdir/f.I
> f.O
2> f.E
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`
520 cmp f.O
$srcdir/f.X
> /dev
/null
2>&1
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` ;;
530 test -s f.E ||
rm -f f.E
531 cat $srcdir/g.I |
$xx -d '[=]=]' > g.O
2> g.E
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`
537 cmp g.O
$srcdir/g.X
> /dev
/null
2>&1
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` ;;
547 test -s g.E ||
rm -f g.E
548 $xx -d '[=]=]' < $srcdir/g.I
> g.O
2> g.E
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`
554 cmp g.O
$srcdir/g.X
> /dev
/null
2>&1
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` ;;
564 test -s g.E ||
rm -f g.E
565 cat $srcdir/h.I |
$xx -d '[:xdigit:]' > h.O
2> h.E
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`
571 cmp h.O
$srcdir/h.X
> /dev
/null
2>&1
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` ;;
581 test -s h.E ||
rm -f h.E
582 $xx -d '[:xdigit:]' < $srcdir/h.I
> h.O
2> h.E
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`
588 cmp h.O
$srcdir/h.X
> /dev
/null
2>&1
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` ;;
598 test -s h.E ||
rm -f h.E
599 cat $srcdir/i.I |
$xx -d '[:xdigit:]' > i.O
2> i.E
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`
605 cmp i.O
$srcdir/i.X
> /dev
/null
2>&1
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` ;;
615 test -s i.E ||
rm -f i.E
616 $xx -d '[:xdigit:]' < $srcdir/i.I
> i.O
2> i.E
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`
622 cmp i.O
$srcdir/i.X
> /dev
/null
2>&1
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` ;;
632 test -s i.E ||
rm -f i.E
633 cat $srcdir/j.I |
$xx -d '[:digit:]' > j.O
2> j.E
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`
639 cmp j.O
$srcdir/j.X
> /dev
/null
2>&1
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` ;;
649 test -s j.E ||
rm -f j.E
650 $xx -d '[:digit:]' < $srcdir/j.I
> j.O
2> j.E
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`
656 cmp j.O
$srcdir/j.X
> /dev
/null
2>&1
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` ;;
666 test -s j.E ||
rm -f j.E
667 cat $srcdir/k.I |
$xx -d '[:digit:]' > k.O
2> k.E
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`
673 cmp k.O
$srcdir/k.X
> /dev
/null
2>&1
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` ;;
683 test -s k.E ||
rm -f k.E
684 $xx -d '[:digit:]' < $srcdir/k.I
> k.O
2> k.E
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`
690 cmp k.O
$srcdir/k.X
> /dev
/null
2>&1
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` ;;
700 test -s k.E ||
rm -f k.E
701 cat $srcdir/l.I |
$xx -d '[:lower:]' > l.O
2> l.E
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`
707 cmp l.O
$srcdir/l.X
> /dev
/null
2>&1
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` ;;
717 test -s l.E ||
rm -f l.E
718 $xx -d '[:lower:]' < $srcdir/l.I
> l.O
2> l.E
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`
724 cmp l.O
$srcdir/l.X
> /dev
/null
2>&1
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` ;;
734 test -s l.E ||
rm -f l.E
735 cat $srcdir/m.I |
$xx -d '[:upper:]' > m.O
2> m.E
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`
741 cmp m.O
$srcdir/m.X
> /dev
/null
2>&1
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` ;;
751 test -s m.E ||
rm -f m.E
752 $xx -d '[:upper:]' < $srcdir/m.I
> m.O
2> m.E
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`
758 cmp m.O
$srcdir/m.X
> /dev
/null
2>&1
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` ;;
768 test -s m.E ||
rm -f m.E
769 cat $srcdir/n.I |
$xx -d '[:lower:][:upper:]' > n.O
2> n.E
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`
775 cmp n.O
$srcdir/n.X
> /dev
/null
2>&1
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` ;;
785 test -s n.E ||
rm -f n.E
786 $xx -d '[:lower:][:upper:]' < $srcdir/n.I
> n.O
2> n.E
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`
792 cmp n.O
$srcdir/n.X
> /dev
/null
2>&1
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` ;;
802 test -s n.E ||
rm -f n.E
803 cat $srcdir/o.I |
$xx -d '[:alpha:]' > o.O
2> o.E
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`
809 cmp o.O
$srcdir/o.X
> /dev
/null
2>&1
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` ;;
819 test -s o.E ||
rm -f o.E
820 $xx -d '[:alpha:]' < $srcdir/o.I
> o.O
2> o.E
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`
826 cmp o.O
$srcdir/o.X
> /dev
/null
2>&1
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` ;;
836 test -s o.E ||
rm -f o.E
837 cat $srcdir/p.I |
$xx -d '[:alnum:]' > p.O
2> p.E
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`
843 cmp p.O
$srcdir/p.X
> /dev
/null
2>&1
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` ;;
853 test -s p.E ||
rm -f p.E
854 $xx -d '[:alnum:]' < $srcdir/p.I
> p.O
2> p.E
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`
860 cmp p.O
$srcdir/p.X
> /dev
/null
2>&1
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` ;;
870 test -s p.E ||
rm -f p.E
871 cat $srcdir/q.I |
$xx -d '[:alnum:]' > q.O
2> q.E
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`
877 cmp q.O
$srcdir/q.X
> /dev
/null
2>&1
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` ;;
887 test -s q.E ||
rm -f q.E
888 $xx -d '[:alnum:]' < $srcdir/q.I
> q.O
2> q.E
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`
894 cmp q.O
$srcdir/q.X
> /dev
/null
2>&1
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` ;;
904 test -s q.E ||
rm -f q.E
905 cat $srcdir/r.I |
$xx -ds '[:alnum:]' '.' > r.O
2> r.E
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`
911 cmp r.O
$srcdir/r.X
> /dev
/null
2>&1
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` ;;
921 test -s r.E ||
rm -f r.E
922 $xx -ds '[:alnum:]' '.' < $srcdir/r.I
> r.O
2> r.E
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`
928 cmp r.O
$srcdir/r.X
> /dev
/null
2>&1
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` ;;
938 test -s r.E ||
rm -f r.E
939 cat $srcdir/s.I |
$xx -cs '[:alnum:]' '\n' > s.O
2> s.E
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`
945 cmp s.O
$srcdir/s.X
> /dev
/null
2>&1
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` ;;
955 test -s s.E ||
rm -f s.E
956 $xx -cs '[:alnum:]' '\n' < $srcdir/s.I
> s.O
2> s.E
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`
962 cmp s.O
$srcdir/s.X
> /dev
/null
2>&1
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` ;;
972 test -s s.E ||
rm -f s.E
973 cat $srcdir/t.I |
$xx -cs '[:alnum:]' '[\n*]' > t.O
2> t.E
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`
979 cmp t.O
$srcdir/t.X
> /dev
/null
2>&1
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` ;;
989 test -s t.E ||
rm -f t.E
990 $xx -cs '[:alnum:]' '[\n*]' < $srcdir/t.I
> t.O
2> t.E
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`
996 cmp t.O
$srcdir/t.X
> /dev
/null
2>&1
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` ;;
1006 test -s t.E ||
rm -f t.E
1007 cat $srcdir/u.I |
$xx -ds 'b' 'a' > u.O
2> u.E
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`
1013 cmp u.O
$srcdir/u.X
> /dev
/null
2>&1
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` ;;
1023 test -s u.E ||
rm -f u.E
1024 $xx -ds 'b' 'a' < $srcdir/u.I
> u.O
2> u.E
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`
1030 cmp u.O
$srcdir/u.X
> /dev
/null
2>&1
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` ;;
1040 test -s u.E ||
rm -f u.E
1041 cat $srcdir/v.I |
$xx -ds '[:xdigit:]' 'Z' > v.O
2> v.E
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`
1047 cmp v.O
$srcdir/v.X
> /dev
/null
2>&1
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` ;;
1057 test -s v.E ||
rm -f v.E
1058 $xx -ds '[:xdigit:]' 'Z' < $srcdir/v.I
> v.O
2> v.E
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`
1064 cmp v.O
$srcdir/v.X
> /dev
/null
2>&1
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` ;;
1074 test -s v.E ||
rm -f v.E
1075 cat $srcdir/w.I |
$xx -ds '\350' '\345' > w.O
2> w.E
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`
1081 cmp w.O
$srcdir/w.X
> /dev
/null
2>&1
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` ;;
1091 test -s w.E ||
rm -f w.E
1092 $xx -ds '\350' '\345' < $srcdir/w.I
> w.O
2> w.E
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`
1098 cmp w.O
$srcdir/w.X
> /dev
/null
2>&1
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` ;;
1108 test -s w.E ||
rm -f w.E
1109 cat $srcdir/x.I |
$xx -s 'abcdefghijklmn' '[:*016]' > x.O
2> x.E
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`
1115 cmp x.O
$srcdir/x.X
> /dev
/null
2>&1
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` ;;
1125 test -s x.E ||
rm -f x.E
1126 $xx -s 'abcdefghijklmn' '[:*016]' < $srcdir/x.I
> x.O
2> x.E
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`
1132 cmp x.O
$srcdir/x.X
> /dev
/null
2>&1
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` ;;
1142 test -s x.E ||
rm -f x.E
1143 cat $srcdir/y.I |
$xx -d 'a-z' > y.O
2> y.E
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`
1149 cmp y.O
$srcdir/y.X
> /dev
/null
2>&1
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` ;;
1159 test -s y.E ||
rm -f y.E
1160 $xx -d 'a-z' < $srcdir/y.I
> y.O
2> y.E
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`
1166 cmp y.O
$srcdir/y.X
> /dev
/null
2>&1
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` ;;
1176 test -s y.E ||
rm -f y.E
1177 cat $srcdir/z.I |
$xx -ds 'a-z' '$.' > z.O
2> z.E
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`
1183 cmp z.O
$srcdir/z.X
> /dev
/null
2>&1
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` ;;
1193 test -s z.E ||
rm -f z.E
1194 $xx -ds 'a-z' '$.' < $srcdir/z.I
> z.O
2> z.E
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`
1200 cmp z.O
$srcdir/z.X
> /dev
/null
2>&1
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` ;;
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
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`
1217 cmp range-a-a.O
$srcdir/range-a-a.X
> /dev
/null
2>&1
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` ;;
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
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`
1234 cmp range-a-a.O
$srcdir/range-a-a.X
> /dev
/null
2>&1
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` ;;
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
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`
1251 cmp null.O
$srcdir/null.X
> /dev
/null
2>&1
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` ;;
1261 test -s null.E ||
rm -f null.E
1262 $xx 'a' '''' < $srcdir/null.I
> null.O
2> null.E
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`
1268 cmp null.O
$srcdir/null.X
> /dev
/null
2>&1
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` ;;
1278 test -s null.E ||
rm -f null.E
1279 cat $srcdir/upcase.I |
$xx '[:lower:]' '[:upper:]' > upcase.O
2> upcase.E
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`
1285 cmp upcase.O
$srcdir/upcase.X
> /dev
/null
2>&1
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` ;;
1295 test -s upcase.E ||
rm -f upcase.E
1296 $xx '[:lower:]' '[:upper:]' < $srcdir/upcase.I
> upcase.O
2> upcase.E
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`
1302 cmp upcase.O
$srcdir/upcase.X
> /dev
/null
2>&1
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` ;;
1312 test -s upcase.E ||
rm -f upcase.E
1313 cat $srcdir/dncase.I |
$xx '[:upper:]' '[:lower:]' > dncase.O
2> dncase.E
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`
1319 cmp dncase.O
$srcdir/dncase.X
> /dev
/null
2>&1
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` ;;
1329 test -s dncase.E ||
rm -f dncase.E
1330 $xx '[:upper:]' '[:lower:]' < $srcdir/dncase.I
> dncase.O
2> dncase.E
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`
1336 cmp dncase.O
$srcdir/dncase.X
> /dev
/null
2>&1
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` ;;
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
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`
1353 cmp rep-cclass.O
$srcdir/rep-cclass.X
> /dev
/null
2>&1
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` ;;
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
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`
1370 cmp rep-cclass.O
$srcdir/rep-cclass.X
> /dev
/null
2>&1
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` ;;
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
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`
1387 cmp rep-1.O
$srcdir/rep-1.X
> /dev
/null
2>&1
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` ;;
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
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`
1404 cmp rep-1.O
$srcdir/rep-1.X
> /dev
/null
2>&1
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` ;;
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
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`
1421 cmp rep-2.O
$srcdir/rep-2.X
> /dev
/null
2>&1
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` ;;
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
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`
1438 cmp rep-2.O
$srcdir/rep-2.X
> /dev
/null
2>&1
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` ;;
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
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`
1455 cmp rep-3.O
$srcdir/rep-3.X
> /dev
/null
2>&1
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` ;;
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
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`
1472 cmp rep-3.O
$srcdir/rep-3.X
> /dev
/null
2>&1
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` ;;
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
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`
1489 cmp esc.O
$srcdir/esc.X
> /dev
/null
2>&1
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` ;;
1499 test -s esc.E ||
rm -f esc.E
1500 $xx 'a\-z' 'A-Z' < $srcdir/esc.I
> esc.O
2> esc.E
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`
1506 cmp esc.O
$srcdir/esc.X
> /dev
/null
2>&1
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` ;;
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
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`
1523 cmp ross-0a.O
$srcdir/ross-0a.X
> /dev
/null
2>&1
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` ;;
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
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`
1540 cmp ross-0a.O
$srcdir/ross-0a.X
> /dev
/null
2>&1
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` ;;
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
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`
1557 cmp ross-0b.O
$srcdir/ross-0b.X
> /dev
/null
2>&1
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` ;;
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
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`
1574 cmp ross-0b.O
$srcdir/ross-0b.X
> /dev
/null
2>&1
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` ;;
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
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`
1591 cmp ross-1a.O
$srcdir/ross-1a.X
> /dev
/null
2>&1
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` ;;
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
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`
1608 cmp ross-1a.O
$srcdir/ross-1a.X
> /dev
/null
2>&1
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` ;;
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
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`
1625 cmp ross-1b.O
$srcdir/ross-1b.X
> /dev
/null
2>&1
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` ;;
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
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`
1642 cmp ross-1b.O
$srcdir/ross-1b.X
> /dev
/null
2>&1
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` ;;
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
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`
1659 cmp ross-2.O
$srcdir/ross-2.X
> /dev
/null
2>&1
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` ;;
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
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`
1676 cmp ross-2.O
$srcdir/ross-2.X
> /dev
/null
2>&1
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` ;;
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
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`
1693 cmp ross-3.O
$srcdir/ross-3.X
> /dev
/null
2>&1
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` ;;
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
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`
1710 cmp ross-3.O
$srcdir/ross-3.X
> /dev
/null
2>&1
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` ;;
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
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`
1727 cmp ross-4.O
$srcdir/ross-4.X
> /dev
/null
2>&1
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` ;;
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
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`
1744 cmp ross-4.O
$srcdir/ross-4.X
> /dev
/null
2>&1
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` ;;
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
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`
1761 cmp ross-5.O
$srcdir/ross-5.X
> /dev
/null
2>&1
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` ;;
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
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`
1778 cmp ross-5.O
$srcdir/ross-5.X
> /dev
/null
2>&1
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` ;;
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
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`
1795 cmp ross-6.O
$srcdir/ross-6.X
> /dev
/null
2>&1
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` ;;
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
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`
1812 cmp ross-6.O
$srcdir/ross-6.X
> /dev
/null
2>&1
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` ;;
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
1826 $echo Failed
$errors tests.
1>&2
1828 test $errors = 0 || errors
=1