summaryrefslogtreecommitdiff
path: root/tests/join/join-tests
blob: 03e3bee257ea4420de5d73f84b9f8206ae00a524 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
#! /bin/sh
# This script was generated automatically by build-script.
case $# in
  0) xx='../../src/join';;
  *) xx="$1";;
esac
test "$VERBOSE" && echo=echo || echo=:
$echo testing program: $xx
errors=0
test "$srcdir" || srcdir=.
test "$VERBOSE" && $xx --version 2> /dev/null
$xx -a1 $srcdir/t1a.in1 $srcdir/t1a.in2 > t1a.out 2> t1a.err
code=$?
if test $code != 0 ; then
  $echo "Test 1a failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t1a.out $srcdir/t1a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 1a"; fi ;;
    1) $echo "Test 1a failed: files t1a.out and $srcdir/t1a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 1a may have failed." 1>&2;
       $echo The command "cmp t1a.out $srcdir/t1a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t1a.err || rm -f t1a.err
$xx -a2 $srcdir/t1b.in1 $srcdir/t1b.in2 > t1b.out 2> t1b.err
code=$?
if test $code != 0 ; then
  $echo "Test 1b failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t1b.out $srcdir/t1b.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 1b"; fi ;;
    1) $echo "Test 1b failed: files t1b.out and $srcdir/t1b.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 1b may have failed." 1>&2;
       $echo The command "cmp t1b.out $srcdir/t1b.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t1b.err || rm -f t1b.err
$xx -a1 -a2 $srcdir/t1c.in1 $srcdir/t1c.in2 > t1c.out 2> t1c.err
code=$?
if test $code != 0 ; then
  $echo "Test 1c failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t1c.out $srcdir/t1c.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 1c"; fi ;;
    1) $echo "Test 1c failed: files t1c.out and $srcdir/t1c.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 1c may have failed." 1>&2;
       $echo The command "cmp t1c.out $srcdir/t1c.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t1c.err || rm -f t1c.err
$xx -a1 $srcdir/t1d.in1 $srcdir/t1d.in2 > t1d.out 2> t1d.err
code=$?
if test $code != 0 ; then
  $echo "Test 1d failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t1d.out $srcdir/t1d.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 1d"; fi ;;
    1) $echo "Test 1d failed: files t1d.out and $srcdir/t1d.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 1d may have failed." 1>&2;
       $echo The command "cmp t1d.out $srcdir/t1d.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t1d.err || rm -f t1d.err
$xx -a2 $srcdir/t1e.in1 $srcdir/t1e.in2 > t1e.out 2> t1e.err
code=$?
if test $code != 0 ; then
  $echo "Test 1e failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t1e.out $srcdir/t1e.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 1e"; fi ;;
    1) $echo "Test 1e failed: files t1e.out and $srcdir/t1e.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 1e may have failed." 1>&2;
       $echo The command "cmp t1e.out $srcdir/t1e.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t1e.err || rm -f t1e.err
$xx -a2 $srcdir/t1f.in1 $srcdir/t1f.in2 > t1f.out 2> t1f.err
code=$?
if test $code != 0 ; then
  $echo "Test 1f failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t1f.out $srcdir/t1f.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 1f"; fi ;;
    1) $echo "Test 1f failed: files t1f.out and $srcdir/t1f.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 1f may have failed." 1>&2;
       $echo The command "cmp t1f.out $srcdir/t1f.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t1f.err || rm -f t1f.err
$xx -a1 -e . $srcdir/t2a.in1 $srcdir/t2a.in2 > t2a.out 2> t2a.err
code=$?
if test $code != 0 ; then
  $echo "Test 2a failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t2a.out $srcdir/t2a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 2a"; fi ;;
    1) $echo "Test 2a failed: files t2a.out and $srcdir/t2a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 2a may have failed." 1>&2;
       $echo The command "cmp t2a.out $srcdir/t2a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t2a.err || rm -f t2a.err
$xx -a1 -e . -o 2.1,2.2,2.3 $srcdir/t2b.in1 $srcdir/t2b.in2 > t2b.out 2> t2b.err
code=$?
if test $code != 0 ; then
  $echo "Test 2b failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t2b.out $srcdir/t2b.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 2b"; fi ;;
    1) $echo "Test 2b failed: files t2b.out and $srcdir/t2b.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 2b may have failed." 1>&2;
       $echo The command "cmp t2b.out $srcdir/t2b.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t2b.err || rm -f t2b.err
$xx -a1 -e . -o 2.1,2.2,2.3 $srcdir/t2c.in1 $srcdir/t2c.in2 > t2c.out 2> t2c.err
code=$?
if test $code != 0 ; then
  $echo "Test 2c failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t2c.out $srcdir/t2c.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 2c"; fi ;;
    1) $echo "Test 2c failed: files t2c.out and $srcdir/t2c.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 2c may have failed." 1>&2;
       $echo The command "cmp t2c.out $srcdir/t2c.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t2c.err || rm -f t2c.err
$xx -t: $srcdir/t3a.in1 $srcdir/t3a.in2 > t3a.out 2> t3a.err
code=$?
if test $code != 0 ; then
  $echo "Test 3a failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t3a.out $srcdir/t3a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 3a"; fi ;;
    1) $echo "Test 3a failed: files t3a.out and $srcdir/t3a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 3a may have failed." 1>&2;
       $echo The command "cmp t3a.out $srcdir/t3a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t3a.err || rm -f t3a.err
$xx -v 1 $srcdir/t4a.in1 $srcdir/t4a.in2 > t4a.out 2> t4a.err
code=$?
if test $code != 0 ; then
  $echo "Test 4a failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t4a.out $srcdir/t4a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 4a"; fi ;;
    1) $echo "Test 4a failed: files t4a.out and $srcdir/t4a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 4a may have failed." 1>&2;
       $echo The command "cmp t4a.out $srcdir/t4a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t4a.err || rm -f t4a.err
$xx -v 2 $srcdir/t4b.in1 $srcdir/t4b.in2 > t4b.out 2> t4b.err
code=$?
if test $code != 0 ; then
  $echo "Test 4b failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t4b.out $srcdir/t4b.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 4b"; fi ;;
    1) $echo "Test 4b failed: files t4b.out and $srcdir/t4b.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 4b may have failed." 1>&2;
       $echo The command "cmp t4b.out $srcdir/t4b.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t4b.err || rm -f t4b.err
$xx -v 1 $srcdir/t4c.in1 $srcdir/t4c.in2 > t4c.out 2> t4c.err
code=$?
if test $code != 0 ; then
  $echo "Test 4c failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t4c.out $srcdir/t4c.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 4c"; fi ;;
    1) $echo "Test 4c failed: files t4c.out and $srcdir/t4c.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 4c may have failed." 1>&2;
       $echo The command "cmp t4c.out $srcdir/t4c.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t4c.err || rm -f t4c.err
$xx -v 2 $srcdir/t4d.in1 $srcdir/t4d.in2 > t4d.out 2> t4d.err
code=$?
if test $code != 0 ; then
  $echo "Test 4d failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t4d.out $srcdir/t4d.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 4d"; fi ;;
    1) $echo "Test 4d failed: files t4d.out and $srcdir/t4d.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 4d may have failed." 1>&2;
       $echo The command "cmp t4d.out $srcdir/t4d.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t4d.err || rm -f t4d.err
$xx -v 2 $srcdir/t4e.in1 $srcdir/t4e.in2 > t4e.out 2> t4e.err
code=$?
if test $code != 0 ; then
  $echo "Test 4e failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t4e.out $srcdir/t4e.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 4e"; fi ;;
    1) $echo "Test 4e failed: files t4e.out and $srcdir/t4e.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 4e may have failed." 1>&2;
       $echo The command "cmp t4e.out $srcdir/t4e.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t4e.err || rm -f t4e.err
$xx -a1 -e - -o 1.1 2.2 $srcdir/t5a.in1 $srcdir/t5a.in2 > t5a.out 2> t5a.err
code=$?
if test $code != 0 ; then
  $echo "Test 5a failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t5a.out $srcdir/t5a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 5a"; fi ;;
    1) $echo "Test 5a failed: files t5a.out and $srcdir/t5a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 5a may have failed." 1>&2;
       $echo The command "cmp t5a.out $srcdir/t5a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t5a.err || rm -f t5a.err
$xx -a1 -e - -o 1.1 2.2 $srcdir/t5b.in1 $srcdir/t5b.in2 > t5b.out 2> t5b.err
code=$?
if test $code != 0 ; then
  $echo "Test 5b failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t5b.out $srcdir/t5b.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 5b"; fi ;;
    1) $echo "Test 5b failed: files t5b.out and $srcdir/t5b.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 5b may have failed." 1>&2;
       $echo The command "cmp t5b.out $srcdir/t5b.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t5b.err || rm -f t5b.err
$xx -a1 -e - -o 1.1 2.2 $srcdir/t5c.in1 $srcdir/t5c.in2 > t5c.out 2> t5c.err
code=$?
if test $code != 0 ; then
  $echo "Test 5c failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t5c.out $srcdir/t5c.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 5c"; fi ;;
    1) $echo "Test 5c failed: files t5c.out and $srcdir/t5c.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 5c may have failed." 1>&2;
       $echo The command "cmp t5c.out $srcdir/t5c.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t5c.err || rm -f t5c.err
$xx -a1 -e - -o 1.1 2.2 $srcdir/t5d.in1 $srcdir/t5d.in2 > t5d.out 2> t5d.err
code=$?
if test $code != 0 ; then
  $echo "Test 5d failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t5d.out $srcdir/t5d.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 5d"; fi ;;
    1) $echo "Test 5d failed: files t5d.out and $srcdir/t5d.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 5d may have failed." 1>&2;
       $echo The command "cmp t5d.out $srcdir/t5d.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t5d.err || rm -f t5d.err
$xx -a2 -e - -o 1.1 2.2 $srcdir/t5e.in1 $srcdir/t5e.in2 > t5e.out 2> t5e.err
code=$?
if test $code != 0 ; then
  $echo "Test 5e failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t5e.out $srcdir/t5e.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 5e"; fi ;;
    1) $echo "Test 5e failed: files t5e.out and $srcdir/t5e.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 5e may have failed." 1>&2;
       $echo The command "cmp t5e.out $srcdir/t5e.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t5e.err || rm -f t5e.err
$xx -a2 -e - -o 2.2 1.1 $srcdir/t5f.in1 $srcdir/t5f.in2 > t5f.out 2> t5f.err
code=$?
if test $code != 0 ; then
  $echo "Test 5f failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t5f.out $srcdir/t5f.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 5f"; fi ;;
    1) $echo "Test 5f failed: files t5f.out and $srcdir/t5f.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 5f may have failed." 1>&2;
       $echo The command "cmp t5f.out $srcdir/t5f.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t5f.err || rm -f t5f.err
$xx -a1 -e - -o 2.2 1.1 $srcdir/t5g.in1 $srcdir/t5g.in2 > t5g.out 2> t5g.err
code=$?
if test $code != 0 ; then
  $echo "Test 5g failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t5g.out $srcdir/t5g.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 5g"; fi ;;
    1) $echo "Test 5g failed: files t5g.out and $srcdir/t5g.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 5g may have failed." 1>&2;
       $echo The command "cmp t5g.out $srcdir/t5g.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t5g.err || rm -f t5g.err
$xx -a1 -e - -o 2.2 1.1 $srcdir/t5h.in1 $srcdir/t5h.in2 > t5h.out 2> t5h.err
code=$?
if test $code != 0 ; then
  $echo "Test 5h failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t5h.out $srcdir/t5h.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 5h"; fi ;;
    1) $echo "Test 5h failed: files t5h.out and $srcdir/t5h.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 5h may have failed." 1>&2;
       $echo The command "cmp t5h.out $srcdir/t5h.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t5h.err || rm -f t5h.err
$xx -a1 -e - -o 1.1 2.2 $srcdir/t5i.in1 $srcdir/t5i.in2 > t5i.out 2> t5i.err
code=$?
if test $code != 0 ; then
  $echo "Test 5i failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t5i.out $srcdir/t5i.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 5i"; fi ;;
    1) $echo "Test 5i failed: files t5i.out and $srcdir/t5i.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 5i may have failed." 1>&2;
       $echo The command "cmp t5i.out $srcdir/t5i.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t5i.err || rm -f t5i.err
$xx -a2 -e - -o 2.2 1.1 $srcdir/t5j.in1 $srcdir/t5j.in2 > t5j.out 2> t5j.err
code=$?
if test $code != 0 ; then
  $echo "Test 5j failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t5j.out $srcdir/t5j.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 5j"; fi ;;
    1) $echo "Test 5j failed: files t5j.out and $srcdir/t5j.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 5j may have failed." 1>&2;
       $echo The command "cmp t5j.out $srcdir/t5j.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t5j.err || rm -f t5j.err
$xx -a2 -e - -o 2.2 1.1 $srcdir/t5k.in1 $srcdir/t5k.in2 > t5k.out 2> t5k.err
code=$?
if test $code != 0 ; then
  $echo "Test 5k failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t5k.out $srcdir/t5k.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 5k"; fi ;;
    1) $echo "Test 5k failed: files t5k.out and $srcdir/t5k.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 5k may have failed." 1>&2;
       $echo The command "cmp t5k.out $srcdir/t5k.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t5k.err || rm -f t5k.err
$xx -a1 -e - -o 2.2 1.1 $srcdir/t5l.in1 $srcdir/t5l.in2 > t5l.out 2> t5l.err
code=$?
if test $code != 0 ; then
  $echo "Test 5l failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t5l.out $srcdir/t5l.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 5l"; fi ;;
    1) $echo "Test 5l failed: files t5l.out and $srcdir/t5l.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 5l may have failed." 1>&2;
       $echo The command "cmp t5l.out $srcdir/t5l.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t5l.err || rm -f t5l.err
$xx -a2 -e - -o 2.2 1.1 $srcdir/t5m.in1 $srcdir/t5m.in2 > t5m.out 2> t5m.err
code=$?
if test $code != 0 ; then
  $echo "Test 5m failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t5m.out $srcdir/t5m.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 5m"; fi ;;
    1) $echo "Test 5m failed: files t5m.out and $srcdir/t5m.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 5m may have failed." 1>&2;
       $echo The command "cmp t5m.out $srcdir/t5m.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t5m.err || rm -f t5m.err
$xx -e - $srcdir/t6a.in1 $srcdir/t6a.in2 > t6a.out 2> t6a.err
code=$?
if test $code != 0 ; then
  $echo "Test 6a failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t6a.out $srcdir/t6a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 6a"; fi ;;
    1) $echo "Test 6a failed: files t6a.out and $srcdir/t6a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 6a may have failed." 1>&2;
       $echo The command "cmp t6a.out $srcdir/t6a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t6a.err || rm -f t6a.err
$xx -a1 -e - $srcdir/t6b.in1 $srcdir/t6b.in2 > t6b.out 2> t6b.err
code=$?
if test $code != 0 ; then
  $echo "Test 6b failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t6b.out $srcdir/t6b.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 6b"; fi ;;
    1) $echo "Test 6b failed: files t6b.out and $srcdir/t6b.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 6b may have failed." 1>&2;
       $echo The command "cmp t6b.out $srcdir/t6b.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t6b.err || rm -f t6b.err
$xx -a1 -e - $srcdir/t6c.in1 $srcdir/t6c.in2 > t6c.out 2> t6c.err
code=$?
if test $code != 0 ; then
  $echo "Test 6c failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t6c.out $srcdir/t6c.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 6c"; fi ;;
    1) $echo "Test 6c failed: files t6c.out and $srcdir/t6c.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 6c may have failed." 1>&2;
       $echo The command "cmp t6c.out $srcdir/t6c.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t6c.err || rm -f t6c.err
$xx -a1 -e . -o 2.7 $srcdir/t7a.in1 $srcdir/t7a.in2 > t7a.out 2> t7a.err
code=$?
if test $code != 0 ; then
  $echo "Test 7a failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t7a.out $srcdir/t7a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 7a"; fi ;;
    1) $echo "Test 7a failed: files t7a.out and $srcdir/t7a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 7a may have failed." 1>&2;
       $echo The command "cmp t7a.out $srcdir/t7a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t7a.err || rm -f t7a.err
$xx -a1 -e . -o 0,1.2 $srcdir/t8a.in1 $srcdir/t8a.in2 > t8a.out 2> t8a.err
code=$?
if test $code != 0 ; then
  $echo "Test 8a failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t8a.out $srcdir/t8a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 8a"; fi ;;
    1) $echo "Test 8a failed: files t8a.out and $srcdir/t8a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 8a may have failed." 1>&2;
       $echo The command "cmp t8a.out $srcdir/t8a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t8a.err || rm -f t8a.err
$xx -a1 -a2 -e . -o 0,1.2 $srcdir/t8b.in1 $srcdir/t8b.in2 > t8b.out 2> t8b.err
code=$?
if test $code != 0 ; then
  $echo "Test 8b failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t8b.out $srcdir/t8b.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 8b"; fi ;;
    1) $echo "Test 8b failed: files t8b.out and $srcdir/t8b.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 8b may have failed." 1>&2;
       $echo The command "cmp t8b.out $srcdir/t8b.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t8b.err || rm -f t8b.err
$xx  $srcdir/t9a.in1 $srcdir/t9a.in2 > t9a.out 2> t9a.err
code=$?
if test $code != 0 ; then
  $echo "Test 9a failed: ../../src/join return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t9a.out $srcdir/t9a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 9a"; fi ;;
    1) $echo "Test 9a failed: files t9a.out and $srcdir/t9a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 9a may have failed." 1>&2;
       $echo The command "cmp t9a.out $srcdir/t9a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t9a.err || rm -f t9a.err
if test $errors = 0 ; then
  $echo Passed all 35 tests. 1>&2
else
  $echo Failed $errors tests. 1>&2
fi
test $errors = 0 || errors=1
exit $errors