summaryrefslogtreecommitdiff
path: root/tests/sort/sort-tests
blob: 4a7427be622ed458b90bef5cf1ae1a71c1ece485 (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
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
#! /bin/sh
# This script was generated automatically by build-script.
case $# in
  0) xx='../../src/sort';;
  *) 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  $srcdir/t01a.in > t01a.out 2> t01a.err
code=$?
if test $code != 0 ; then
  $echo "Test 01a failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t01a.out $srcdir/t01a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 01a"; fi ;;
    1) $echo "Test 01a failed: files t01a.out and $srcdir/t01a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 01a may have failed." 1>&2;
       $echo The command "cmp t01a.out $srcdir/t01a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t01a.err || rm -f t01a.err
$xx -c $srcdir/t02a.in > t02a.out 2> t02a.err
code=$?
if test $code != 0 ; then
  $echo "Test 02a failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t02a.out $srcdir/t02a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 02a"; fi ;;
    1) $echo "Test 02a failed: files t02a.out and $srcdir/t02a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 02a may have failed." 1>&2;
       $echo The command "cmp t02a.out $srcdir/t02a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t02a.err || rm -f t02a.err
$xx -c $srcdir/t02b.in > t02b.out 2> t02b.err
code=$?
if test $code != 1 ; then
  $echo "Test 02b failed: ../../src/sort return code $code differs from expected value 1" 1>&2
  errors=`expr $errors + 1`
else
  cmp t02b.out $srcdir/t02b.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 02b"; fi ;;
    1) $echo "Test 02b failed: files t02b.out and $srcdir/t02b.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 02b may have failed." 1>&2;
       $echo The command "cmp t02b.out $srcdir/t02b.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t02b.err || rm -f t02b.err
$xx -cu $srcdir/t02c.in > t02c.out 2> t02c.err
code=$?
if test $code != 1 ; then
  $echo "Test 02c failed: ../../src/sort return code $code differs from expected value 1" 1>&2
  errors=`expr $errors + 1`
else
  cmp t02c.out $srcdir/t02c.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 02c"; fi ;;
    1) $echo "Test 02c failed: files t02c.out and $srcdir/t02c.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 02c may have failed." 1>&2;
       $echo The command "cmp t02c.out $srcdir/t02c.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t02c.err || rm -f t02c.err
$xx -cu $srcdir/t02d.in > t02d.out 2> t02d.err
code=$?
if test $code != 0 ; then
  $echo "Test 02d failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t02d.out $srcdir/t02d.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 02d"; fi ;;
    1) $echo "Test 02d failed: files t02d.out and $srcdir/t02d.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 02d may have failed." 1>&2;
       $echo The command "cmp t02d.out $srcdir/t02d.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t02d.err || rm -f t02d.err
$xx -cu $srcdir/t02e.in > t02e.out 2> t02e.err
code=$?
if test $code != 1 ; then
  $echo "Test 02e failed: ../../src/sort return code $code differs from expected value 1" 1>&2
  errors=`expr $errors + 1`
else
  cmp t02e.out $srcdir/t02e.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 02e"; fi ;;
    1) $echo "Test 02e failed: files t02e.out and $srcdir/t02e.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 02e may have failed." 1>&2;
       $echo The command "cmp t02e.out $srcdir/t02e.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t02e.err || rm -f t02e.err
$xx -cu $srcdir/t02f.in > t02f.out 2> t02f.err
code=$?
if test $code != 1 ; then
  $echo "Test 02f failed: ../../src/sort return code $code differs from expected value 1" 1>&2
  errors=`expr $errors + 1`
else
  cmp t02f.out $srcdir/t02f.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 02f"; fi ;;
    1) $echo "Test 02f failed: files t02f.out and $srcdir/t02f.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 02f may have failed." 1>&2;
       $echo The command "cmp t02f.out $srcdir/t02f.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t02f.err || rm -f t02f.err
$xx -k1 $srcdir/t03a.in > t03a.out 2> t03a.err
code=$?
if test $code != 0 ; then
  $echo "Test 03a failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t03a.out $srcdir/t03a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 03a"; fi ;;
    1) $echo "Test 03a failed: files t03a.out and $srcdir/t03a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 03a may have failed." 1>&2;
       $echo The command "cmp t03a.out $srcdir/t03a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t03a.err || rm -f t03a.err
$xx -k1,1 $srcdir/t03b.in > t03b.out 2> t03b.err
code=$?
if test $code != 0 ; then
  $echo "Test 03b failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t03b.out $srcdir/t03b.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 03b"; fi ;;
    1) $echo "Test 03b failed: files t03b.out and $srcdir/t03b.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 03b may have failed." 1>&2;
       $echo The command "cmp t03b.out $srcdir/t03b.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t03b.err || rm -f t03b.err
$xx -k1 -k2 $srcdir/t03c.in > t03c.out 2> t03c.err
code=$?
if test $code != 0 ; then
  $echo "Test 03c failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t03c.out $srcdir/t03c.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 03c"; fi ;;
    1) $echo "Test 03c failed: files t03c.out and $srcdir/t03c.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 03c may have failed." 1>&2;
       $echo The command "cmp t03c.out $srcdir/t03c.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t03c.err || rm -f t03c.err
$xx -k0 $srcdir/t03d.in > t03d.out 2> t03d.err
code=$?
if test $code != 2 ; then
  $echo "Test 03d failed: ../../src/sort return code $code differs from expected value 2" 1>&2
  errors=`expr $errors + 1`
else
  cmp t03d.out $srcdir/t03d.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 03d"; fi ;;
    1) $echo "Test 03d failed: files t03d.out and $srcdir/t03d.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 03d may have failed." 1>&2;
       $echo The command "cmp t03d.out $srcdir/t03d.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t03d.err || rm -f t03d.err
$xx -k1.0 $srcdir/t03e.in > t03e.out 2> t03e.err
code=$?
if test $code != 2 ; then
  $echo "Test 03e failed: ../../src/sort return code $code differs from expected value 2" 1>&2
  errors=`expr $errors + 1`
else
  cmp t03e.out $srcdir/t03e.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 03e"; fi ;;
    1) $echo "Test 03e failed: files t03e.out and $srcdir/t03e.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 03e may have failed." 1>&2;
       $echo The command "cmp t03e.out $srcdir/t03e.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t03e.err || rm -f t03e.err
$xx -k1.1,-k0 $srcdir/t03f.in > t03f.out 2> t03f.err
code=$?
if test $code != 2 ; then
  $echo "Test 03f failed: ../../src/sort return code $code differs from expected value 2" 1>&2
  errors=`expr $errors + 1`
else
  cmp t03f.out $srcdir/t03f.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 03f"; fi ;;
    1) $echo "Test 03f failed: files t03f.out and $srcdir/t03f.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 03f may have failed." 1>&2;
       $echo The command "cmp t03f.out $srcdir/t03f.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t03f.err || rm -f t03f.err
$xx -k1.1,1.0 $srcdir/t03g.in > t03g.out 2> t03g.err
code=$?
if test $code != 0 ; then
  $echo "Test 03g failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t03g.out $srcdir/t03g.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 03g"; fi ;;
    1) $echo "Test 03g failed: files t03g.out and $srcdir/t03g.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 03g may have failed." 1>&2;
       $echo The command "cmp t03g.out $srcdir/t03g.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t03g.err || rm -f t03g.err
$xx -k1.1,1 $srcdir/t03h.in > t03h.out 2> t03h.err
code=$?
if test $code != 0 ; then
  $echo "Test 03h failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t03h.out $srcdir/t03h.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 03h"; fi ;;
    1) $echo "Test 03h failed: files t03h.out and $srcdir/t03h.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 03h may have failed." 1>&2;
       $echo The command "cmp t03h.out $srcdir/t03h.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t03h.err || rm -f t03h.err
$xx -k1,1 $srcdir/t03i.in > t03i.out 2> t03i.err
code=$?
if test $code != 0 ; then
  $echo "Test 03i failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t03i.out $srcdir/t03i.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 03i"; fi ;;
    1) $echo "Test 03i failed: files t03i.out and $srcdir/t03i.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 03i may have failed." 1>&2;
       $echo The command "cmp t03i.out $srcdir/t03i.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t03i.err || rm -f t03i.err
$xx -nc $srcdir/t04a.in > t04a.out 2> t04a.err
code=$?
if test $code != 0 ; then
  $echo "Test 04a failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t04a.out $srcdir/t04a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 04a"; fi ;;
    1) $echo "Test 04a failed: files t04a.out and $srcdir/t04a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 04a may have failed." 1>&2;
       $echo The command "cmp t04a.out $srcdir/t04a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t04a.err || rm -f t04a.err
$xx -n $srcdir/t04b.in > t04b.out 2> t04b.err
code=$?
if test $code != 0 ; then
  $echo "Test 04b failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t04b.out $srcdir/t04b.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 04b"; fi ;;
    1) $echo "Test 04b failed: files t04b.out and $srcdir/t04b.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 04b may have failed." 1>&2;
       $echo The command "cmp t04b.out $srcdir/t04b.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t04b.err || rm -f t04b.err
$xx -k1n $srcdir/t04c.in > t04c.out 2> t04c.err
code=$?
if test $code != 0 ; then
  $echo "Test 04c failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t04c.out $srcdir/t04c.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 04c"; fi ;;
    1) $echo "Test 04c failed: files t04c.out and $srcdir/t04c.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 04c may have failed." 1>&2;
       $echo The command "cmp t04c.out $srcdir/t04c.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t04c.err || rm -f t04c.err
$xx -k1 $srcdir/t04d.in > t04d.out 2> t04d.err
code=$?
if test $code != 0 ; then
  $echo "Test 04d failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t04d.out $srcdir/t04d.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 04d"; fi ;;
    1) $echo "Test 04d failed: files t04d.out and $srcdir/t04d.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 04d may have failed." 1>&2;
       $echo The command "cmp t04d.out $srcdir/t04d.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t04d.err || rm -f t04d.err
$xx -k2 $srcdir/t04e.in > t04e.out 2> t04e.err
code=$?
if test $code != 0 ; then
  $echo "Test 04e failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t04e.out $srcdir/t04e.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 04e"; fi ;;
    1) $echo "Test 04e failed: files t04e.out and $srcdir/t04e.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 04e may have failed." 1>&2;
       $echo The command "cmp t04e.out $srcdir/t04e.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t04e.err || rm -f t04e.err
$xx -k1,2 $srcdir/t05a.in > t05a.out 2> t05a.err
code=$?
if test $code != 0 ; then
  $echo "Test 05a failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t05a.out $srcdir/t05a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 05a"; fi ;;
    1) $echo "Test 05a failed: files t05a.out and $srcdir/t05a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 05a may have failed." 1>&2;
       $echo The command "cmp t05a.out $srcdir/t05a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t05a.err || rm -f t05a.err
$xx -k1,2 $srcdir/t05b.in > t05b.out 2> t05b.err
code=$?
if test $code != 0 ; then
  $echo "Test 05b failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t05b.out $srcdir/t05b.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 05b"; fi ;;
    1) $echo "Test 05b failed: files t05b.out and $srcdir/t05b.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 05b may have failed." 1>&2;
       $echo The command "cmp t05b.out $srcdir/t05b.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t05b.err || rm -f t05b.err
$xx -k1 -k2 $srcdir/t05c.in > t05c.out 2> t05c.err
code=$?
if test $code != 0 ; then
  $echo "Test 05c failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t05c.out $srcdir/t05c.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 05c"; fi ;;
    1) $echo "Test 05c failed: files t05c.out and $srcdir/t05c.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 05c may have failed." 1>&2;
       $echo The command "cmp t05c.out $srcdir/t05c.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t05c.err || rm -f t05c.err
$xx -k2,2 $srcdir/t05d.in > t05d.out 2> t05d.err
code=$?
if test $code != 0 ; then
  $echo "Test 05d failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t05d.out $srcdir/t05d.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 05d"; fi ;;
    1) $echo "Test 05d failed: files t05d.out and $srcdir/t05d.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 05d may have failed." 1>&2;
       $echo The command "cmp t05d.out $srcdir/t05d.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t05d.err || rm -f t05d.err
$xx -k2,2 $srcdir/t05e.in > t05e.out 2> t05e.err
code=$?
if test $code != 0 ; then
  $echo "Test 05e failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t05e.out $srcdir/t05e.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 05e"; fi ;;
    1) $echo "Test 05e failed: files t05e.out and $srcdir/t05e.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 05e may have failed." 1>&2;
       $echo The command "cmp t05e.out $srcdir/t05e.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t05e.err || rm -f t05e.err
$xx -k2,2 $srcdir/t05f.in > t05f.out 2> t05f.err
code=$?
if test $code != 0 ; then
  $echo "Test 05f failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t05f.out $srcdir/t05f.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 05f"; fi ;;
    1) $echo "Test 05f failed: files t05f.out and $srcdir/t05f.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 05f may have failed." 1>&2;
       $echo The command "cmp t05f.out $srcdir/t05f.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t05f.err || rm -f t05f.err
$xx -k 1,2 $srcdir/t06a.in > t06a.out 2> t06a.err
code=$?
if test $code != 0 ; then
  $echo "Test 06a failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t06a.out $srcdir/t06a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 06a"; fi ;;
    1) $echo "Test 06a failed: files t06a.out and $srcdir/t06a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 06a may have failed." 1>&2;
       $echo The command "cmp t06a.out $srcdir/t06a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t06a.err || rm -f t06a.err
$xx -k 1,2 $srcdir/t06b.in > t06b.out 2> t06b.err
code=$?
if test $code != 0 ; then
  $echo "Test 06b failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t06b.out $srcdir/t06b.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 06b"; fi ;;
    1) $echo "Test 06b failed: files t06b.out and $srcdir/t06b.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 06b may have failed." 1>&2;
       $echo The command "cmp t06b.out $srcdir/t06b.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t06b.err || rm -f t06b.err
$xx -k 1 -k 2 $srcdir/t06c.in > t06c.out 2> t06c.err
code=$?
if test $code != 0 ; then
  $echo "Test 06c failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t06c.out $srcdir/t06c.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 06c"; fi ;;
    1) $echo "Test 06c failed: files t06c.out and $srcdir/t06c.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 06c may have failed." 1>&2;
       $echo The command "cmp t06c.out $srcdir/t06c.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t06c.err || rm -f t06c.err
$xx -k 2,2 $srcdir/t06d.in > t06d.out 2> t06d.err
code=$?
if test $code != 0 ; then
  $echo "Test 06d failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t06d.out $srcdir/t06d.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 06d"; fi ;;
    1) $echo "Test 06d failed: files t06d.out and $srcdir/t06d.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 06d may have failed." 1>&2;
       $echo The command "cmp t06d.out $srcdir/t06d.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t06d.err || rm -f t06d.err
$xx -k 2,2 $srcdir/t06e.in > t06e.out 2> t06e.err
code=$?
if test $code != 0 ; then
  $echo "Test 06e failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t06e.out $srcdir/t06e.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 06e"; fi ;;
    1) $echo "Test 06e failed: files t06e.out and $srcdir/t06e.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 06e may have failed." 1>&2;
       $echo The command "cmp t06e.out $srcdir/t06e.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t06e.err || rm -f t06e.err
$xx -k 2,2 $srcdir/t06f.in > t06f.out 2> t06f.err
code=$?
if test $code != 0 ; then
  $echo "Test 06f failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t06f.out $srcdir/t06f.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 06f"; fi ;;
    1) $echo "Test 06f failed: files t06f.out and $srcdir/t06f.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 06f may have failed." 1>&2;
       $echo The command "cmp t06f.out $srcdir/t06f.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t06f.err || rm -f t06f.err
$xx -k 2,3 $srcdir/t07a.in > t07a.out 2> t07a.err
code=$?
if test $code != 0 ; then
  $echo "Test 07a failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t07a.out $srcdir/t07a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 07a"; fi ;;
    1) $echo "Test 07a failed: files t07a.out and $srcdir/t07a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 07a may have failed." 1>&2;
       $echo The command "cmp t07a.out $srcdir/t07a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t07a.err || rm -f t07a.err
$xx -k 2,3 $srcdir/t07b.in > t07b.out 2> t07b.err
code=$?
if test $code != 0 ; then
  $echo "Test 07b failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t07b.out $srcdir/t07b.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 07b"; fi ;;
    1) $echo "Test 07b failed: files t07b.out and $srcdir/t07b.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 07b may have failed." 1>&2;
       $echo The command "cmp t07b.out $srcdir/t07b.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t07b.err || rm -f t07b.err
$xx -k 2,3 $srcdir/t07c.in > t07c.out 2> t07c.err
code=$?
if test $code != 0 ; then
  $echo "Test 07c failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t07c.out $srcdir/t07c.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 07c"; fi ;;
    1) $echo "Test 07c failed: files t07c.out and $srcdir/t07c.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 07c may have failed." 1>&2;
       $echo The command "cmp t07c.out $srcdir/t07c.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t07c.err || rm -f t07c.err
$xx +1 -3 $srcdir/t07d.in > t07d.out 2> t07d.err
code=$?
if test $code != 0 ; then
  $echo "Test 07d failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t07d.out $srcdir/t07d.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 07d"; fi ;;
    1) $echo "Test 07d failed: files t07d.out and $srcdir/t07d.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 07d may have failed." 1>&2;
       $echo The command "cmp t07d.out $srcdir/t07d.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t07d.err || rm -f t07d.err
$xx -k 2.,3 $srcdir/t08a.in > t08a.out 2> t08a.err
code=$?
if test $code != 2 ; then
  $echo "Test 08a failed: ../../src/sort return code $code differs from expected value 2" 1>&2
  errors=`expr $errors + 1`
else
  cmp t08a.out $srcdir/t08a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 08a"; fi ;;
    1) $echo "Test 08a failed: files t08a.out and $srcdir/t08a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 08a may have failed." 1>&2;
       $echo The command "cmp t08a.out $srcdir/t08a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t08a.err || rm -f t08a.err
$xx -k 2, $srcdir/t08b.in > t08b.out 2> t08b.err
code=$?
if test $code != 2 ; then
  $echo "Test 08b failed: ../../src/sort return code $code differs from expected value 2" 1>&2
  errors=`expr $errors + 1`
else
  cmp t08b.out $srcdir/t08b.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 08b"; fi ;;
    1) $echo "Test 08b failed: files t08b.out and $srcdir/t08b.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 08b may have failed." 1>&2;
       $echo The command "cmp t08b.out $srcdir/t08b.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t08b.err || rm -f t08b.err
$xx -g $srcdir/t09a.in > t09a.out 2> t09a.err
code=$?
if test $code != 0 ; then
  $echo "Test 09a failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t09a.out $srcdir/t09a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 09a"; fi ;;
    1) $echo "Test 09a failed: files t09a.out and $srcdir/t09a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 09a may have failed." 1>&2;
       $echo The command "cmp t09a.out $srcdir/t09a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t09a.err || rm -f t09a.err
$xx -n $srcdir/t09b.in > t09b.out 2> t09b.err
code=$?
if test $code != 0 ; then
  $echo "Test 09b failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t09b.out $srcdir/t09b.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 09b"; fi ;;
    1) $echo "Test 09b failed: files t09b.out and $srcdir/t09b.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 09b may have failed." 1>&2;
       $echo The command "cmp t09b.out $srcdir/t09b.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t09b.err || rm -f t09b.err
$xx -n $srcdir/t09c.in > t09c.out 2> t09c.err
code=$?
if test $code != 0 ; then
  $echo "Test 09c failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t09c.out $srcdir/t09c.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 09c"; fi ;;
    1) $echo "Test 09c failed: files t09c.out and $srcdir/t09c.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 09c may have failed." 1>&2;
       $echo The command "cmp t09c.out $srcdir/t09c.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t09c.err || rm -f t09c.err
$xx -k2g $srcdir/t09d.in > t09d.out 2> t09d.err
code=$?
if test $code != 0 ; then
  $echo "Test 09d failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t09d.out $srcdir/t09d.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 09d"; fi ;;
    1) $echo "Test 09d failed: files t09d.out and $srcdir/t09d.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 09d may have failed." 1>&2;
       $echo The command "cmp t09d.out $srcdir/t09d.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t09d.err || rm -f t09d.err
$xx -t : -k 2.2,2.2 $srcdir/t10a.in > t10a.out 2> t10a.err
code=$?
if test $code != 0 ; then
  $echo "Test 10a failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t10a.out $srcdir/t10a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 10a"; fi ;;
    1) $echo "Test 10a failed: files t10a.out and $srcdir/t10a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 10a may have failed." 1>&2;
       $echo The command "cmp t10a.out $srcdir/t10a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t10a.err || rm -f t10a.err
$xx -t : +1.1 -1.2 $srcdir/t10b.in > t10b.out 2> t10b.err
code=$?
if test $code != 0 ; then
  $echo "Test 10b failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t10b.out $srcdir/t10b.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 10b"; fi ;;
    1) $echo "Test 10b failed: files t10b.out and $srcdir/t10b.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 10b may have failed." 1>&2;
       $echo The command "cmp t10b.out $srcdir/t10b.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t10b.err || rm -f t10b.err
$xx -t : -k 2.2,2.2 $srcdir/t10c.in > t10c.out 2> t10c.err
code=$?
if test $code != 0 ; then
  $echo "Test 10c failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t10c.out $srcdir/t10c.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 10c"; fi ;;
    1) $echo "Test 10c failed: files t10c.out and $srcdir/t10c.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 10c may have failed." 1>&2;
       $echo The command "cmp t10c.out $srcdir/t10c.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t10c.err || rm -f t10c.err
$xx -t : +1.1 -1.2 $srcdir/t10d.in > t10d.out 2> t10d.err
code=$?
if test $code != 0 ; then
  $echo "Test 10d failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t10d.out $srcdir/t10d.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 10d"; fi ;;
    1) $echo "Test 10d failed: files t10d.out and $srcdir/t10d.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 10d may have failed." 1>&2;
       $echo The command "cmp t10d.out $srcdir/t10d.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t10d.err || rm -f t10d.err
$xx -k 2.3,2.3 $srcdir/t10a0.in > t10a0.out 2> t10a0.err
code=$?
if test $code != 0 ; then
  $echo "Test 10a0 failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t10a0.out $srcdir/t10a0.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 10a0"; fi ;;
    1) $echo "Test 10a0 failed: files t10a0.out and $srcdir/t10a0.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 10a0 may have failed." 1>&2;
       $echo The command "cmp t10a0.out $srcdir/t10a0.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t10a0.err || rm -f t10a0.err
$xx -k 1.2,1.2 $srcdir/t10a1.in > t10a1.out 2> t10a1.err
code=$?
if test $code != 0 ; then
  $echo "Test 10a1 failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t10a1.out $srcdir/t10a1.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 10a1"; fi ;;
    1) $echo "Test 10a1 failed: files t10a1.out and $srcdir/t10a1.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 10a1 may have failed." 1>&2;
       $echo The command "cmp t10a1.out $srcdir/t10a1.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t10a1.err || rm -f t10a1.err
$xx -b -k 2.2,2.2 $srcdir/t10a2.in > t10a2.out 2> t10a2.err
code=$?
if test $code != 0 ; then
  $echo "Test 10a2 failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t10a2.out $srcdir/t10a2.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 10a2"; fi ;;
    1) $echo "Test 10a2 failed: files t10a2.out and $srcdir/t10a2.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 10a2 may have failed." 1>&2;
       $echo The command "cmp t10a2.out $srcdir/t10a2.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t10a2.err || rm -f t10a2.err
$xx -k 1.2,1.2 $srcdir/t10e.in > t10e.out 2> t10e.err
code=$?
if test $code != 0 ; then
  $echo "Test 10e failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t10e.out $srcdir/t10e.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 10e"; fi ;;
    1) $echo "Test 10e failed: files t10e.out and $srcdir/t10e.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 10e may have failed." 1>&2;
       $echo The command "cmp t10e.out $srcdir/t10e.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t10e.err || rm -f t10e.err
$xx -t : -k 1.3,1.3 $srcdir/t10f.in > t10f.out 2> t10f.err
code=$?
if test $code != 0 ; then
  $echo "Test 10f failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t10f.out $srcdir/t10f.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 10f"; fi ;;
    1) $echo "Test 10f failed: files t10f.out and $srcdir/t10f.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 10f may have failed." 1>&2;
       $echo The command "cmp t10f.out $srcdir/t10f.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t10f.err || rm -f t10f.err
$xx -k 1.4,1.4 $srcdir/t10g.in > t10g.out 2> t10g.err
code=$?
if test $code != 0 ; then
  $echo "Test 10g failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t10g.out $srcdir/t10g.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 10g"; fi ;;
    1) $echo "Test 10g failed: files t10g.out and $srcdir/t10g.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 10g may have failed." 1>&2;
       $echo The command "cmp t10g.out $srcdir/t10g.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t10g.err || rm -f t10g.err
$xx -t: -k1,1b -k2,2 $srcdir/t11a.in > t11a.out 2> t11a.err
code=$?
if test $code != 0 ; then
  $echo "Test 11a failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t11a.out $srcdir/t11a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 11a"; fi ;;
    1) $echo "Test 11a failed: files t11a.out and $srcdir/t11a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 11a may have failed." 1>&2;
       $echo The command "cmp t11a.out $srcdir/t11a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t11a.err || rm -f t11a.err
$xx -t: -k1,1b -k2,2 $srcdir/t11b.in > t11b.out 2> t11b.err
code=$?
if test $code != 0 ; then
  $echo "Test 11b failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t11b.out $srcdir/t11b.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 11b"; fi ;;
    1) $echo "Test 11b failed: files t11b.out and $srcdir/t11b.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 11b may have failed." 1>&2;
       $echo The command "cmp t11b.out $srcdir/t11b.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t11b.err || rm -f t11b.err
$xx -t: -k2,2b -k3,3 $srcdir/t11c.in > t11c.out 2> t11c.err
code=$?
if test $code != 0 ; then
  $echo "Test 11c failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t11c.out $srcdir/t11c.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 11c"; fi ;;
    1) $echo "Test 11c failed: files t11c.out and $srcdir/t11c.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 11c may have failed." 1>&2;
       $echo The command "cmp t11c.out $srcdir/t11c.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t11c.err || rm -f t11c.err
$xx -t: -k2,2b -k3,3 $srcdir/t11d.in > t11d.out 2> t11d.err
code=$?
if test $code != 0 ; then
  $echo "Test 11d failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t11d.out $srcdir/t11d.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 11d"; fi ;;
    1) $echo "Test 11d failed: files t11d.out and $srcdir/t11d.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 11d may have failed." 1>&2;
       $echo The command "cmp t11d.out $srcdir/t11d.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t11d.err || rm -f t11d.err
$xx -n -t: +1 $srcdir/t12a.in > t12a.out 2> t12a.err
code=$?
if test $code != 0 ; then
  $echo "Test 12a failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t12a.out $srcdir/t12a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 12a"; fi ;;
    1) $echo "Test 12a failed: files t12a.out and $srcdir/t12a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 12a may have failed." 1>&2;
       $echo The command "cmp t12a.out $srcdir/t12a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t12a.err || rm -f t12a.err
$xx -n -t: +1 $srcdir/t12b.in > t12b.out 2> t12b.err
code=$?
if test $code != 0 ; then
  $echo "Test 12b failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t12b.out $srcdir/t12b.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 12b"; fi ;;
    1) $echo "Test 12b failed: files t12b.out and $srcdir/t12b.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 12b may have failed." 1>&2;
       $echo The command "cmp t12b.out $srcdir/t12b.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t12b.err || rm -f t12b.err
$xx -n -t: +1 $srcdir/t12c.in > t12c.out 2> t12c.err
code=$?
if test $code != 0 ; then
  $echo "Test 12c failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t12c.out $srcdir/t12c.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 12c"; fi ;;
    1) $echo "Test 12c failed: files t12c.out and $srcdir/t12c.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 12c may have failed." 1>&2;
       $echo The command "cmp t12c.out $srcdir/t12c.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t12c.err || rm -f t12c.err
$xx -n -t: +1 $srcdir/t12d.in > t12d.out 2> t12d.err
code=$?
if test $code != 0 ; then
  $echo "Test 12d failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t12d.out $srcdir/t12d.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 12d"; fi ;;
    1) $echo "Test 12d failed: files t12d.out and $srcdir/t12d.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 12d may have failed." 1>&2;
       $echo The command "cmp t12d.out $srcdir/t12d.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t12d.err || rm -f t12d.err
$xx +0.1n $srcdir/t13a.in > t13a.out 2> t13a.err
code=$?
if test $code != 0 ; then
  $echo "Test 13a failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t13a.out $srcdir/t13a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 13a"; fi ;;
    1) $echo "Test 13a failed: files t13a.out and $srcdir/t13a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 13a may have failed." 1>&2;
       $echo The command "cmp t13a.out $srcdir/t13a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t13a.err || rm -f t13a.err
$xx +0.1n $srcdir/t13b.in > t13b.out 2> t13b.err
code=$?
if test $code != 0 ; then
  $echo "Test 13b failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t13b.out $srcdir/t13b.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 13b"; fi ;;
    1) $echo "Test 13b failed: files t13b.out and $srcdir/t13b.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 13b may have failed." 1>&2;
       $echo The command "cmp t13b.out $srcdir/t13b.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t13b.err || rm -f t13b.err
$xx -d -u $srcdir/t14a.in > t14a.out 2> t14a.err
code=$?
if test $code != 0 ; then
  $echo "Test 14a failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t14a.out $srcdir/t14a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 14a"; fi ;;
    1) $echo "Test 14a failed: files t14a.out and $srcdir/t14a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 14a may have failed." 1>&2;
       $echo The command "cmp t14a.out $srcdir/t14a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t14a.err || rm -f t14a.err
$xx -f -d -u $srcdir/t14b.in > t14b.out 2> t14b.err
code=$?
if test $code != 0 ; then
  $echo "Test 14b failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t14b.out $srcdir/t14b.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 14b"; fi ;;
    1) $echo "Test 14b failed: files t14b.out and $srcdir/t14b.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 14b may have failed." 1>&2;
       $echo The command "cmp t14b.out $srcdir/t14b.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t14b.err || rm -f t14b.err
$xx -i -u $srcdir/t15a.in > t15a.out 2> t15a.err
code=$?
if test $code != 0 ; then
  $echo "Test 15a failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t15a.out $srcdir/t15a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 15a"; fi ;;
    1) $echo "Test 15a failed: files t15a.out and $srcdir/t15a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 15a may have failed." 1>&2;
       $echo The command "cmp t15a.out $srcdir/t15a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t15a.err || rm -f t15a.err
$xx -i -u $srcdir/t15b.in > t15b.out 2> t15b.err
code=$?
if test $code != 0 ; then
  $echo "Test 15b failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t15b.out $srcdir/t15b.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 15b"; fi ;;
    1) $echo "Test 15b failed: files t15b.out and $srcdir/t15b.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 15b may have failed." 1>&2;
       $echo The command "cmp t15b.out $srcdir/t15b.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t15b.err || rm -f t15b.err
$xx -i -u $srcdir/t15c.in > t15c.out 2> t15c.err
code=$?
if test $code != 0 ; then
  $echo "Test 15c failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t15c.out $srcdir/t15c.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 15c"; fi ;;
    1) $echo "Test 15c failed: files t15c.out and $srcdir/t15c.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 15c may have failed." 1>&2;
       $echo The command "cmp t15c.out $srcdir/t15c.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t15c.err || rm -f t15c.err
$xx -i -u $srcdir/t15d.in > t15d.out 2> t15d.err
code=$?
if test $code != 0 ; then
  $echo "Test 15d failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t15d.out $srcdir/t15d.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 15d"; fi ;;
    1) $echo "Test 15d failed: files t15d.out and $srcdir/t15d.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 15d may have failed." 1>&2;
       $echo The command "cmp t15d.out $srcdir/t15d.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t15d.err || rm -f t15d.err
$xx -i -u $srcdir/t15e.in > t15e.out 2> t15e.err
code=$?
if test $code != 0 ; then
  $echo "Test 15e failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t15e.out $srcdir/t15e.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 15e"; fi ;;
    1) $echo "Test 15e failed: files t15e.out and $srcdir/t15e.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 15e may have failed." 1>&2;
       $echo The command "cmp t15e.out $srcdir/t15e.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t15e.err || rm -f t15e.err
$xx -f $srcdir/t16a.in > t16a.out 2> t16a.err
code=$?
if test $code != 0 ; then
  $echo "Test 16a failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t16a.out $srcdir/t16a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 16a"; fi ;;
    1) $echo "Test 16a failed: files t16a.out and $srcdir/t16a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 16a may have failed." 1>&2;
       $echo The command "cmp t16a.out $srcdir/t16a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t16a.err || rm -f t16a.err
$xx -c $srcdir/t17.in > t17.out 2> t17.err
code=$?
if test $code != 0 ; then
  $echo "Test 17 failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t17.out $srcdir/t17.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 17"; fi ;;
    1) $echo "Test 17 failed: files t17.out and $srcdir/t17.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 17 may have failed." 1>&2;
       $echo The command "cmp t17.out $srcdir/t17.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t17.err || rm -f t17.err
$xx -k1.1,1.2n $srcdir/t18a.in > t18a.out 2> t18a.err
code=$?
if test $code != 0 ; then
  $echo "Test 18a failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t18a.out $srcdir/t18a.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 18a"; fi ;;
    1) $echo "Test 18a failed: files t18a.out and $srcdir/t18a.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 18a may have failed." 1>&2;
       $echo The command "cmp t18a.out $srcdir/t18a.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t18a.err || rm -f t18a.err
$xx -b -k1.1,1.2n $srcdir/t18b.in > t18b.out 2> t18b.err
code=$?
if test $code != 0 ; then
  $echo "Test 18b failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t18b.out $srcdir/t18b.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 18b"; fi ;;
    1) $echo "Test 18b failed: files t18b.out and $srcdir/t18b.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 18b may have failed." 1>&2;
       $echo The command "cmp t18b.out $srcdir/t18b.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t18b.err || rm -f t18b.err
$xx -k1.1,1.2nb $srcdir/t18c.in > t18c.out 2> t18c.err
code=$?
if test $code != 0 ; then
  $echo "Test 18c failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t18c.out $srcdir/t18c.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 18c"; fi ;;
    1) $echo "Test 18c failed: files t18c.out and $srcdir/t18c.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 18c may have failed." 1>&2;
       $echo The command "cmp t18c.out $srcdir/t18c.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t18c.err || rm -f t18c.err
$xx -k1.1b,1.2n $srcdir/t18d.in > t18d.out 2> t18d.err
code=$?
if test $code != 0 ; then
  $echo "Test 18d failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t18d.out $srcdir/t18d.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 18d"; fi ;;
    1) $echo "Test 18d failed: files t18d.out and $srcdir/t18d.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 18d may have failed." 1>&2;
       $echo The command "cmp t18d.out $srcdir/t18d.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t18d.err || rm -f t18d.err
$xx -nb -k1.1,1.2 $srcdir/t18e.in > t18e.out 2> t18e.err
code=$?
if test $code != 0 ; then
  $echo "Test 18e failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp t18e.out $srcdir/t18e.exp
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 18e"; fi ;;
    1) $echo "Test 18e failed: files t18e.out and $srcdir/t18e.exp differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 18e may have failed." 1>&2;
       $echo The command "cmp t18e.out $srcdir/t18e.exp" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s t18e.err || rm -f t18e.err
if test $errors = 0 ; then
  $echo Passed all 77 tests. 1>&2
else
  $echo Failed $errors tests. 1>&2
fi
test $errors = 0 || errors=1
exit $errors