.
[coreutils.git] / tests / tr / tr-tests
blob92f62dfa6f4d07d311da73f1a8802b958fbf591f
1 #! /bin/sh
2 # This script was generated automatically by mk-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 (diff -c 1.O $srcdir/1.X) 2> /dev/null
32 errors=`expr $errors + 1`;;
33 2) $echo "Test 1(|) may have failed." 1>&2
34 $echo The command "cmp 1.O $srcdir/1.X" failed. 1>&2
35 errors=`expr $errors + 1`;;
36 esac
38 test -s 1.E || rm -f 1.E
39 $xx 'abcd' '[]*]' < $srcdir/1.I > 1.O 2> 1.E
40 code=$?
41 if test $code != 0; then
42 $echo "Test 1(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
43 errors=`expr $errors + 1`
44 else
45 cmp 1.O $srcdir/1.X > /dev/null 2>&1
46 case $? in
47 0) if test "$VERBOSE"; then $echo "passed 1(<)"; fi;;
48 1) $echo "Test 1(<) failed: files 1.O and $srcdir/1.X differ" 1>&2
49 (diff -c 1.O $srcdir/1.X) 2> /dev/null
50 errors=`expr $errors + 1`;;
51 2) $echo "Test 1(<) may have failed." 1>&2
52 $echo The command "cmp 1.O $srcdir/1.X" failed. 1>&2
53 errors=`expr $errors + 1`;;
54 esac
56 test -s 1.E || rm -f 1.E
57 cat $srcdir/2.I | $xx 'abc' '[%*]xyz' > 2.O 2> 2.E
58 code=$?
59 if test $code != 0; then
60 $echo "Test 2(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
61 errors=`expr $errors + 1`
62 else
63 cmp 2.O $srcdir/2.X > /dev/null 2>&1
64 case $? in
65 0) if test "$VERBOSE"; then $echo "passed 2(|)"; fi;;
66 1) $echo "Test 2(|) failed: files 2.O and $srcdir/2.X differ" 1>&2
67 (diff -c 2.O $srcdir/2.X) 2> /dev/null
68 errors=`expr $errors + 1`;;
69 2) $echo "Test 2(|) may have failed." 1>&2
70 $echo The command "cmp 2.O $srcdir/2.X" failed. 1>&2
71 errors=`expr $errors + 1`;;
72 esac
74 test -s 2.E || rm -f 2.E
75 $xx 'abc' '[%*]xyz' < $srcdir/2.I > 2.O 2> 2.E
76 code=$?
77 if test $code != 0; then
78 $echo "Test 2(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
79 errors=`expr $errors + 1`
80 else
81 cmp 2.O $srcdir/2.X > /dev/null 2>&1
82 case $? in
83 0) if test "$VERBOSE"; then $echo "passed 2(<)"; fi;;
84 1) $echo "Test 2(<) failed: files 2.O and $srcdir/2.X differ" 1>&2
85 (diff -c 2.O $srcdir/2.X) 2> /dev/null
86 errors=`expr $errors + 1`;;
87 2) $echo "Test 2(<) may have failed." 1>&2
88 $echo The command "cmp 2.O $srcdir/2.X" failed. 1>&2
89 errors=`expr $errors + 1`;;
90 esac
92 test -s 2.E || rm -f 2.E
93 cat $srcdir/3.I | $xx '' '[.*]' > 3.O 2> 3.E
94 code=$?
95 if test $code != 0; then
96 $echo "Test 3(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
97 errors=`expr $errors + 1`
98 else
99 cmp 3.O $srcdir/3.X > /dev/null 2>&1
100 case $? in
101 0) if test "$VERBOSE"; then $echo "passed 3(|)"; fi;;
102 1) $echo "Test 3(|) failed: files 3.O and $srcdir/3.X differ" 1>&2
103 (diff -c 3.O $srcdir/3.X) 2> /dev/null
104 errors=`expr $errors + 1`;;
105 2) $echo "Test 3(|) may have failed." 1>&2
106 $echo The command "cmp 3.O $srcdir/3.X" failed. 1>&2
107 errors=`expr $errors + 1`;;
108 esac
110 test -s 3.E || rm -f 3.E
111 $xx '' '[.*]' < $srcdir/3.I > 3.O 2> 3.E
112 code=$?
113 if test $code != 0; then
114 $echo "Test 3(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
115 errors=`expr $errors + 1`
116 else
117 cmp 3.O $srcdir/3.X > /dev/null 2>&1
118 case $? in
119 0) if test "$VERBOSE"; then $echo "passed 3(<)"; fi;;
120 1) $echo "Test 3(<) failed: files 3.O and $srcdir/3.X differ" 1>&2
121 (diff -c 3.O $srcdir/3.X) 2> /dev/null
122 errors=`expr $errors + 1`;;
123 2) $echo "Test 3(<) may have failed." 1>&2
124 $echo The command "cmp 3.O $srcdir/3.X" failed. 1>&2
125 errors=`expr $errors + 1`;;
126 esac
128 test -s 3.E || rm -f 3.E
129 cat $srcdir/4.I | $xx -t 'abcd' 'xy' > 4.O 2> 4.E
130 code=$?
131 if test $code != 0; then
132 $echo "Test 4(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
133 errors=`expr $errors + 1`
134 else
135 cmp 4.O $srcdir/4.X > /dev/null 2>&1
136 case $? in
137 0) if test "$VERBOSE"; then $echo "passed 4(|)"; fi;;
138 1) $echo "Test 4(|) failed: files 4.O and $srcdir/4.X differ" 1>&2
139 (diff -c 4.O $srcdir/4.X) 2> /dev/null
140 errors=`expr $errors + 1`;;
141 2) $echo "Test 4(|) may have failed." 1>&2
142 $echo The command "cmp 4.O $srcdir/4.X" failed. 1>&2
143 errors=`expr $errors + 1`;;
144 esac
146 test -s 4.E || rm -f 4.E
147 $xx -t 'abcd' 'xy' < $srcdir/4.I > 4.O 2> 4.E
148 code=$?
149 if test $code != 0; then
150 $echo "Test 4(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
151 errors=`expr $errors + 1`
152 else
153 cmp 4.O $srcdir/4.X > /dev/null 2>&1
154 case $? in
155 0) if test "$VERBOSE"; then $echo "passed 4(<)"; fi;;
156 1) $echo "Test 4(<) failed: files 4.O and $srcdir/4.X differ" 1>&2
157 (diff -c 4.O $srcdir/4.X) 2> /dev/null
158 errors=`expr $errors + 1`;;
159 2) $echo "Test 4(<) may have failed." 1>&2
160 $echo The command "cmp 4.O $srcdir/4.X" failed. 1>&2
161 errors=`expr $errors + 1`;;
162 esac
164 test -s 4.E || rm -f 4.E
165 cat $srcdir/5.I | $xx 'abcd' 'xy' > 5.O 2> 5.E
166 code=$?
167 if test $code != 0; then
168 $echo "Test 5(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
169 errors=`expr $errors + 1`
170 else
171 cmp 5.O $srcdir/5.X > /dev/null 2>&1
172 case $? in
173 0) if test "$VERBOSE"; then $echo "passed 5(|)"; fi;;
174 1) $echo "Test 5(|) failed: files 5.O and $srcdir/5.X differ" 1>&2
175 (diff -c 5.O $srcdir/5.X) 2> /dev/null
176 errors=`expr $errors + 1`;;
177 2) $echo "Test 5(|) may have failed." 1>&2
178 $echo The command "cmp 5.O $srcdir/5.X" failed. 1>&2
179 errors=`expr $errors + 1`;;
180 esac
182 test -s 5.E || rm -f 5.E
183 $xx 'abcd' 'xy' < $srcdir/5.I > 5.O 2> 5.E
184 code=$?
185 if test $code != 0; then
186 $echo "Test 5(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
187 errors=`expr $errors + 1`
188 else
189 cmp 5.O $srcdir/5.X > /dev/null 2>&1
190 case $? in
191 0) if test "$VERBOSE"; then $echo "passed 5(<)"; fi;;
192 1) $echo "Test 5(<) failed: files 5.O and $srcdir/5.X differ" 1>&2
193 (diff -c 5.O $srcdir/5.X) 2> /dev/null
194 errors=`expr $errors + 1`;;
195 2) $echo "Test 5(<) may have failed." 1>&2
196 $echo The command "cmp 5.O $srcdir/5.X" failed. 1>&2
197 errors=`expr $errors + 1`;;
198 esac
200 test -s 5.E || rm -f 5.E
201 cat $srcdir/6.I | $xx 'abcd' 'x[y*]' > 6.O 2> 6.E
202 code=$?
203 if test $code != 0; then
204 $echo "Test 6(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
205 errors=`expr $errors + 1`
206 else
207 cmp 6.O $srcdir/6.X > /dev/null 2>&1
208 case $? in
209 0) if test "$VERBOSE"; then $echo "passed 6(|)"; fi;;
210 1) $echo "Test 6(|) failed: files 6.O and $srcdir/6.X differ" 1>&2
211 (diff -c 6.O $srcdir/6.X) 2> /dev/null
212 errors=`expr $errors + 1`;;
213 2) $echo "Test 6(|) may have failed." 1>&2
214 $echo The command "cmp 6.O $srcdir/6.X" failed. 1>&2
215 errors=`expr $errors + 1`;;
216 esac
218 test -s 6.E || rm -f 6.E
219 $xx 'abcd' 'x[y*]' < $srcdir/6.I > 6.O 2> 6.E
220 code=$?
221 if test $code != 0; then
222 $echo "Test 6(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
223 errors=`expr $errors + 1`
224 else
225 cmp 6.O $srcdir/6.X > /dev/null 2>&1
226 case $? in
227 0) if test "$VERBOSE"; then $echo "passed 6(<)"; fi;;
228 1) $echo "Test 6(<) failed: files 6.O and $srcdir/6.X differ" 1>&2
229 (diff -c 6.O $srcdir/6.X) 2> /dev/null
230 errors=`expr $errors + 1`;;
231 2) $echo "Test 6(<) may have failed." 1>&2
232 $echo The command "cmp 6.O $srcdir/6.X" failed. 1>&2
233 errors=`expr $errors + 1`;;
234 esac
236 test -s 6.E || rm -f 6.E
237 cat $srcdir/7.I | $xx -s 'a-p' '%[.*]$' > 7.O 2> 7.E
238 code=$?
239 if test $code != 0; then
240 $echo "Test 7(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
241 errors=`expr $errors + 1`
242 else
243 cmp 7.O $srcdir/7.X > /dev/null 2>&1
244 case $? in
245 0) if test "$VERBOSE"; then $echo "passed 7(|)"; fi;;
246 1) $echo "Test 7(|) failed: files 7.O and $srcdir/7.X differ" 1>&2
247 (diff -c 7.O $srcdir/7.X) 2> /dev/null
248 errors=`expr $errors + 1`;;
249 2) $echo "Test 7(|) may have failed." 1>&2
250 $echo The command "cmp 7.O $srcdir/7.X" failed. 1>&2
251 errors=`expr $errors + 1`;;
252 esac
254 test -s 7.E || rm -f 7.E
255 $xx -s 'a-p' '%[.*]$' < $srcdir/7.I > 7.O 2> 7.E
256 code=$?
257 if test $code != 0; then
258 $echo "Test 7(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
259 errors=`expr $errors + 1`
260 else
261 cmp 7.O $srcdir/7.X > /dev/null 2>&1
262 case $? in
263 0) if test "$VERBOSE"; then $echo "passed 7(<)"; fi;;
264 1) $echo "Test 7(<) failed: files 7.O and $srcdir/7.X differ" 1>&2
265 (diff -c 7.O $srcdir/7.X) 2> /dev/null
266 errors=`expr $errors + 1`;;
267 2) $echo "Test 7(<) may have failed." 1>&2
268 $echo The command "cmp 7.O $srcdir/7.X" failed. 1>&2
269 errors=`expr $errors + 1`;;
270 esac
272 test -s 7.E || rm -f 7.E
273 cat $srcdir/8.I | $xx -s 'a-p' '[.*]$' > 8.O 2> 8.E
274 code=$?
275 if test $code != 0; then
276 $echo "Test 8(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
277 errors=`expr $errors + 1`
278 else
279 cmp 8.O $srcdir/8.X > /dev/null 2>&1
280 case $? in
281 0) if test "$VERBOSE"; then $echo "passed 8(|)"; fi;;
282 1) $echo "Test 8(|) failed: files 8.O and $srcdir/8.X differ" 1>&2
283 (diff -c 8.O $srcdir/8.X) 2> /dev/null
284 errors=`expr $errors + 1`;;
285 2) $echo "Test 8(|) may have failed." 1>&2
286 $echo The command "cmp 8.O $srcdir/8.X" failed. 1>&2
287 errors=`expr $errors + 1`;;
288 esac
290 test -s 8.E || rm -f 8.E
291 $xx -s 'a-p' '[.*]$' < $srcdir/8.I > 8.O 2> 8.E
292 code=$?
293 if test $code != 0; then
294 $echo "Test 8(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
295 errors=`expr $errors + 1`
296 else
297 cmp 8.O $srcdir/8.X > /dev/null 2>&1
298 case $? in
299 0) if test "$VERBOSE"; then $echo "passed 8(<)"; fi;;
300 1) $echo "Test 8(<) failed: files 8.O and $srcdir/8.X differ" 1>&2
301 (diff -c 8.O $srcdir/8.X) 2> /dev/null
302 errors=`expr $errors + 1`;;
303 2) $echo "Test 8(<) may have failed." 1>&2
304 $echo The command "cmp 8.O $srcdir/8.X" failed. 1>&2
305 errors=`expr $errors + 1`;;
306 esac
308 test -s 8.E || rm -f 8.E
309 cat $srcdir/9.I | $xx -s 'a-p' '%[.*]' > 9.O 2> 9.E
310 code=$?
311 if test $code != 0; then
312 $echo "Test 9(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
313 errors=`expr $errors + 1`
314 else
315 cmp 9.O $srcdir/9.X > /dev/null 2>&1
316 case $? in
317 0) if test "$VERBOSE"; then $echo "passed 9(|)"; fi;;
318 1) $echo "Test 9(|) failed: files 9.O and $srcdir/9.X differ" 1>&2
319 (diff -c 9.O $srcdir/9.X) 2> /dev/null
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 $xx -s 'a-p' '%[.*]' < $srcdir/9.I > 9.O 2> 9.E
328 code=$?
329 if test $code != 0; then
330 $echo "Test 9(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
331 errors=`expr $errors + 1`
332 else
333 cmp 9.O $srcdir/9.X > /dev/null 2>&1
334 case $? in
335 0) if test "$VERBOSE"; then $echo "passed 9(<)"; fi;;
336 1) $echo "Test 9(<) failed: files 9.O and $srcdir/9.X differ" 1>&2
337 (diff -c 9.O $srcdir/9.X) 2> /dev/null
338 errors=`expr $errors + 1`;;
339 2) $echo "Test 9(<) may have failed." 1>&2
340 $echo The command "cmp 9.O $srcdir/9.X" failed. 1>&2
341 errors=`expr $errors + 1`;;
342 esac
344 test -s 9.E || rm -f 9.E
345 cat $srcdir/a.I | $xx -s '[a-z]' > a.O 2> a.E
346 code=$?
347 if test $code != 0; then
348 $echo "Test a(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
349 errors=`expr $errors + 1`
350 else
351 cmp a.O $srcdir/a.X > /dev/null 2>&1
352 case $? in
353 0) if test "$VERBOSE"; then $echo "passed a(|)"; fi;;
354 1) $echo "Test a(|) failed: files a.O and $srcdir/a.X differ" 1>&2
355 (diff -c a.O $srcdir/a.X) 2> /dev/null
356 errors=`expr $errors + 1`;;
357 2) $echo "Test a(|) may have failed." 1>&2
358 $echo The command "cmp a.O $srcdir/a.X" failed. 1>&2
359 errors=`expr $errors + 1`;;
360 esac
362 test -s a.E || rm -f a.E
363 $xx -s '[a-z]' < $srcdir/a.I > a.O 2> a.E
364 code=$?
365 if test $code != 0; then
366 $echo "Test a(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
367 errors=`expr $errors + 1`
368 else
369 cmp a.O $srcdir/a.X > /dev/null 2>&1
370 case $? in
371 0) if test "$VERBOSE"; then $echo "passed a(<)"; fi;;
372 1) $echo "Test a(<) failed: files a.O and $srcdir/a.X differ" 1>&2
373 (diff -c a.O $srcdir/a.X) 2> /dev/null
374 errors=`expr $errors + 1`;;
375 2) $echo "Test a(<) may have failed." 1>&2
376 $echo The command "cmp a.O $srcdir/a.X" failed. 1>&2
377 errors=`expr $errors + 1`;;
378 esac
380 test -s a.E || rm -f a.E
381 cat $srcdir/b.I | $xx -s '[a-c]' > b.O 2> b.E
382 code=$?
383 if test $code != 0; then
384 $echo "Test b(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
385 errors=`expr $errors + 1`
386 else
387 cmp b.O $srcdir/b.X > /dev/null 2>&1
388 case $? in
389 0) if test "$VERBOSE"; then $echo "passed b(|)"; fi;;
390 1) $echo "Test b(|) failed: files b.O and $srcdir/b.X differ" 1>&2
391 (diff -c b.O $srcdir/b.X) 2> /dev/null
392 errors=`expr $errors + 1`;;
393 2) $echo "Test b(|) may have failed." 1>&2
394 $echo The command "cmp b.O $srcdir/b.X" failed. 1>&2
395 errors=`expr $errors + 1`;;
396 esac
398 test -s b.E || rm -f b.E
399 $xx -s '[a-c]' < $srcdir/b.I > b.O 2> b.E
400 code=$?
401 if test $code != 0; then
402 $echo "Test b(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
403 errors=`expr $errors + 1`
404 else
405 cmp b.O $srcdir/b.X > /dev/null 2>&1
406 case $? in
407 0) if test "$VERBOSE"; then $echo "passed b(<)"; fi;;
408 1) $echo "Test b(<) failed: files b.O and $srcdir/b.X differ" 1>&2
409 (diff -c b.O $srcdir/b.X) 2> /dev/null
410 errors=`expr $errors + 1`;;
411 2) $echo "Test b(<) may have failed." 1>&2
412 $echo The command "cmp b.O $srcdir/b.X" failed. 1>&2
413 errors=`expr $errors + 1`;;
414 esac
416 test -s b.E || rm -f b.E
417 cat $srcdir/c.I | $xx -s '[a-b]' > c.O 2> c.E
418 code=$?
419 if test $code != 0; then
420 $echo "Test c(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
421 errors=`expr $errors + 1`
422 else
423 cmp c.O $srcdir/c.X > /dev/null 2>&1
424 case $? in
425 0) if test "$VERBOSE"; then $echo "passed c(|)"; fi;;
426 1) $echo "Test c(|) failed: files c.O and $srcdir/c.X differ" 1>&2
427 (diff -c c.O $srcdir/c.X) 2> /dev/null
428 errors=`expr $errors + 1`;;
429 2) $echo "Test c(|) may have failed." 1>&2
430 $echo The command "cmp c.O $srcdir/c.X" failed. 1>&2
431 errors=`expr $errors + 1`;;
432 esac
434 test -s c.E || rm -f c.E
435 $xx -s '[a-b]' < $srcdir/c.I > c.O 2> c.E
436 code=$?
437 if test $code != 0; then
438 $echo "Test c(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
439 errors=`expr $errors + 1`
440 else
441 cmp c.O $srcdir/c.X > /dev/null 2>&1
442 case $? in
443 0) if test "$VERBOSE"; then $echo "passed c(<)"; fi;;
444 1) $echo "Test c(<) failed: files c.O and $srcdir/c.X differ" 1>&2
445 (diff -c c.O $srcdir/c.X) 2> /dev/null
446 errors=`expr $errors + 1`;;
447 2) $echo "Test c(<) may have failed." 1>&2
448 $echo The command "cmp c.O $srcdir/c.X" failed. 1>&2
449 errors=`expr $errors + 1`;;
450 esac
452 test -s c.E || rm -f c.E
453 cat $srcdir/d.I | $xx -s '[b-c]' > d.O 2> d.E
454 code=$?
455 if test $code != 0; then
456 $echo "Test d(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
457 errors=`expr $errors + 1`
458 else
459 cmp d.O $srcdir/d.X > /dev/null 2>&1
460 case $? in
461 0) if test "$VERBOSE"; then $echo "passed d(|)"; fi;;
462 1) $echo "Test d(|) failed: files d.O and $srcdir/d.X differ" 1>&2
463 (diff -c d.O $srcdir/d.X) 2> /dev/null
464 errors=`expr $errors + 1`;;
465 2) $echo "Test d(|) may have failed." 1>&2
466 $echo The command "cmp d.O $srcdir/d.X" failed. 1>&2
467 errors=`expr $errors + 1`;;
468 esac
470 test -s d.E || rm -f d.E
471 $xx -s '[b-c]' < $srcdir/d.I > d.O 2> d.E
472 code=$?
473 if test $code != 0; then
474 $echo "Test d(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
475 errors=`expr $errors + 1`
476 else
477 cmp d.O $srcdir/d.X > /dev/null 2>&1
478 case $? in
479 0) if test "$VERBOSE"; then $echo "passed d(<)"; fi;;
480 1) $echo "Test d(<) failed: files d.O and $srcdir/d.X differ" 1>&2
481 (diff -c d.O $srcdir/d.X) 2> /dev/null
482 errors=`expr $errors + 1`;;
483 2) $echo "Test d(<) may have failed." 1>&2
484 $echo The command "cmp d.O $srcdir/d.X" failed. 1>&2
485 errors=`expr $errors + 1`;;
486 esac
488 test -s d.E || rm -f d.E
489 cat $srcdir/e.I | $xx -s '[\0-\5]' > e.O 2> e.E
490 code=$?
491 if test $code != 0; then
492 $echo "Test e(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
493 errors=`expr $errors + 1`
494 else
495 cmp e.O $srcdir/e.X > /dev/null 2>&1
496 case $? in
497 0) if test "$VERBOSE"; then $echo "passed e(|)"; fi;;
498 1) $echo "Test e(|) failed: files e.O and $srcdir/e.X differ" 1>&2
499 (diff -c e.O $srcdir/e.X) 2> /dev/null
500 errors=`expr $errors + 1`;;
501 2) $echo "Test e(|) may have failed." 1>&2
502 $echo The command "cmp e.O $srcdir/e.X" failed. 1>&2
503 errors=`expr $errors + 1`;;
504 esac
506 test -s e.E || rm -f e.E
507 $xx -s '[\0-\5]' < $srcdir/e.I > e.O 2> e.E
508 code=$?
509 if test $code != 0; then
510 $echo "Test e(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
511 errors=`expr $errors + 1`
512 else
513 cmp e.O $srcdir/e.X > /dev/null 2>&1
514 case $? in
515 0) if test "$VERBOSE"; then $echo "passed e(<)"; fi;;
516 1) $echo "Test e(<) failed: files e.O and $srcdir/e.X differ" 1>&2
517 (diff -c e.O $srcdir/e.X) 2> /dev/null
518 errors=`expr $errors + 1`;;
519 2) $echo "Test e(<) may have failed." 1>&2
520 $echo The command "cmp e.O $srcdir/e.X" failed. 1>&2
521 errors=`expr $errors + 1`;;
522 esac
524 test -s e.E || rm -f e.E
525 cat $srcdir/f.I | $xx -d '[=[=]' > f.O 2> f.E
526 code=$?
527 if test $code != 0; then
528 $echo "Test f(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
529 errors=`expr $errors + 1`
530 else
531 cmp f.O $srcdir/f.X > /dev/null 2>&1
532 case $? in
533 0) if test "$VERBOSE"; then $echo "passed f(|)"; fi;;
534 1) $echo "Test f(|) failed: files f.O and $srcdir/f.X differ" 1>&2
535 (diff -c f.O $srcdir/f.X) 2> /dev/null
536 errors=`expr $errors + 1`;;
537 2) $echo "Test f(|) may have failed." 1>&2
538 $echo The command "cmp f.O $srcdir/f.X" failed. 1>&2
539 errors=`expr $errors + 1`;;
540 esac
542 test -s f.E || rm -f f.E
543 $xx -d '[=[=]' < $srcdir/f.I > f.O 2> f.E
544 code=$?
545 if test $code != 0; then
546 $echo "Test f(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
547 errors=`expr $errors + 1`
548 else
549 cmp f.O $srcdir/f.X > /dev/null 2>&1
550 case $? in
551 0) if test "$VERBOSE"; then $echo "passed f(<)"; fi;;
552 1) $echo "Test f(<) failed: files f.O and $srcdir/f.X differ" 1>&2
553 (diff -c f.O $srcdir/f.X) 2> /dev/null
554 errors=`expr $errors + 1`;;
555 2) $echo "Test f(<) may have failed." 1>&2
556 $echo The command "cmp f.O $srcdir/f.X" failed. 1>&2
557 errors=`expr $errors + 1`;;
558 esac
560 test -s f.E || rm -f f.E
561 cat $srcdir/g.I | $xx -d '[=]=]' > g.O 2> g.E
562 code=$?
563 if test $code != 0; then
564 $echo "Test g(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
565 errors=`expr $errors + 1`
566 else
567 cmp g.O $srcdir/g.X > /dev/null 2>&1
568 case $? in
569 0) if test "$VERBOSE"; then $echo "passed g(|)"; fi;;
570 1) $echo "Test g(|) failed: files g.O and $srcdir/g.X differ" 1>&2
571 (diff -c g.O $srcdir/g.X) 2> /dev/null
572 errors=`expr $errors + 1`;;
573 2) $echo "Test g(|) may have failed." 1>&2
574 $echo The command "cmp g.O $srcdir/g.X" failed. 1>&2
575 errors=`expr $errors + 1`;;
576 esac
578 test -s g.E || rm -f g.E
579 $xx -d '[=]=]' < $srcdir/g.I > g.O 2> g.E
580 code=$?
581 if test $code != 0; then
582 $echo "Test g(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
583 errors=`expr $errors + 1`
584 else
585 cmp g.O $srcdir/g.X > /dev/null 2>&1
586 case $? in
587 0) if test "$VERBOSE"; then $echo "passed g(<)"; fi;;
588 1) $echo "Test g(<) failed: files g.O and $srcdir/g.X differ" 1>&2
589 (diff -c g.O $srcdir/g.X) 2> /dev/null
590 errors=`expr $errors + 1`;;
591 2) $echo "Test g(<) may have failed." 1>&2
592 $echo The command "cmp g.O $srcdir/g.X" failed. 1>&2
593 errors=`expr $errors + 1`;;
594 esac
596 test -s g.E || rm -f g.E
597 cat $srcdir/h.I | $xx -d '[:xdigit:]' > h.O 2> h.E
598 code=$?
599 if test $code != 0; then
600 $echo "Test h(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
601 errors=`expr $errors + 1`
602 else
603 cmp h.O $srcdir/h.X > /dev/null 2>&1
604 case $? in
605 0) if test "$VERBOSE"; then $echo "passed h(|)"; fi;;
606 1) $echo "Test h(|) failed: files h.O and $srcdir/h.X differ" 1>&2
607 (diff -c h.O $srcdir/h.X) 2> /dev/null
608 errors=`expr $errors + 1`;;
609 2) $echo "Test h(|) may have failed." 1>&2
610 $echo The command "cmp h.O $srcdir/h.X" failed. 1>&2
611 errors=`expr $errors + 1`;;
612 esac
614 test -s h.E || rm -f h.E
615 $xx -d '[:xdigit:]' < $srcdir/h.I > h.O 2> h.E
616 code=$?
617 if test $code != 0; then
618 $echo "Test h(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
619 errors=`expr $errors + 1`
620 else
621 cmp h.O $srcdir/h.X > /dev/null 2>&1
622 case $? in
623 0) if test "$VERBOSE"; then $echo "passed h(<)"; fi;;
624 1) $echo "Test h(<) failed: files h.O and $srcdir/h.X differ" 1>&2
625 (diff -c h.O $srcdir/h.X) 2> /dev/null
626 errors=`expr $errors + 1`;;
627 2) $echo "Test h(<) may have failed." 1>&2
628 $echo The command "cmp h.O $srcdir/h.X" failed. 1>&2
629 errors=`expr $errors + 1`;;
630 esac
632 test -s h.E || rm -f h.E
633 cat $srcdir/i.I | $xx -d '[:xdigit:]' > i.O 2> i.E
634 code=$?
635 if test $code != 0; then
636 $echo "Test i(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
637 errors=`expr $errors + 1`
638 else
639 cmp i.O $srcdir/i.X > /dev/null 2>&1
640 case $? in
641 0) if test "$VERBOSE"; then $echo "passed i(|)"; fi;;
642 1) $echo "Test i(|) failed: files i.O and $srcdir/i.X differ" 1>&2
643 (diff -c i.O $srcdir/i.X) 2> /dev/null
644 errors=`expr $errors + 1`;;
645 2) $echo "Test i(|) may have failed." 1>&2
646 $echo The command "cmp i.O $srcdir/i.X" failed. 1>&2
647 errors=`expr $errors + 1`;;
648 esac
650 test -s i.E || rm -f i.E
651 $xx -d '[:xdigit:]' < $srcdir/i.I > i.O 2> i.E
652 code=$?
653 if test $code != 0; then
654 $echo "Test i(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
655 errors=`expr $errors + 1`
656 else
657 cmp i.O $srcdir/i.X > /dev/null 2>&1
658 case $? in
659 0) if test "$VERBOSE"; then $echo "passed i(<)"; fi;;
660 1) $echo "Test i(<) failed: files i.O and $srcdir/i.X differ" 1>&2
661 (diff -c i.O $srcdir/i.X) 2> /dev/null
662 errors=`expr $errors + 1`;;
663 2) $echo "Test i(<) may have failed." 1>&2
664 $echo The command "cmp i.O $srcdir/i.X" failed. 1>&2
665 errors=`expr $errors + 1`;;
666 esac
668 test -s i.E || rm -f i.E
669 cat $srcdir/j.I | $xx -d '[:digit:]' > j.O 2> j.E
670 code=$?
671 if test $code != 0; then
672 $echo "Test j(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
673 errors=`expr $errors + 1`
674 else
675 cmp j.O $srcdir/j.X > /dev/null 2>&1
676 case $? in
677 0) if test "$VERBOSE"; then $echo "passed j(|)"; fi;;
678 1) $echo "Test j(|) failed: files j.O and $srcdir/j.X differ" 1>&2
679 (diff -c j.O $srcdir/j.X) 2> /dev/null
680 errors=`expr $errors + 1`;;
681 2) $echo "Test j(|) may have failed." 1>&2
682 $echo The command "cmp j.O $srcdir/j.X" failed. 1>&2
683 errors=`expr $errors + 1`;;
684 esac
686 test -s j.E || rm -f j.E
687 $xx -d '[:digit:]' < $srcdir/j.I > j.O 2> j.E
688 code=$?
689 if test $code != 0; then
690 $echo "Test j(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
691 errors=`expr $errors + 1`
692 else
693 cmp j.O $srcdir/j.X > /dev/null 2>&1
694 case $? in
695 0) if test "$VERBOSE"; then $echo "passed j(<)"; fi;;
696 1) $echo "Test j(<) failed: files j.O and $srcdir/j.X differ" 1>&2
697 (diff -c j.O $srcdir/j.X) 2> /dev/null
698 errors=`expr $errors + 1`;;
699 2) $echo "Test j(<) may have failed." 1>&2
700 $echo The command "cmp j.O $srcdir/j.X" failed. 1>&2
701 errors=`expr $errors + 1`;;
702 esac
704 test -s j.E || rm -f j.E
705 cat $srcdir/k.I | $xx -d '[:digit:]' > k.O 2> k.E
706 code=$?
707 if test $code != 0; then
708 $echo "Test k(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
709 errors=`expr $errors + 1`
710 else
711 cmp k.O $srcdir/k.X > /dev/null 2>&1
712 case $? in
713 0) if test "$VERBOSE"; then $echo "passed k(|)"; fi;;
714 1) $echo "Test k(|) failed: files k.O and $srcdir/k.X differ" 1>&2
715 (diff -c k.O $srcdir/k.X) 2> /dev/null
716 errors=`expr $errors + 1`;;
717 2) $echo "Test k(|) may have failed." 1>&2
718 $echo The command "cmp k.O $srcdir/k.X" failed. 1>&2
719 errors=`expr $errors + 1`;;
720 esac
722 test -s k.E || rm -f k.E
723 $xx -d '[:digit:]' < $srcdir/k.I > k.O 2> k.E
724 code=$?
725 if test $code != 0; then
726 $echo "Test k(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
727 errors=`expr $errors + 1`
728 else
729 cmp k.O $srcdir/k.X > /dev/null 2>&1
730 case $? in
731 0) if test "$VERBOSE"; then $echo "passed k(<)"; fi;;
732 1) $echo "Test k(<) failed: files k.O and $srcdir/k.X differ" 1>&2
733 (diff -c k.O $srcdir/k.X) 2> /dev/null
734 errors=`expr $errors + 1`;;
735 2) $echo "Test k(<) may have failed." 1>&2
736 $echo The command "cmp k.O $srcdir/k.X" failed. 1>&2
737 errors=`expr $errors + 1`;;
738 esac
740 test -s k.E || rm -f k.E
741 cat $srcdir/l.I | $xx -d '[:lower:]' > l.O 2> l.E
742 code=$?
743 if test $code != 0; then
744 $echo "Test l(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
745 errors=`expr $errors + 1`
746 else
747 cmp l.O $srcdir/l.X > /dev/null 2>&1
748 case $? in
749 0) if test "$VERBOSE"; then $echo "passed l(|)"; fi;;
750 1) $echo "Test l(|) failed: files l.O and $srcdir/l.X differ" 1>&2
751 (diff -c l.O $srcdir/l.X) 2> /dev/null
752 errors=`expr $errors + 1`;;
753 2) $echo "Test l(|) may have failed." 1>&2
754 $echo The command "cmp l.O $srcdir/l.X" failed. 1>&2
755 errors=`expr $errors + 1`;;
756 esac
758 test -s l.E || rm -f l.E
759 $xx -d '[:lower:]' < $srcdir/l.I > l.O 2> l.E
760 code=$?
761 if test $code != 0; then
762 $echo "Test l(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
763 errors=`expr $errors + 1`
764 else
765 cmp l.O $srcdir/l.X > /dev/null 2>&1
766 case $? in
767 0) if test "$VERBOSE"; then $echo "passed l(<)"; fi;;
768 1) $echo "Test l(<) failed: files l.O and $srcdir/l.X differ" 1>&2
769 (diff -c l.O $srcdir/l.X) 2> /dev/null
770 errors=`expr $errors + 1`;;
771 2) $echo "Test l(<) may have failed." 1>&2
772 $echo The command "cmp l.O $srcdir/l.X" failed. 1>&2
773 errors=`expr $errors + 1`;;
774 esac
776 test -s l.E || rm -f l.E
777 cat $srcdir/m.I | $xx -d '[:upper:]' > m.O 2> m.E
778 code=$?
779 if test $code != 0; then
780 $echo "Test m(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
781 errors=`expr $errors + 1`
782 else
783 cmp m.O $srcdir/m.X > /dev/null 2>&1
784 case $? in
785 0) if test "$VERBOSE"; then $echo "passed m(|)"; fi;;
786 1) $echo "Test m(|) failed: files m.O and $srcdir/m.X differ" 1>&2
787 (diff -c m.O $srcdir/m.X) 2> /dev/null
788 errors=`expr $errors + 1`;;
789 2) $echo "Test m(|) may have failed." 1>&2
790 $echo The command "cmp m.O $srcdir/m.X" failed. 1>&2
791 errors=`expr $errors + 1`;;
792 esac
794 test -s m.E || rm -f m.E
795 $xx -d '[:upper:]' < $srcdir/m.I > m.O 2> m.E
796 code=$?
797 if test $code != 0; then
798 $echo "Test m(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
799 errors=`expr $errors + 1`
800 else
801 cmp m.O $srcdir/m.X > /dev/null 2>&1
802 case $? in
803 0) if test "$VERBOSE"; then $echo "passed m(<)"; fi;;
804 1) $echo "Test m(<) failed: files m.O and $srcdir/m.X differ" 1>&2
805 (diff -c m.O $srcdir/m.X) 2> /dev/null
806 errors=`expr $errors + 1`;;
807 2) $echo "Test m(<) may have failed." 1>&2
808 $echo The command "cmp m.O $srcdir/m.X" failed. 1>&2
809 errors=`expr $errors + 1`;;
810 esac
812 test -s m.E || rm -f m.E
813 cat $srcdir/n.I | $xx -d '[:lower:][:upper:]' > n.O 2> n.E
814 code=$?
815 if test $code != 0; then
816 $echo "Test n(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
817 errors=`expr $errors + 1`
818 else
819 cmp n.O $srcdir/n.X > /dev/null 2>&1
820 case $? in
821 0) if test "$VERBOSE"; then $echo "passed n(|)"; fi;;
822 1) $echo "Test n(|) failed: files n.O and $srcdir/n.X differ" 1>&2
823 (diff -c n.O $srcdir/n.X) 2> /dev/null
824 errors=`expr $errors + 1`;;
825 2) $echo "Test n(|) may have failed." 1>&2
826 $echo The command "cmp n.O $srcdir/n.X" failed. 1>&2
827 errors=`expr $errors + 1`;;
828 esac
830 test -s n.E || rm -f n.E
831 $xx -d '[:lower:][:upper:]' < $srcdir/n.I > n.O 2> n.E
832 code=$?
833 if test $code != 0; then
834 $echo "Test n(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
835 errors=`expr $errors + 1`
836 else
837 cmp n.O $srcdir/n.X > /dev/null 2>&1
838 case $? in
839 0) if test "$VERBOSE"; then $echo "passed n(<)"; fi;;
840 1) $echo "Test n(<) failed: files n.O and $srcdir/n.X differ" 1>&2
841 (diff -c n.O $srcdir/n.X) 2> /dev/null
842 errors=`expr $errors + 1`;;
843 2) $echo "Test n(<) may have failed." 1>&2
844 $echo The command "cmp n.O $srcdir/n.X" failed. 1>&2
845 errors=`expr $errors + 1`;;
846 esac
848 test -s n.E || rm -f n.E
849 cat $srcdir/o.I | $xx -d '[:alpha:]' > o.O 2> o.E
850 code=$?
851 if test $code != 0; then
852 $echo "Test o(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
853 errors=`expr $errors + 1`
854 else
855 cmp o.O $srcdir/o.X > /dev/null 2>&1
856 case $? in
857 0) if test "$VERBOSE"; then $echo "passed o(|)"; fi;;
858 1) $echo "Test o(|) failed: files o.O and $srcdir/o.X differ" 1>&2
859 (diff -c o.O $srcdir/o.X) 2> /dev/null
860 errors=`expr $errors + 1`;;
861 2) $echo "Test o(|) may have failed." 1>&2
862 $echo The command "cmp o.O $srcdir/o.X" failed. 1>&2
863 errors=`expr $errors + 1`;;
864 esac
866 test -s o.E || rm -f o.E
867 $xx -d '[:alpha:]' < $srcdir/o.I > o.O 2> o.E
868 code=$?
869 if test $code != 0; then
870 $echo "Test o(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
871 errors=`expr $errors + 1`
872 else
873 cmp o.O $srcdir/o.X > /dev/null 2>&1
874 case $? in
875 0) if test "$VERBOSE"; then $echo "passed o(<)"; fi;;
876 1) $echo "Test o(<) failed: files o.O and $srcdir/o.X differ" 1>&2
877 (diff -c o.O $srcdir/o.X) 2> /dev/null
878 errors=`expr $errors + 1`;;
879 2) $echo "Test o(<) may have failed." 1>&2
880 $echo The command "cmp o.O $srcdir/o.X" failed. 1>&2
881 errors=`expr $errors + 1`;;
882 esac
884 test -s o.E || rm -f o.E
885 cat $srcdir/p.I | $xx -d '[:alnum:]' > p.O 2> p.E
886 code=$?
887 if test $code != 0; then
888 $echo "Test p(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
889 errors=`expr $errors + 1`
890 else
891 cmp p.O $srcdir/p.X > /dev/null 2>&1
892 case $? in
893 0) if test "$VERBOSE"; then $echo "passed p(|)"; fi;;
894 1) $echo "Test p(|) failed: files p.O and $srcdir/p.X differ" 1>&2
895 (diff -c p.O $srcdir/p.X) 2> /dev/null
896 errors=`expr $errors + 1`;;
897 2) $echo "Test p(|) may have failed." 1>&2
898 $echo The command "cmp p.O $srcdir/p.X" failed. 1>&2
899 errors=`expr $errors + 1`;;
900 esac
902 test -s p.E || rm -f p.E
903 $xx -d '[:alnum:]' < $srcdir/p.I > p.O 2> p.E
904 code=$?
905 if test $code != 0; then
906 $echo "Test p(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
907 errors=`expr $errors + 1`
908 else
909 cmp p.O $srcdir/p.X > /dev/null 2>&1
910 case $? in
911 0) if test "$VERBOSE"; then $echo "passed p(<)"; fi;;
912 1) $echo "Test p(<) failed: files p.O and $srcdir/p.X differ" 1>&2
913 (diff -c p.O $srcdir/p.X) 2> /dev/null
914 errors=`expr $errors + 1`;;
915 2) $echo "Test p(<) may have failed." 1>&2
916 $echo The command "cmp p.O $srcdir/p.X" failed. 1>&2
917 errors=`expr $errors + 1`;;
918 esac
920 test -s p.E || rm -f p.E
921 cat $srcdir/q.I | $xx -d '[:alnum:]' > q.O 2> q.E
922 code=$?
923 if test $code != 0; then
924 $echo "Test q(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
925 errors=`expr $errors + 1`
926 else
927 cmp q.O $srcdir/q.X > /dev/null 2>&1
928 case $? in
929 0) if test "$VERBOSE"; then $echo "passed q(|)"; fi;;
930 1) $echo "Test q(|) failed: files q.O and $srcdir/q.X differ" 1>&2
931 (diff -c q.O $srcdir/q.X) 2> /dev/null
932 errors=`expr $errors + 1`;;
933 2) $echo "Test q(|) may have failed." 1>&2
934 $echo The command "cmp q.O $srcdir/q.X" failed. 1>&2
935 errors=`expr $errors + 1`;;
936 esac
938 test -s q.E || rm -f q.E
939 $xx -d '[:alnum:]' < $srcdir/q.I > q.O 2> q.E
940 code=$?
941 if test $code != 0; then
942 $echo "Test q(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
943 errors=`expr $errors + 1`
944 else
945 cmp q.O $srcdir/q.X > /dev/null 2>&1
946 case $? in
947 0) if test "$VERBOSE"; then $echo "passed q(<)"; fi;;
948 1) $echo "Test q(<) failed: files q.O and $srcdir/q.X differ" 1>&2
949 (diff -c q.O $srcdir/q.X) 2> /dev/null
950 errors=`expr $errors + 1`;;
951 2) $echo "Test q(<) may have failed." 1>&2
952 $echo The command "cmp q.O $srcdir/q.X" failed. 1>&2
953 errors=`expr $errors + 1`;;
954 esac
956 test -s q.E || rm -f q.E
957 cat $srcdir/r.I | $xx -ds '[:alnum:]' '.' > r.O 2> r.E
958 code=$?
959 if test $code != 0; then
960 $echo "Test r(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
961 errors=`expr $errors + 1`
962 else
963 cmp r.O $srcdir/r.X > /dev/null 2>&1
964 case $? in
965 0) if test "$VERBOSE"; then $echo "passed r(|)"; fi;;
966 1) $echo "Test r(|) failed: files r.O and $srcdir/r.X differ" 1>&2
967 (diff -c r.O $srcdir/r.X) 2> /dev/null
968 errors=`expr $errors + 1`;;
969 2) $echo "Test r(|) may have failed." 1>&2
970 $echo The command "cmp r.O $srcdir/r.X" failed. 1>&2
971 errors=`expr $errors + 1`;;
972 esac
974 test -s r.E || rm -f r.E
975 $xx -ds '[:alnum:]' '.' < $srcdir/r.I > r.O 2> r.E
976 code=$?
977 if test $code != 0; then
978 $echo "Test r(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
979 errors=`expr $errors + 1`
980 else
981 cmp r.O $srcdir/r.X > /dev/null 2>&1
982 case $? in
983 0) if test "$VERBOSE"; then $echo "passed r(<)"; fi;;
984 1) $echo "Test r(<) failed: files r.O and $srcdir/r.X differ" 1>&2
985 (diff -c r.O $srcdir/r.X) 2> /dev/null
986 errors=`expr $errors + 1`;;
987 2) $echo "Test r(<) may have failed." 1>&2
988 $echo The command "cmp r.O $srcdir/r.X" failed. 1>&2
989 errors=`expr $errors + 1`;;
990 esac
992 test -s r.E || rm -f r.E
993 cat $srcdir/s.I | $xx -cs '[:alnum:]' '\n' > s.O 2> s.E
994 code=$?
995 if test $code != 0; then
996 $echo "Test s(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
997 errors=`expr $errors + 1`
998 else
999 cmp s.O $srcdir/s.X > /dev/null 2>&1
1000 case $? in
1001 0) if test "$VERBOSE"; then $echo "passed s(|)"; fi;;
1002 1) $echo "Test s(|) failed: files s.O and $srcdir/s.X differ" 1>&2
1003 (diff -c s.O $srcdir/s.X) 2> /dev/null
1004 errors=`expr $errors + 1`;;
1005 2) $echo "Test s(|) may have failed." 1>&2
1006 $echo The command "cmp s.O $srcdir/s.X" failed. 1>&2
1007 errors=`expr $errors + 1`;;
1008 esac
1010 test -s s.E || rm -f s.E
1011 $xx -cs '[:alnum:]' '\n' < $srcdir/s.I > s.O 2> s.E
1012 code=$?
1013 if test $code != 0; then
1014 $echo "Test s(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1015 errors=`expr $errors + 1`
1016 else
1017 cmp s.O $srcdir/s.X > /dev/null 2>&1
1018 case $? in
1019 0) if test "$VERBOSE"; then $echo "passed s(<)"; fi;;
1020 1) $echo "Test s(<) failed: files s.O and $srcdir/s.X differ" 1>&2
1021 (diff -c s.O $srcdir/s.X) 2> /dev/null
1022 errors=`expr $errors + 1`;;
1023 2) $echo "Test s(<) may have failed." 1>&2
1024 $echo The command "cmp s.O $srcdir/s.X" failed. 1>&2
1025 errors=`expr $errors + 1`;;
1026 esac
1028 test -s s.E || rm -f s.E
1029 cat $srcdir/t.I | $xx -cs '[:alnum:]' '[\n*]' > t.O 2> t.E
1030 code=$?
1031 if test $code != 0; then
1032 $echo "Test t(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1033 errors=`expr $errors + 1`
1034 else
1035 cmp t.O $srcdir/t.X > /dev/null 2>&1
1036 case $? in
1037 0) if test "$VERBOSE"; then $echo "passed t(|)"; fi;;
1038 1) $echo "Test t(|) failed: files t.O and $srcdir/t.X differ" 1>&2
1039 (diff -c t.O $srcdir/t.X) 2> /dev/null
1040 errors=`expr $errors + 1`;;
1041 2) $echo "Test t(|) may have failed." 1>&2
1042 $echo The command "cmp t.O $srcdir/t.X" failed. 1>&2
1043 errors=`expr $errors + 1`;;
1044 esac
1046 test -s t.E || rm -f t.E
1047 $xx -cs '[:alnum:]' '[\n*]' < $srcdir/t.I > t.O 2> t.E
1048 code=$?
1049 if test $code != 0; then
1050 $echo "Test t(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1051 errors=`expr $errors + 1`
1052 else
1053 cmp t.O $srcdir/t.X > /dev/null 2>&1
1054 case $? in
1055 0) if test "$VERBOSE"; then $echo "passed t(<)"; fi;;
1056 1) $echo "Test t(<) failed: files t.O and $srcdir/t.X differ" 1>&2
1057 (diff -c t.O $srcdir/t.X) 2> /dev/null
1058 errors=`expr $errors + 1`;;
1059 2) $echo "Test t(<) may have failed." 1>&2
1060 $echo The command "cmp t.O $srcdir/t.X" failed. 1>&2
1061 errors=`expr $errors + 1`;;
1062 esac
1064 test -s t.E || rm -f t.E
1065 cat $srcdir/u.I | $xx -ds 'b' 'a' > u.O 2> u.E
1066 code=$?
1067 if test $code != 0; then
1068 $echo "Test u(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1069 errors=`expr $errors + 1`
1070 else
1071 cmp u.O $srcdir/u.X > /dev/null 2>&1
1072 case $? in
1073 0) if test "$VERBOSE"; then $echo "passed u(|)"; fi;;
1074 1) $echo "Test u(|) failed: files u.O and $srcdir/u.X differ" 1>&2
1075 (diff -c u.O $srcdir/u.X) 2> /dev/null
1076 errors=`expr $errors + 1`;;
1077 2) $echo "Test u(|) may have failed." 1>&2
1078 $echo The command "cmp u.O $srcdir/u.X" failed. 1>&2
1079 errors=`expr $errors + 1`;;
1080 esac
1082 test -s u.E || rm -f u.E
1083 $xx -ds 'b' 'a' < $srcdir/u.I > u.O 2> u.E
1084 code=$?
1085 if test $code != 0; then
1086 $echo "Test u(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1087 errors=`expr $errors + 1`
1088 else
1089 cmp u.O $srcdir/u.X > /dev/null 2>&1
1090 case $? in
1091 0) if test "$VERBOSE"; then $echo "passed u(<)"; fi;;
1092 1) $echo "Test u(<) failed: files u.O and $srcdir/u.X differ" 1>&2
1093 (diff -c u.O $srcdir/u.X) 2> /dev/null
1094 errors=`expr $errors + 1`;;
1095 2) $echo "Test u(<) may have failed." 1>&2
1096 $echo The command "cmp u.O $srcdir/u.X" failed. 1>&2
1097 errors=`expr $errors + 1`;;
1098 esac
1100 test -s u.E || rm -f u.E
1101 cat $srcdir/v.I | $xx -ds '[:xdigit:]' 'Z' > v.O 2> v.E
1102 code=$?
1103 if test $code != 0; then
1104 $echo "Test v(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1105 errors=`expr $errors + 1`
1106 else
1107 cmp v.O $srcdir/v.X > /dev/null 2>&1
1108 case $? in
1109 0) if test "$VERBOSE"; then $echo "passed v(|)"; fi;;
1110 1) $echo "Test v(|) failed: files v.O and $srcdir/v.X differ" 1>&2
1111 (diff -c v.O $srcdir/v.X) 2> /dev/null
1112 errors=`expr $errors + 1`;;
1113 2) $echo "Test v(|) may have failed." 1>&2
1114 $echo The command "cmp v.O $srcdir/v.X" failed. 1>&2
1115 errors=`expr $errors + 1`;;
1116 esac
1118 test -s v.E || rm -f v.E
1119 $xx -ds '[:xdigit:]' 'Z' < $srcdir/v.I > v.O 2> v.E
1120 code=$?
1121 if test $code != 0; then
1122 $echo "Test v(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1123 errors=`expr $errors + 1`
1124 else
1125 cmp v.O $srcdir/v.X > /dev/null 2>&1
1126 case $? in
1127 0) if test "$VERBOSE"; then $echo "passed v(<)"; fi;;
1128 1) $echo "Test v(<) failed: files v.O and $srcdir/v.X differ" 1>&2
1129 (diff -c v.O $srcdir/v.X) 2> /dev/null
1130 errors=`expr $errors + 1`;;
1131 2) $echo "Test v(<) may have failed." 1>&2
1132 $echo The command "cmp v.O $srcdir/v.X" failed. 1>&2
1133 errors=`expr $errors + 1`;;
1134 esac
1136 test -s v.E || rm -f v.E
1137 cat $srcdir/w.I | $xx -ds '\350' '\345' > w.O 2> w.E
1138 code=$?
1139 if test $code != 0; then
1140 $echo "Test w(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1141 errors=`expr $errors + 1`
1142 else
1143 cmp w.O $srcdir/w.X > /dev/null 2>&1
1144 case $? in
1145 0) if test "$VERBOSE"; then $echo "passed w(|)"; fi;;
1146 1) $echo "Test w(|) failed: files w.O and $srcdir/w.X differ" 1>&2
1147 (diff -c w.O $srcdir/w.X) 2> /dev/null
1148 errors=`expr $errors + 1`;;
1149 2) $echo "Test w(|) may have failed." 1>&2
1150 $echo The command "cmp w.O $srcdir/w.X" failed. 1>&2
1151 errors=`expr $errors + 1`;;
1152 esac
1154 test -s w.E || rm -f w.E
1155 $xx -ds '\350' '\345' < $srcdir/w.I > w.O 2> w.E
1156 code=$?
1157 if test $code != 0; then
1158 $echo "Test w(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1159 errors=`expr $errors + 1`
1160 else
1161 cmp w.O $srcdir/w.X > /dev/null 2>&1
1162 case $? in
1163 0) if test "$VERBOSE"; then $echo "passed w(<)"; fi;;
1164 1) $echo "Test w(<) failed: files w.O and $srcdir/w.X differ" 1>&2
1165 (diff -c w.O $srcdir/w.X) 2> /dev/null
1166 errors=`expr $errors + 1`;;
1167 2) $echo "Test w(<) may have failed." 1>&2
1168 $echo The command "cmp w.O $srcdir/w.X" failed. 1>&2
1169 errors=`expr $errors + 1`;;
1170 esac
1172 test -s w.E || rm -f w.E
1173 cat $srcdir/x.I | $xx -s 'abcdefghijklmn' '[:*016]' > x.O 2> x.E
1174 code=$?
1175 if test $code != 0; then
1176 $echo "Test x(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1177 errors=`expr $errors + 1`
1178 else
1179 cmp x.O $srcdir/x.X > /dev/null 2>&1
1180 case $? in
1181 0) if test "$VERBOSE"; then $echo "passed x(|)"; fi;;
1182 1) $echo "Test x(|) failed: files x.O and $srcdir/x.X differ" 1>&2
1183 (diff -c x.O $srcdir/x.X) 2> /dev/null
1184 errors=`expr $errors + 1`;;
1185 2) $echo "Test x(|) may have failed." 1>&2
1186 $echo The command "cmp x.O $srcdir/x.X" failed. 1>&2
1187 errors=`expr $errors + 1`;;
1188 esac
1190 test -s x.E || rm -f x.E
1191 $xx -s 'abcdefghijklmn' '[:*016]' < $srcdir/x.I > x.O 2> x.E
1192 code=$?
1193 if test $code != 0; then
1194 $echo "Test x(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1195 errors=`expr $errors + 1`
1196 else
1197 cmp x.O $srcdir/x.X > /dev/null 2>&1
1198 case $? in
1199 0) if test "$VERBOSE"; then $echo "passed x(<)"; fi;;
1200 1) $echo "Test x(<) failed: files x.O and $srcdir/x.X differ" 1>&2
1201 (diff -c x.O $srcdir/x.X) 2> /dev/null
1202 errors=`expr $errors + 1`;;
1203 2) $echo "Test x(<) may have failed." 1>&2
1204 $echo The command "cmp x.O $srcdir/x.X" failed. 1>&2
1205 errors=`expr $errors + 1`;;
1206 esac
1208 test -s x.E || rm -f x.E
1209 cat $srcdir/y.I | $xx -d 'a-z' > y.O 2> y.E
1210 code=$?
1211 if test $code != 0; then
1212 $echo "Test y(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1213 errors=`expr $errors + 1`
1214 else
1215 cmp y.O $srcdir/y.X > /dev/null 2>&1
1216 case $? in
1217 0) if test "$VERBOSE"; then $echo "passed y(|)"; fi;;
1218 1) $echo "Test y(|) failed: files y.O and $srcdir/y.X differ" 1>&2
1219 (diff -c y.O $srcdir/y.X) 2> /dev/null
1220 errors=`expr $errors + 1`;;
1221 2) $echo "Test y(|) may have failed." 1>&2
1222 $echo The command "cmp y.O $srcdir/y.X" failed. 1>&2
1223 errors=`expr $errors + 1`;;
1224 esac
1226 test -s y.E || rm -f y.E
1227 $xx -d 'a-z' < $srcdir/y.I > y.O 2> y.E
1228 code=$?
1229 if test $code != 0; then
1230 $echo "Test y(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1231 errors=`expr $errors + 1`
1232 else
1233 cmp y.O $srcdir/y.X > /dev/null 2>&1
1234 case $? in
1235 0) if test "$VERBOSE"; then $echo "passed y(<)"; fi;;
1236 1) $echo "Test y(<) failed: files y.O and $srcdir/y.X differ" 1>&2
1237 (diff -c y.O $srcdir/y.X) 2> /dev/null
1238 errors=`expr $errors + 1`;;
1239 2) $echo "Test y(<) may have failed." 1>&2
1240 $echo The command "cmp y.O $srcdir/y.X" failed. 1>&2
1241 errors=`expr $errors + 1`;;
1242 esac
1244 test -s y.E || rm -f y.E
1245 cat $srcdir/z.I | $xx -ds 'a-z' '$.' > z.O 2> z.E
1246 code=$?
1247 if test $code != 0; then
1248 $echo "Test z(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1249 errors=`expr $errors + 1`
1250 else
1251 cmp z.O $srcdir/z.X > /dev/null 2>&1
1252 case $? in
1253 0) if test "$VERBOSE"; then $echo "passed z(|)"; fi;;
1254 1) $echo "Test z(|) failed: files z.O and $srcdir/z.X differ" 1>&2
1255 (diff -c z.O $srcdir/z.X) 2> /dev/null
1256 errors=`expr $errors + 1`;;
1257 2) $echo "Test z(|) may have failed." 1>&2
1258 $echo The command "cmp z.O $srcdir/z.X" failed. 1>&2
1259 errors=`expr $errors + 1`;;
1260 esac
1262 test -s z.E || rm -f z.E
1263 $xx -ds 'a-z' '$.' < $srcdir/z.I > z.O 2> z.E
1264 code=$?
1265 if test $code != 0; then
1266 $echo "Test z(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1267 errors=`expr $errors + 1`
1268 else
1269 cmp z.O $srcdir/z.X > /dev/null 2>&1
1270 case $? in
1271 0) if test "$VERBOSE"; then $echo "passed z(<)"; fi;;
1272 1) $echo "Test z(<) failed: files z.O and $srcdir/z.X differ" 1>&2
1273 (diff -c z.O $srcdir/z.X) 2> /dev/null
1274 errors=`expr $errors + 1`;;
1275 2) $echo "Test z(<) may have failed." 1>&2
1276 $echo The command "cmp z.O $srcdir/z.X" failed. 1>&2
1277 errors=`expr $errors + 1`;;
1278 esac
1280 test -s z.E || rm -f z.E
1281 cat $srcdir/range-a-a.I | $xx 'a-a' 'z' > range-a-a.O 2> range-a-a.E
1282 code=$?
1283 if test $code != 0; then
1284 $echo "Test range-a-a(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1285 errors=`expr $errors + 1`
1286 else
1287 cmp range-a-a.O $srcdir/range-a-a.X > /dev/null 2>&1
1288 case $? in
1289 0) if test "$VERBOSE"; then $echo "passed range-a-a(|)"; fi;;
1290 1) $echo "Test range-a-a(|) failed: files range-a-a.O and $srcdir/range-a-a.X differ" 1>&2
1291 (diff -c range-a-a.O $srcdir/range-a-a.X) 2> /dev/null
1292 errors=`expr $errors + 1`;;
1293 2) $echo "Test range-a-a(|) may have failed." 1>&2
1294 $echo The command "cmp range-a-a.O $srcdir/range-a-a.X" failed. 1>&2
1295 errors=`expr $errors + 1`;;
1296 esac
1298 test -s range-a-a.E || rm -f range-a-a.E
1299 $xx 'a-a' 'z' < $srcdir/range-a-a.I > range-a-a.O 2> range-a-a.E
1300 code=$?
1301 if test $code != 0; then
1302 $echo "Test range-a-a(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1303 errors=`expr $errors + 1`
1304 else
1305 cmp range-a-a.O $srcdir/range-a-a.X > /dev/null 2>&1
1306 case $? in
1307 0) if test "$VERBOSE"; then $echo "passed range-a-a(<)"; fi;;
1308 1) $echo "Test range-a-a(<) failed: files range-a-a.O and $srcdir/range-a-a.X differ" 1>&2
1309 (diff -c range-a-a.O $srcdir/range-a-a.X) 2> /dev/null
1310 errors=`expr $errors + 1`;;
1311 2) $echo "Test range-a-a(<) may have failed." 1>&2
1312 $echo The command "cmp range-a-a.O $srcdir/range-a-a.X" failed. 1>&2
1313 errors=`expr $errors + 1`;;
1314 esac
1316 test -s range-a-a.E || rm -f range-a-a.E
1317 cat $srcdir/null.I | $xx 'a' '''' > null.O 2> null.E
1318 code=$?
1319 if test $code != 1; then
1320 $echo "Test null(|) failed: ../../src/tr return code $code differs from expected value 1" 1>&2
1321 errors=`expr $errors + 1`
1322 else
1323 cmp null.O $srcdir/null.X > /dev/null 2>&1
1324 case $? in
1325 0) if test "$VERBOSE"; then $echo "passed null(|)"; fi;;
1326 1) $echo "Test null(|) failed: files null.O and $srcdir/null.X differ" 1>&2
1327 (diff -c null.O $srcdir/null.X) 2> /dev/null
1328 errors=`expr $errors + 1`;;
1329 2) $echo "Test null(|) may have failed." 1>&2
1330 $echo The command "cmp null.O $srcdir/null.X" failed. 1>&2
1331 errors=`expr $errors + 1`;;
1332 esac
1334 test -s null.E || rm -f null.E
1335 $xx 'a' '''' < $srcdir/null.I > null.O 2> null.E
1336 code=$?
1337 if test $code != 1; then
1338 $echo "Test null(<) failed: ../../src/tr return code $code differs from expected value 1" 1>&2
1339 errors=`expr $errors + 1`
1340 else
1341 cmp null.O $srcdir/null.X > /dev/null 2>&1
1342 case $? in
1343 0) if test "$VERBOSE"; then $echo "passed null(<)"; fi;;
1344 1) $echo "Test null(<) failed: files null.O and $srcdir/null.X differ" 1>&2
1345 (diff -c null.O $srcdir/null.X) 2> /dev/null
1346 errors=`expr $errors + 1`;;
1347 2) $echo "Test null(<) may have failed." 1>&2
1348 $echo The command "cmp null.O $srcdir/null.X" failed. 1>&2
1349 errors=`expr $errors + 1`;;
1350 esac
1352 test -s null.E || rm -f null.E
1353 cat $srcdir/upcase.I | $xx '[:lower:]' '[:upper:]' > upcase.O 2> upcase.E
1354 code=$?
1355 if test $code != 0; then
1356 $echo "Test upcase(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1357 errors=`expr $errors + 1`
1358 else
1359 cmp upcase.O $srcdir/upcase.X > /dev/null 2>&1
1360 case $? in
1361 0) if test "$VERBOSE"; then $echo "passed upcase(|)"; fi;;
1362 1) $echo "Test upcase(|) failed: files upcase.O and $srcdir/upcase.X differ" 1>&2
1363 (diff -c upcase.O $srcdir/upcase.X) 2> /dev/null
1364 errors=`expr $errors + 1`;;
1365 2) $echo "Test upcase(|) may have failed." 1>&2
1366 $echo The command "cmp upcase.O $srcdir/upcase.X" failed. 1>&2
1367 errors=`expr $errors + 1`;;
1368 esac
1370 test -s upcase.E || rm -f upcase.E
1371 $xx '[:lower:]' '[:upper:]' < $srcdir/upcase.I > upcase.O 2> upcase.E
1372 code=$?
1373 if test $code != 0; then
1374 $echo "Test upcase(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1375 errors=`expr $errors + 1`
1376 else
1377 cmp upcase.O $srcdir/upcase.X > /dev/null 2>&1
1378 case $? in
1379 0) if test "$VERBOSE"; then $echo "passed upcase(<)"; fi;;
1380 1) $echo "Test upcase(<) failed: files upcase.O and $srcdir/upcase.X differ" 1>&2
1381 (diff -c upcase.O $srcdir/upcase.X) 2> /dev/null
1382 errors=`expr $errors + 1`;;
1383 2) $echo "Test upcase(<) may have failed." 1>&2
1384 $echo The command "cmp upcase.O $srcdir/upcase.X" failed. 1>&2
1385 errors=`expr $errors + 1`;;
1386 esac
1388 test -s upcase.E || rm -f upcase.E
1389 cat $srcdir/dncase.I | $xx '[:upper:]' '[:lower:]' > dncase.O 2> dncase.E
1390 code=$?
1391 if test $code != 0; then
1392 $echo "Test dncase(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1393 errors=`expr $errors + 1`
1394 else
1395 cmp dncase.O $srcdir/dncase.X > /dev/null 2>&1
1396 case $? in
1397 0) if test "$VERBOSE"; then $echo "passed dncase(|)"; fi;;
1398 1) $echo "Test dncase(|) failed: files dncase.O and $srcdir/dncase.X differ" 1>&2
1399 (diff -c dncase.O $srcdir/dncase.X) 2> /dev/null
1400 errors=`expr $errors + 1`;;
1401 2) $echo "Test dncase(|) may have failed." 1>&2
1402 $echo The command "cmp dncase.O $srcdir/dncase.X" failed. 1>&2
1403 errors=`expr $errors + 1`;;
1404 esac
1406 test -s dncase.E || rm -f dncase.E
1407 $xx '[:upper:]' '[:lower:]' < $srcdir/dncase.I > dncase.O 2> dncase.E
1408 code=$?
1409 if test $code != 0; then
1410 $echo "Test dncase(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1411 errors=`expr $errors + 1`
1412 else
1413 cmp dncase.O $srcdir/dncase.X > /dev/null 2>&1
1414 case $? in
1415 0) if test "$VERBOSE"; then $echo "passed dncase(<)"; fi;;
1416 1) $echo "Test dncase(<) failed: files dncase.O and $srcdir/dncase.X differ" 1>&2
1417 (diff -c dncase.O $srcdir/dncase.X) 2> /dev/null
1418 errors=`expr $errors + 1`;;
1419 2) $echo "Test dncase(<) may have failed." 1>&2
1420 $echo The command "cmp dncase.O $srcdir/dncase.X" failed. 1>&2
1421 errors=`expr $errors + 1`;;
1422 esac
1424 test -s dncase.E || rm -f dncase.E
1425 cat $srcdir/rep-cclass.I | $xx 'a[=*2][=c=]' 'xyyz' > rep-cclass.O 2> rep-cclass.E
1426 code=$?
1427 if test $code != 0; then
1428 $echo "Test rep-cclass(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1429 errors=`expr $errors + 1`
1430 else
1431 cmp rep-cclass.O $srcdir/rep-cclass.X > /dev/null 2>&1
1432 case $? in
1433 0) if test "$VERBOSE"; then $echo "passed rep-cclass(|)"; fi;;
1434 1) $echo "Test rep-cclass(|) failed: files rep-cclass.O and $srcdir/rep-cclass.X differ" 1>&2
1435 (diff -c rep-cclass.O $srcdir/rep-cclass.X) 2> /dev/null
1436 errors=`expr $errors + 1`;;
1437 2) $echo "Test rep-cclass(|) may have failed." 1>&2
1438 $echo The command "cmp rep-cclass.O $srcdir/rep-cclass.X" failed. 1>&2
1439 errors=`expr $errors + 1`;;
1440 esac
1442 test -s rep-cclass.E || rm -f rep-cclass.E
1443 $xx 'a[=*2][=c=]' 'xyyz' < $srcdir/rep-cclass.I > rep-cclass.O 2> rep-cclass.E
1444 code=$?
1445 if test $code != 0; then
1446 $echo "Test rep-cclass(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1447 errors=`expr $errors + 1`
1448 else
1449 cmp rep-cclass.O $srcdir/rep-cclass.X > /dev/null 2>&1
1450 case $? in
1451 0) if test "$VERBOSE"; then $echo "passed rep-cclass(<)"; fi;;
1452 1) $echo "Test rep-cclass(<) failed: files rep-cclass.O and $srcdir/rep-cclass.X differ" 1>&2
1453 (diff -c rep-cclass.O $srcdir/rep-cclass.X) 2> /dev/null
1454 errors=`expr $errors + 1`;;
1455 2) $echo "Test rep-cclass(<) may have failed." 1>&2
1456 $echo The command "cmp rep-cclass.O $srcdir/rep-cclass.X" failed. 1>&2
1457 errors=`expr $errors + 1`;;
1458 esac
1460 test -s rep-cclass.E || rm -f rep-cclass.E
1461 cat $srcdir/rep-1.I | $xx '[:*3][:digit:]' 'a-m' > rep-1.O 2> rep-1.E
1462 code=$?
1463 if test $code != 0; then
1464 $echo "Test rep-1(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1465 errors=`expr $errors + 1`
1466 else
1467 cmp rep-1.O $srcdir/rep-1.X > /dev/null 2>&1
1468 case $? in
1469 0) if test "$VERBOSE"; then $echo "passed rep-1(|)"; fi;;
1470 1) $echo "Test rep-1(|) failed: files rep-1.O and $srcdir/rep-1.X differ" 1>&2
1471 (diff -c rep-1.O $srcdir/rep-1.X) 2> /dev/null
1472 errors=`expr $errors + 1`;;
1473 2) $echo "Test rep-1(|) may have failed." 1>&2
1474 $echo The command "cmp rep-1.O $srcdir/rep-1.X" failed. 1>&2
1475 errors=`expr $errors + 1`;;
1476 esac
1478 test -s rep-1.E || rm -f rep-1.E
1479 $xx '[:*3][:digit:]' 'a-m' < $srcdir/rep-1.I > rep-1.O 2> rep-1.E
1480 code=$?
1481 if test $code != 0; then
1482 $echo "Test rep-1(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1483 errors=`expr $errors + 1`
1484 else
1485 cmp rep-1.O $srcdir/rep-1.X > /dev/null 2>&1
1486 case $? in
1487 0) if test "$VERBOSE"; then $echo "passed rep-1(<)"; fi;;
1488 1) $echo "Test rep-1(<) failed: files rep-1.O and $srcdir/rep-1.X differ" 1>&2
1489 (diff -c rep-1.O $srcdir/rep-1.X) 2> /dev/null
1490 errors=`expr $errors + 1`;;
1491 2) $echo "Test rep-1(<) may have failed." 1>&2
1492 $echo The command "cmp rep-1.O $srcdir/rep-1.X" failed. 1>&2
1493 errors=`expr $errors + 1`;;
1494 esac
1496 test -s rep-1.E || rm -f rep-1.E
1497 cat $srcdir/rep-2.I | $xx 'a[b*512]c' '1[x*]2' > rep-2.O 2> rep-2.E
1498 code=$?
1499 if test $code != 0; then
1500 $echo "Test rep-2(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1501 errors=`expr $errors + 1`
1502 else
1503 cmp rep-2.O $srcdir/rep-2.X > /dev/null 2>&1
1504 case $? in
1505 0) if test "$VERBOSE"; then $echo "passed rep-2(|)"; fi;;
1506 1) $echo "Test rep-2(|) failed: files rep-2.O and $srcdir/rep-2.X differ" 1>&2
1507 (diff -c rep-2.O $srcdir/rep-2.X) 2> /dev/null
1508 errors=`expr $errors + 1`;;
1509 2) $echo "Test rep-2(|) may have failed." 1>&2
1510 $echo The command "cmp rep-2.O $srcdir/rep-2.X" failed. 1>&2
1511 errors=`expr $errors + 1`;;
1512 esac
1514 test -s rep-2.E || rm -f rep-2.E
1515 $xx 'a[b*512]c' '1[x*]2' < $srcdir/rep-2.I > rep-2.O 2> rep-2.E
1516 code=$?
1517 if test $code != 0; then
1518 $echo "Test rep-2(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1519 errors=`expr $errors + 1`
1520 else
1521 cmp rep-2.O $srcdir/rep-2.X > /dev/null 2>&1
1522 case $? in
1523 0) if test "$VERBOSE"; then $echo "passed rep-2(<)"; fi;;
1524 1) $echo "Test rep-2(<) failed: files rep-2.O and $srcdir/rep-2.X differ" 1>&2
1525 (diff -c rep-2.O $srcdir/rep-2.X) 2> /dev/null
1526 errors=`expr $errors + 1`;;
1527 2) $echo "Test rep-2(<) may have failed." 1>&2
1528 $echo The command "cmp rep-2.O $srcdir/rep-2.X" failed. 1>&2
1529 errors=`expr $errors + 1`;;
1530 esac
1532 test -s rep-2.E || rm -f rep-2.E
1533 cat $srcdir/rep-3.I | $xx 'a[b*513]c' '1[x*]2' > rep-3.O 2> rep-3.E
1534 code=$?
1535 if test $code != 0; then
1536 $echo "Test rep-3(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1537 errors=`expr $errors + 1`
1538 else
1539 cmp rep-3.O $srcdir/rep-3.X > /dev/null 2>&1
1540 case $? in
1541 0) if test "$VERBOSE"; then $echo "passed rep-3(|)"; fi;;
1542 1) $echo "Test rep-3(|) failed: files rep-3.O and $srcdir/rep-3.X differ" 1>&2
1543 (diff -c rep-3.O $srcdir/rep-3.X) 2> /dev/null
1544 errors=`expr $errors + 1`;;
1545 2) $echo "Test rep-3(|) may have failed." 1>&2
1546 $echo The command "cmp rep-3.O $srcdir/rep-3.X" failed. 1>&2
1547 errors=`expr $errors + 1`;;
1548 esac
1550 test -s rep-3.E || rm -f rep-3.E
1551 $xx 'a[b*513]c' '1[x*]2' < $srcdir/rep-3.I > rep-3.O 2> rep-3.E
1552 code=$?
1553 if test $code != 0; then
1554 $echo "Test rep-3(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1555 errors=`expr $errors + 1`
1556 else
1557 cmp rep-3.O $srcdir/rep-3.X > /dev/null 2>&1
1558 case $? in
1559 0) if test "$VERBOSE"; then $echo "passed rep-3(<)"; fi;;
1560 1) $echo "Test rep-3(<) failed: files rep-3.O and $srcdir/rep-3.X differ" 1>&2
1561 (diff -c rep-3.O $srcdir/rep-3.X) 2> /dev/null
1562 errors=`expr $errors + 1`;;
1563 2) $echo "Test rep-3(<) may have failed." 1>&2
1564 $echo The command "cmp rep-3.O $srcdir/rep-3.X" failed. 1>&2
1565 errors=`expr $errors + 1`;;
1566 esac
1568 test -s rep-3.E || rm -f rep-3.E
1569 cat $srcdir/o-rep-1.I | $xx '[b*08]' '[x*]' > o-rep-1.O 2> o-rep-1.E
1570 code=$?
1571 if test $code != 1; then
1572 $echo "Test o-rep-1(|) failed: ../../src/tr return code $code differs from expected value 1" 1>&2
1573 errors=`expr $errors + 1`
1574 else
1575 cmp o-rep-1.O $srcdir/o-rep-1.X > /dev/null 2>&1
1576 case $? in
1577 0) if test "$VERBOSE"; then $echo "passed o-rep-1(|)"; fi;;
1578 1) $echo "Test o-rep-1(|) failed: files o-rep-1.O and $srcdir/o-rep-1.X differ" 1>&2
1579 (diff -c o-rep-1.O $srcdir/o-rep-1.X) 2> /dev/null
1580 errors=`expr $errors + 1`;;
1581 2) $echo "Test o-rep-1(|) may have failed." 1>&2
1582 $echo The command "cmp o-rep-1.O $srcdir/o-rep-1.X" failed. 1>&2
1583 errors=`expr $errors + 1`;;
1584 esac
1586 test -s o-rep-1.E || rm -f o-rep-1.E
1587 $xx '[b*08]' '[x*]' < $srcdir/o-rep-1.I > o-rep-1.O 2> o-rep-1.E
1588 code=$?
1589 if test $code != 1; then
1590 $echo "Test o-rep-1(<) failed: ../../src/tr return code $code differs from expected value 1" 1>&2
1591 errors=`expr $errors + 1`
1592 else
1593 cmp o-rep-1.O $srcdir/o-rep-1.X > /dev/null 2>&1
1594 case $? in
1595 0) if test "$VERBOSE"; then $echo "passed o-rep-1(<)"; fi;;
1596 1) $echo "Test o-rep-1(<) failed: files o-rep-1.O and $srcdir/o-rep-1.X differ" 1>&2
1597 (diff -c o-rep-1.O $srcdir/o-rep-1.X) 2> /dev/null
1598 errors=`expr $errors + 1`;;
1599 2) $echo "Test o-rep-1(<) may have failed." 1>&2
1600 $echo The command "cmp o-rep-1.O $srcdir/o-rep-1.X" failed. 1>&2
1601 errors=`expr $errors + 1`;;
1602 esac
1604 test -s o-rep-1.E || rm -f o-rep-1.E
1605 cat $srcdir/o-rep-2.I | $xx '[b*010]cd' '[a*7]BC[x*]' > o-rep-2.O 2> o-rep-2.E
1606 code=$?
1607 if test $code != 0; then
1608 $echo "Test o-rep-2(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1609 errors=`expr $errors + 1`
1610 else
1611 cmp o-rep-2.O $srcdir/o-rep-2.X > /dev/null 2>&1
1612 case $? in
1613 0) if test "$VERBOSE"; then $echo "passed o-rep-2(|)"; fi;;
1614 1) $echo "Test o-rep-2(|) failed: files o-rep-2.O and $srcdir/o-rep-2.X differ" 1>&2
1615 (diff -c o-rep-2.O $srcdir/o-rep-2.X) 2> /dev/null
1616 errors=`expr $errors + 1`;;
1617 2) $echo "Test o-rep-2(|) may have failed." 1>&2
1618 $echo The command "cmp o-rep-2.O $srcdir/o-rep-2.X" failed. 1>&2
1619 errors=`expr $errors + 1`;;
1620 esac
1622 test -s o-rep-2.E || rm -f o-rep-2.E
1623 $xx '[b*010]cd' '[a*7]BC[x*]' < $srcdir/o-rep-2.I > o-rep-2.O 2> o-rep-2.E
1624 code=$?
1625 if test $code != 0; then
1626 $echo "Test o-rep-2(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1627 errors=`expr $errors + 1`
1628 else
1629 cmp o-rep-2.O $srcdir/o-rep-2.X > /dev/null 2>&1
1630 case $? in
1631 0) if test "$VERBOSE"; then $echo "passed o-rep-2(<)"; fi;;
1632 1) $echo "Test o-rep-2(<) failed: files o-rep-2.O and $srcdir/o-rep-2.X differ" 1>&2
1633 (diff -c o-rep-2.O $srcdir/o-rep-2.X) 2> /dev/null
1634 errors=`expr $errors + 1`;;
1635 2) $echo "Test o-rep-2(<) may have failed." 1>&2
1636 $echo The command "cmp o-rep-2.O $srcdir/o-rep-2.X" failed. 1>&2
1637 errors=`expr $errors + 1`;;
1638 esac
1640 test -s o-rep-2.E || rm -f o-rep-2.E
1641 cat $srcdir/esc.I | $xx 'a\-z' 'A-Z' > esc.O 2> esc.E
1642 code=$?
1643 if test $code != 0; then
1644 $echo "Test esc(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1645 errors=`expr $errors + 1`
1646 else
1647 cmp esc.O $srcdir/esc.X > /dev/null 2>&1
1648 case $? in
1649 0) if test "$VERBOSE"; then $echo "passed esc(|)"; fi;;
1650 1) $echo "Test esc(|) failed: files esc.O and $srcdir/esc.X differ" 1>&2
1651 (diff -c esc.O $srcdir/esc.X) 2> /dev/null
1652 errors=`expr $errors + 1`;;
1653 2) $echo "Test esc(|) may have failed." 1>&2
1654 $echo The command "cmp esc.O $srcdir/esc.X" failed. 1>&2
1655 errors=`expr $errors + 1`;;
1656 esac
1658 test -s esc.E || rm -f esc.E
1659 $xx 'a\-z' 'A-Z' < $srcdir/esc.I > esc.O 2> esc.E
1660 code=$?
1661 if test $code != 0; then
1662 $echo "Test esc(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1663 errors=`expr $errors + 1`
1664 else
1665 cmp esc.O $srcdir/esc.X > /dev/null 2>&1
1666 case $? in
1667 0) if test "$VERBOSE"; then $echo "passed esc(<)"; fi;;
1668 1) $echo "Test esc(<) failed: files esc.O and $srcdir/esc.X differ" 1>&2
1669 (diff -c esc.O $srcdir/esc.X) 2> /dev/null
1670 errors=`expr $errors + 1`;;
1671 2) $echo "Test esc(<) may have failed." 1>&2
1672 $echo The command "cmp esc.O $srcdir/esc.X" failed. 1>&2
1673 errors=`expr $errors + 1`;;
1674 esac
1676 test -s esc.E || rm -f esc.E
1677 cat $srcdir/ross-0a.I | $xx -cs '[:upper:]' 'X[Y*]' > ross-0a.O 2> ross-0a.E
1678 code=$?
1679 if test $code != 1; then
1680 $echo "Test ross-0a(|) failed: ../../src/tr return code $code differs from expected value 1" 1>&2
1681 errors=`expr $errors + 1`
1682 else
1683 cmp ross-0a.O $srcdir/ross-0a.X > /dev/null 2>&1
1684 case $? in
1685 0) if test "$VERBOSE"; then $echo "passed ross-0a(|)"; fi;;
1686 1) $echo "Test ross-0a(|) failed: files ross-0a.O and $srcdir/ross-0a.X differ" 1>&2
1687 (diff -c ross-0a.O $srcdir/ross-0a.X) 2> /dev/null
1688 errors=`expr $errors + 1`;;
1689 2) $echo "Test ross-0a(|) may have failed." 1>&2
1690 $echo The command "cmp ross-0a.O $srcdir/ross-0a.X" failed. 1>&2
1691 errors=`expr $errors + 1`;;
1692 esac
1694 test -s ross-0a.E || rm -f ross-0a.E
1695 $xx -cs '[:upper:]' 'X[Y*]' < $srcdir/ross-0a.I > ross-0a.O 2> ross-0a.E
1696 code=$?
1697 if test $code != 1; then
1698 $echo "Test ross-0a(<) failed: ../../src/tr return code $code differs from expected value 1" 1>&2
1699 errors=`expr $errors + 1`
1700 else
1701 cmp ross-0a.O $srcdir/ross-0a.X > /dev/null 2>&1
1702 case $? in
1703 0) if test "$VERBOSE"; then $echo "passed ross-0a(<)"; fi;;
1704 1) $echo "Test ross-0a(<) failed: files ross-0a.O and $srcdir/ross-0a.X differ" 1>&2
1705 (diff -c ross-0a.O $srcdir/ross-0a.X) 2> /dev/null
1706 errors=`expr $errors + 1`;;
1707 2) $echo "Test ross-0a(<) may have failed." 1>&2
1708 $echo The command "cmp ross-0a.O $srcdir/ross-0a.X" failed. 1>&2
1709 errors=`expr $errors + 1`;;
1710 esac
1712 test -s ross-0a.E || rm -f ross-0a.E
1713 cat $srcdir/ross-0b.I | $xx -cs '[:cntrl:]' 'X[Y*]' > ross-0b.O 2> ross-0b.E
1714 code=$?
1715 if test $code != 1; then
1716 $echo "Test ross-0b(|) failed: ../../src/tr return code $code differs from expected value 1" 1>&2
1717 errors=`expr $errors + 1`
1718 else
1719 cmp ross-0b.O $srcdir/ross-0b.X > /dev/null 2>&1
1720 case $? in
1721 0) if test "$VERBOSE"; then $echo "passed ross-0b(|)"; fi;;
1722 1) $echo "Test ross-0b(|) failed: files ross-0b.O and $srcdir/ross-0b.X differ" 1>&2
1723 (diff -c ross-0b.O $srcdir/ross-0b.X) 2> /dev/null
1724 errors=`expr $errors + 1`;;
1725 2) $echo "Test ross-0b(|) may have failed." 1>&2
1726 $echo The command "cmp ross-0b.O $srcdir/ross-0b.X" failed. 1>&2
1727 errors=`expr $errors + 1`;;
1728 esac
1730 test -s ross-0b.E || rm -f ross-0b.E
1731 $xx -cs '[:cntrl:]' 'X[Y*]' < $srcdir/ross-0b.I > ross-0b.O 2> ross-0b.E
1732 code=$?
1733 if test $code != 1; then
1734 $echo "Test ross-0b(<) failed: ../../src/tr return code $code differs from expected value 1" 1>&2
1735 errors=`expr $errors + 1`
1736 else
1737 cmp ross-0b.O $srcdir/ross-0b.X > /dev/null 2>&1
1738 case $? in
1739 0) if test "$VERBOSE"; then $echo "passed ross-0b(<)"; fi;;
1740 1) $echo "Test ross-0b(<) failed: files ross-0b.O and $srcdir/ross-0b.X differ" 1>&2
1741 (diff -c ross-0b.O $srcdir/ross-0b.X) 2> /dev/null
1742 errors=`expr $errors + 1`;;
1743 2) $echo "Test ross-0b(<) may have failed." 1>&2
1744 $echo The command "cmp ross-0b.O $srcdir/ross-0b.X" failed. 1>&2
1745 errors=`expr $errors + 1`;;
1746 esac
1748 test -s ross-0b.E || rm -f ross-0b.E
1749 cat $srcdir/ross-1a.I | $xx -cs '[:upper:]' '[X*]' > ross-1a.O 2> ross-1a.E
1750 code=$?
1751 if test $code != 0; then
1752 $echo "Test ross-1a(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1753 errors=`expr $errors + 1`
1754 else
1755 cmp ross-1a.O $srcdir/ross-1a.X > /dev/null 2>&1
1756 case $? in
1757 0) if test "$VERBOSE"; then $echo "passed ross-1a(|)"; fi;;
1758 1) $echo "Test ross-1a(|) failed: files ross-1a.O and $srcdir/ross-1a.X differ" 1>&2
1759 (diff -c ross-1a.O $srcdir/ross-1a.X) 2> /dev/null
1760 errors=`expr $errors + 1`;;
1761 2) $echo "Test ross-1a(|) may have failed." 1>&2
1762 $echo The command "cmp ross-1a.O $srcdir/ross-1a.X" failed. 1>&2
1763 errors=`expr $errors + 1`;;
1764 esac
1766 test -s ross-1a.E || rm -f ross-1a.E
1767 $xx -cs '[:upper:]' '[X*]' < $srcdir/ross-1a.I > ross-1a.O 2> ross-1a.E
1768 code=$?
1769 if test $code != 0; then
1770 $echo "Test ross-1a(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1771 errors=`expr $errors + 1`
1772 else
1773 cmp ross-1a.O $srcdir/ross-1a.X > /dev/null 2>&1
1774 case $? in
1775 0) if test "$VERBOSE"; then $echo "passed ross-1a(<)"; fi;;
1776 1) $echo "Test ross-1a(<) failed: files ross-1a.O and $srcdir/ross-1a.X differ" 1>&2
1777 (diff -c ross-1a.O $srcdir/ross-1a.X) 2> /dev/null
1778 errors=`expr $errors + 1`;;
1779 2) $echo "Test ross-1a(<) may have failed." 1>&2
1780 $echo The command "cmp ross-1a.O $srcdir/ross-1a.X" failed. 1>&2
1781 errors=`expr $errors + 1`;;
1782 esac
1784 test -s ross-1a.E || rm -f ross-1a.E
1785 cat $srcdir/ross-1b.I | $xx -cs '[:upper:][:digit:]' '[Z*]' > ross-1b.O 2> ross-1b.E
1786 code=$?
1787 if test $code != 0; then
1788 $echo "Test ross-1b(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1789 errors=`expr $errors + 1`
1790 else
1791 cmp ross-1b.O $srcdir/ross-1b.X > /dev/null 2>&1
1792 case $? in
1793 0) if test "$VERBOSE"; then $echo "passed ross-1b(|)"; fi;;
1794 1) $echo "Test ross-1b(|) failed: files ross-1b.O and $srcdir/ross-1b.X differ" 1>&2
1795 (diff -c ross-1b.O $srcdir/ross-1b.X) 2> /dev/null
1796 errors=`expr $errors + 1`;;
1797 2) $echo "Test ross-1b(|) may have failed." 1>&2
1798 $echo The command "cmp ross-1b.O $srcdir/ross-1b.X" failed. 1>&2
1799 errors=`expr $errors + 1`;;
1800 esac
1802 test -s ross-1b.E || rm -f ross-1b.E
1803 $xx -cs '[:upper:][:digit:]' '[Z*]' < $srcdir/ross-1b.I > ross-1b.O 2> ross-1b.E
1804 code=$?
1805 if test $code != 0; then
1806 $echo "Test ross-1b(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1807 errors=`expr $errors + 1`
1808 else
1809 cmp ross-1b.O $srcdir/ross-1b.X > /dev/null 2>&1
1810 case $? in
1811 0) if test "$VERBOSE"; then $echo "passed ross-1b(<)"; fi;;
1812 1) $echo "Test ross-1b(<) failed: files ross-1b.O and $srcdir/ross-1b.X differ" 1>&2
1813 (diff -c ross-1b.O $srcdir/ross-1b.X) 2> /dev/null
1814 errors=`expr $errors + 1`;;
1815 2) $echo "Test ross-1b(<) may have failed." 1>&2
1816 $echo The command "cmp ross-1b.O $srcdir/ross-1b.X" failed. 1>&2
1817 errors=`expr $errors + 1`;;
1818 esac
1820 test -s ross-1b.E || rm -f ross-1b.E
1821 cat $srcdir/ross-2.I | $xx -dcs '[:lower:]' 'n-rs-z' > ross-2.O 2> ross-2.E
1822 code=$?
1823 if test $code != 0; then
1824 $echo "Test ross-2(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1825 errors=`expr $errors + 1`
1826 else
1827 cmp ross-2.O $srcdir/ross-2.X > /dev/null 2>&1
1828 case $? in
1829 0) if test "$VERBOSE"; then $echo "passed ross-2(|)"; fi;;
1830 1) $echo "Test ross-2(|) failed: files ross-2.O and $srcdir/ross-2.X differ" 1>&2
1831 (diff -c ross-2.O $srcdir/ross-2.X) 2> /dev/null
1832 errors=`expr $errors + 1`;;
1833 2) $echo "Test ross-2(|) may have failed." 1>&2
1834 $echo The command "cmp ross-2.O $srcdir/ross-2.X" failed. 1>&2
1835 errors=`expr $errors + 1`;;
1836 esac
1838 test -s ross-2.E || rm -f ross-2.E
1839 $xx -dcs '[:lower:]' 'n-rs-z' < $srcdir/ross-2.I > ross-2.O 2> ross-2.E
1840 code=$?
1841 if test $code != 0; then
1842 $echo "Test ross-2(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1843 errors=`expr $errors + 1`
1844 else
1845 cmp ross-2.O $srcdir/ross-2.X > /dev/null 2>&1
1846 case $? in
1847 0) if test "$VERBOSE"; then $echo "passed ross-2(<)"; fi;;
1848 1) $echo "Test ross-2(<) failed: files ross-2.O and $srcdir/ross-2.X differ" 1>&2
1849 (diff -c ross-2.O $srcdir/ross-2.X) 2> /dev/null
1850 errors=`expr $errors + 1`;;
1851 2) $echo "Test ross-2(<) may have failed." 1>&2
1852 $echo The command "cmp ross-2.O $srcdir/ross-2.X" failed. 1>&2
1853 errors=`expr $errors + 1`;;
1854 esac
1856 test -s ross-2.E || rm -f ross-2.E
1857 cat $srcdir/ross-3.I | $xx -ds '[:xdigit:]' '[:alnum:]' > ross-3.O 2> ross-3.E
1858 code=$?
1859 if test $code != 0; then
1860 $echo "Test ross-3(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1861 errors=`expr $errors + 1`
1862 else
1863 cmp ross-3.O $srcdir/ross-3.X > /dev/null 2>&1
1864 case $? in
1865 0) if test "$VERBOSE"; then $echo "passed ross-3(|)"; fi;;
1866 1) $echo "Test ross-3(|) failed: files ross-3.O and $srcdir/ross-3.X differ" 1>&2
1867 (diff -c ross-3.O $srcdir/ross-3.X) 2> /dev/null
1868 errors=`expr $errors + 1`;;
1869 2) $echo "Test ross-3(|) may have failed." 1>&2
1870 $echo The command "cmp ross-3.O $srcdir/ross-3.X" failed. 1>&2
1871 errors=`expr $errors + 1`;;
1872 esac
1874 test -s ross-3.E || rm -f ross-3.E
1875 $xx -ds '[:xdigit:]' '[:alnum:]' < $srcdir/ross-3.I > ross-3.O 2> ross-3.E
1876 code=$?
1877 if test $code != 0; then
1878 $echo "Test ross-3(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1879 errors=`expr $errors + 1`
1880 else
1881 cmp ross-3.O $srcdir/ross-3.X > /dev/null 2>&1
1882 case $? in
1883 0) if test "$VERBOSE"; then $echo "passed ross-3(<)"; fi;;
1884 1) $echo "Test ross-3(<) failed: files ross-3.O and $srcdir/ross-3.X differ" 1>&2
1885 (diff -c ross-3.O $srcdir/ross-3.X) 2> /dev/null
1886 errors=`expr $errors + 1`;;
1887 2) $echo "Test ross-3(<) may have failed." 1>&2
1888 $echo The command "cmp ross-3.O $srcdir/ross-3.X" failed. 1>&2
1889 errors=`expr $errors + 1`;;
1890 esac
1892 test -s ross-3.E || rm -f ross-3.E
1893 cat $srcdir/ross-4.I | $xx -dcs '[:alnum:]' '[:digit:]' > ross-4.O 2> ross-4.E
1894 code=$?
1895 if test $code != 0; then
1896 $echo "Test ross-4(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1897 errors=`expr $errors + 1`
1898 else
1899 cmp ross-4.O $srcdir/ross-4.X > /dev/null 2>&1
1900 case $? in
1901 0) if test "$VERBOSE"; then $echo "passed ross-4(|)"; fi;;
1902 1) $echo "Test ross-4(|) failed: files ross-4.O and $srcdir/ross-4.X differ" 1>&2
1903 (diff -c ross-4.O $srcdir/ross-4.X) 2> /dev/null
1904 errors=`expr $errors + 1`;;
1905 2) $echo "Test ross-4(|) may have failed." 1>&2
1906 $echo The command "cmp ross-4.O $srcdir/ross-4.X" failed. 1>&2
1907 errors=`expr $errors + 1`;;
1908 esac
1910 test -s ross-4.E || rm -f ross-4.E
1911 $xx -dcs '[:alnum:]' '[:digit:]' < $srcdir/ross-4.I > ross-4.O 2> ross-4.E
1912 code=$?
1913 if test $code != 0; then
1914 $echo "Test ross-4(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1915 errors=`expr $errors + 1`
1916 else
1917 cmp ross-4.O $srcdir/ross-4.X > /dev/null 2>&1
1918 case $? in
1919 0) if test "$VERBOSE"; then $echo "passed ross-4(<)"; fi;;
1920 1) $echo "Test ross-4(<) failed: files ross-4.O and $srcdir/ross-4.X differ" 1>&2
1921 (diff -c ross-4.O $srcdir/ross-4.X) 2> /dev/null
1922 errors=`expr $errors + 1`;;
1923 2) $echo "Test ross-4(<) may have failed." 1>&2
1924 $echo The command "cmp ross-4.O $srcdir/ross-4.X" failed. 1>&2
1925 errors=`expr $errors + 1`;;
1926 esac
1928 test -s ross-4.E || rm -f ross-4.E
1929 cat $srcdir/ross-5.I | $xx -dc '[:lower:]' > ross-5.O 2> ross-5.E
1930 code=$?
1931 if test $code != 0; then
1932 $echo "Test ross-5(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1933 errors=`expr $errors + 1`
1934 else
1935 cmp ross-5.O $srcdir/ross-5.X > /dev/null 2>&1
1936 case $? in
1937 0) if test "$VERBOSE"; then $echo "passed ross-5(|)"; fi;;
1938 1) $echo "Test ross-5(|) failed: files ross-5.O and $srcdir/ross-5.X differ" 1>&2
1939 (diff -c ross-5.O $srcdir/ross-5.X) 2> /dev/null
1940 errors=`expr $errors + 1`;;
1941 2) $echo "Test ross-5(|) may have failed." 1>&2
1942 $echo The command "cmp ross-5.O $srcdir/ross-5.X" failed. 1>&2
1943 errors=`expr $errors + 1`;;
1944 esac
1946 test -s ross-5.E || rm -f ross-5.E
1947 $xx -dc '[:lower:]' < $srcdir/ross-5.I > ross-5.O 2> ross-5.E
1948 code=$?
1949 if test $code != 0; then
1950 $echo "Test ross-5(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1951 errors=`expr $errors + 1`
1952 else
1953 cmp ross-5.O $srcdir/ross-5.X > /dev/null 2>&1
1954 case $? in
1955 0) if test "$VERBOSE"; then $echo "passed ross-5(<)"; fi;;
1956 1) $echo "Test ross-5(<) failed: files ross-5.O and $srcdir/ross-5.X differ" 1>&2
1957 (diff -c ross-5.O $srcdir/ross-5.X) 2> /dev/null
1958 errors=`expr $errors + 1`;;
1959 2) $echo "Test ross-5(<) may have failed." 1>&2
1960 $echo The command "cmp ross-5.O $srcdir/ross-5.X" failed. 1>&2
1961 errors=`expr $errors + 1`;;
1962 esac
1964 test -s ross-5.E || rm -f ross-5.E
1965 cat $srcdir/ross-6.I | $xx -dc '[:upper:]' > ross-6.O 2> ross-6.E
1966 code=$?
1967 if test $code != 0; then
1968 $echo "Test ross-6(|) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1969 errors=`expr $errors + 1`
1970 else
1971 cmp ross-6.O $srcdir/ross-6.X > /dev/null 2>&1
1972 case $? in
1973 0) if test "$VERBOSE"; then $echo "passed ross-6(|)"; fi;;
1974 1) $echo "Test ross-6(|) failed: files ross-6.O and $srcdir/ross-6.X differ" 1>&2
1975 (diff -c ross-6.O $srcdir/ross-6.X) 2> /dev/null
1976 errors=`expr $errors + 1`;;
1977 2) $echo "Test ross-6(|) may have failed." 1>&2
1978 $echo The command "cmp ross-6.O $srcdir/ross-6.X" failed. 1>&2
1979 errors=`expr $errors + 1`;;
1980 esac
1982 test -s ross-6.E || rm -f ross-6.E
1983 $xx -dc '[:upper:]' < $srcdir/ross-6.I > ross-6.O 2> ross-6.E
1984 code=$?
1985 if test $code != 0; then
1986 $echo "Test ross-6(<) failed: ../../src/tr return code $code differs from expected value 0" 1>&2
1987 errors=`expr $errors + 1`
1988 else
1989 cmp ross-6.O $srcdir/ross-6.X > /dev/null 2>&1
1990 case $? in
1991 0) if test "$VERBOSE"; then $echo "passed ross-6(<)"; fi;;
1992 1) $echo "Test ross-6(<) failed: files ross-6.O and $srcdir/ross-6.X differ" 1>&2
1993 (diff -c ross-6.O $srcdir/ross-6.X) 2> /dev/null
1994 errors=`expr $errors + 1`;;
1995 2) $echo "Test ross-6(<) may have failed." 1>&2
1996 $echo The command "cmp ross-6.O $srcdir/ross-6.X" failed. 1>&2
1997 errors=`expr $errors + 1`;;
1998 esac
2000 test -s ross-6.E || rm -f ross-6.E
2001 cat $srcdir/empty-eq.I | $xx '[==]' x > empty-eq.O 2> empty-eq.E
2002 code=$?
2003 if test $code != 1; then
2004 $echo "Test empty-eq(|) failed: ../../src/tr return code $code differs from expected value 1" 1>&2
2005 errors=`expr $errors + 1`
2006 else
2007 cmp empty-eq.O $srcdir/empty-eq.X > /dev/null 2>&1
2008 case $? in
2009 0) if test "$VERBOSE"; then $echo "passed empty-eq(|)"; fi;;
2010 1) $echo "Test empty-eq(|) failed: files empty-eq.O and $srcdir/empty-eq.X differ" 1>&2
2011 (diff -c empty-eq.O $srcdir/empty-eq.X) 2> /dev/null
2012 errors=`expr $errors + 1`;;
2013 2) $echo "Test empty-eq(|) may have failed." 1>&2
2014 $echo The command "cmp empty-eq.O $srcdir/empty-eq.X" failed. 1>&2
2015 errors=`expr $errors + 1`;;
2016 esac
2018 test -s empty-eq.E || rm -f empty-eq.E
2019 $xx '[==]' x < $srcdir/empty-eq.I > empty-eq.O 2> empty-eq.E
2020 code=$?
2021 if test $code != 1; then
2022 $echo "Test empty-eq(<) failed: ../../src/tr return code $code differs from expected value 1" 1>&2
2023 errors=`expr $errors + 1`
2024 else
2025 cmp empty-eq.O $srcdir/empty-eq.X > /dev/null 2>&1
2026 case $? in
2027 0) if test "$VERBOSE"; then $echo "passed empty-eq(<)"; fi;;
2028 1) $echo "Test empty-eq(<) failed: files empty-eq.O and $srcdir/empty-eq.X differ" 1>&2
2029 (diff -c empty-eq.O $srcdir/empty-eq.X) 2> /dev/null
2030 errors=`expr $errors + 1`;;
2031 2) $echo "Test empty-eq(<) may have failed." 1>&2
2032 $echo The command "cmp empty-eq.O $srcdir/empty-eq.X" failed. 1>&2
2033 errors=`expr $errors + 1`;;
2034 esac
2036 test -s empty-eq.E || rm -f empty-eq.E
2037 cat $srcdir/empty-cc.I | $xx '[::]' x > empty-cc.O 2> empty-cc.E
2038 code=$?
2039 if test $code != 1; then
2040 $echo "Test empty-cc(|) failed: ../../src/tr return code $code differs from expected value 1" 1>&2
2041 errors=`expr $errors + 1`
2042 else
2043 cmp empty-cc.O $srcdir/empty-cc.X > /dev/null 2>&1
2044 case $? in
2045 0) if test "$VERBOSE"; then $echo "passed empty-cc(|)"; fi;;
2046 1) $echo "Test empty-cc(|) failed: files empty-cc.O and $srcdir/empty-cc.X differ" 1>&2
2047 (diff -c empty-cc.O $srcdir/empty-cc.X) 2> /dev/null
2048 errors=`expr $errors + 1`;;
2049 2) $echo "Test empty-cc(|) may have failed." 1>&2
2050 $echo The command "cmp empty-cc.O $srcdir/empty-cc.X" failed. 1>&2
2051 errors=`expr $errors + 1`;;
2052 esac
2054 test -s empty-cc.E || rm -f empty-cc.E
2055 $xx '[::]' x < $srcdir/empty-cc.I > empty-cc.O 2> empty-cc.E
2056 code=$?
2057 if test $code != 1; then
2058 $echo "Test empty-cc(<) failed: ../../src/tr return code $code differs from expected value 1" 1>&2
2059 errors=`expr $errors + 1`
2060 else
2061 cmp empty-cc.O $srcdir/empty-cc.X > /dev/null 2>&1
2062 case $? in
2063 0) if test "$VERBOSE"; then $echo "passed empty-cc(<)"; fi;;
2064 1) $echo "Test empty-cc(<) failed: files empty-cc.O and $srcdir/empty-cc.X differ" 1>&2
2065 (diff -c empty-cc.O $srcdir/empty-cc.X) 2> /dev/null
2066 errors=`expr $errors + 1`;;
2067 2) $echo "Test empty-cc(<) may have failed." 1>&2
2068 $echo The command "cmp empty-cc.O $srcdir/empty-cc.X" failed. 1>&2
2069 errors=`expr $errors + 1`;;
2070 esac
2072 test -s empty-cc.E || rm -f empty-cc.E
2073 if test $errors = 0; then
2074 $echo Passed all 114 tests. 1>&2
2075 else
2076 $echo Failed $errors tests. 1>&2
2078 test $errors = 0 || errors=1
2079 exit $errors