summaryrefslogtreecommitdiff
path: root/tests/sort/sort-tests
blob: 6fb31b7412ea8dfa0bec11a97c85469b3e329d61 (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/01a.I > 01a.O 2> 01a.E
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 01a.O $srcdir/01a.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 01a"; fi ;;
    1) $echo "Test 01a failed: files 01a.O and $srcdir/01a.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 01a may have failed." 1>&2;
       $echo The command "cmp 01a.O $srcdir/01a.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 01a.E || rm -f 01a.E
$xx -c $srcdir/02a.I > 02a.O 2> 02a.E
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 02a.O $srcdir/02a.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 02a"; fi ;;
    1) $echo "Test 02a failed: files 02a.O and $srcdir/02a.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 02a may have failed." 1>&2;
       $echo The command "cmp 02a.O $srcdir/02a.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 02a.E || rm -f 02a.E
$xx -c $srcdir/02b.I > 02b.O 2> 02b.E
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 02b.O $srcdir/02b.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 02b"; fi ;;
    1) $echo "Test 02b failed: files 02b.O and $srcdir/02b.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 02b may have failed." 1>&2;
       $echo The command "cmp 02b.O $srcdir/02b.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 02b.E || rm -f 02b.E
$xx -cu $srcdir/02c.I > 02c.O 2> 02c.E
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 02c.O $srcdir/02c.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 02c"; fi ;;
    1) $echo "Test 02c failed: files 02c.O and $srcdir/02c.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 02c may have failed." 1>&2;
       $echo The command "cmp 02c.O $srcdir/02c.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 02c.E || rm -f 02c.E
$xx -cu $srcdir/02d.I > 02d.O 2> 02d.E
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 02d.O $srcdir/02d.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 02d"; fi ;;
    1) $echo "Test 02d failed: files 02d.O and $srcdir/02d.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 02d may have failed." 1>&2;
       $echo The command "cmp 02d.O $srcdir/02d.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 02d.E || rm -f 02d.E
$xx -cu $srcdir/02e.I > 02e.O 2> 02e.E
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 02e.O $srcdir/02e.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 02e"; fi ;;
    1) $echo "Test 02e failed: files 02e.O and $srcdir/02e.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 02e may have failed." 1>&2;
       $echo The command "cmp 02e.O $srcdir/02e.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 02e.E || rm -f 02e.E
$xx -cu $srcdir/02f.I > 02f.O 2> 02f.E
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 02f.O $srcdir/02f.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 02f"; fi ;;
    1) $echo "Test 02f failed: files 02f.O and $srcdir/02f.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 02f may have failed." 1>&2;
       $echo The command "cmp 02f.O $srcdir/02f.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 02f.E || rm -f 02f.E
$xx -k1 $srcdir/03a.I > 03a.O 2> 03a.E
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 03a.O $srcdir/03a.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 03a"; fi ;;
    1) $echo "Test 03a failed: files 03a.O and $srcdir/03a.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 03a may have failed." 1>&2;
       $echo The command "cmp 03a.O $srcdir/03a.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 03a.E || rm -f 03a.E
$xx -k1,1 $srcdir/03b.I > 03b.O 2> 03b.E
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 03b.O $srcdir/03b.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 03b"; fi ;;
    1) $echo "Test 03b failed: files 03b.O and $srcdir/03b.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 03b may have failed." 1>&2;
       $echo The command "cmp 03b.O $srcdir/03b.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 03b.E || rm -f 03b.E
$xx -k1 -k2 $srcdir/03c.I > 03c.O 2> 03c.E
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 03c.O $srcdir/03c.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 03c"; fi ;;
    1) $echo "Test 03c failed: files 03c.O and $srcdir/03c.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 03c may have failed." 1>&2;
       $echo The command "cmp 03c.O $srcdir/03c.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 03c.E || rm -f 03c.E
$xx -k0 $srcdir/03d.I > 03d.O 2> 03d.E
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 03d.O $srcdir/03d.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 03d"; fi ;;
    1) $echo "Test 03d failed: files 03d.O and $srcdir/03d.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 03d may have failed." 1>&2;
       $echo The command "cmp 03d.O $srcdir/03d.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 03d.E || rm -f 03d.E
$xx -k1.0 $srcdir/03e.I > 03e.O 2> 03e.E
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 03e.O $srcdir/03e.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 03e"; fi ;;
    1) $echo "Test 03e failed: files 03e.O and $srcdir/03e.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 03e may have failed." 1>&2;
       $echo The command "cmp 03e.O $srcdir/03e.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 03e.E || rm -f 03e.E
$xx -k1.1,-k0 $srcdir/03f.I > 03f.O 2> 03f.E
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 03f.O $srcdir/03f.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 03f"; fi ;;
    1) $echo "Test 03f failed: files 03f.O and $srcdir/03f.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 03f may have failed." 1>&2;
       $echo The command "cmp 03f.O $srcdir/03f.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 03f.E || rm -f 03f.E
$xx -k1.1,1.0 $srcdir/03g.I > 03g.O 2> 03g.E
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 03g.O $srcdir/03g.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 03g"; fi ;;
    1) $echo "Test 03g failed: files 03g.O and $srcdir/03g.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 03g may have failed." 1>&2;
       $echo The command "cmp 03g.O $srcdir/03g.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 03g.E || rm -f 03g.E
$xx -k1.1,1 $srcdir/03h.I > 03h.O 2> 03h.E
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 03h.O $srcdir/03h.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 03h"; fi ;;
    1) $echo "Test 03h failed: files 03h.O and $srcdir/03h.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 03h may have failed." 1>&2;
       $echo The command "cmp 03h.O $srcdir/03h.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 03h.E || rm -f 03h.E
$xx -k1,1 $srcdir/03i.I > 03i.O 2> 03i.E
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 03i.O $srcdir/03i.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 03i"; fi ;;
    1) $echo "Test 03i failed: files 03i.O and $srcdir/03i.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 03i may have failed." 1>&2;
       $echo The command "cmp 03i.O $srcdir/03i.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 03i.E || rm -f 03i.E
$xx -nc $srcdir/04a.I > 04a.O 2> 04a.E
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 04a.O $srcdir/04a.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 04a"; fi ;;
    1) $echo "Test 04a failed: files 04a.O and $srcdir/04a.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 04a may have failed." 1>&2;
       $echo The command "cmp 04a.O $srcdir/04a.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 04a.E || rm -f 04a.E
$xx -n $srcdir/04b.I > 04b.O 2> 04b.E
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 04b.O $srcdir/04b.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 04b"; fi ;;
    1) $echo "Test 04b failed: files 04b.O and $srcdir/04b.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 04b may have failed." 1>&2;
       $echo The command "cmp 04b.O $srcdir/04b.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 04b.E || rm -f 04b.E
$xx -k1n $srcdir/04c.I > 04c.O 2> 04c.E
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 04c.O $srcdir/04c.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 04c"; fi ;;
    1) $echo "Test 04c failed: files 04c.O and $srcdir/04c.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 04c may have failed." 1>&2;
       $echo The command "cmp 04c.O $srcdir/04c.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 04c.E || rm -f 04c.E
$xx -k1 $srcdir/04d.I > 04d.O 2> 04d.E
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 04d.O $srcdir/04d.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 04d"; fi ;;
    1) $echo "Test 04d failed: files 04d.O and $srcdir/04d.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 04d may have failed." 1>&2;
       $echo The command "cmp 04d.O $srcdir/04d.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 04d.E || rm -f 04d.E
$xx -k2 $srcdir/04e.I > 04e.O 2> 04e.E
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 04e.O $srcdir/04e.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 04e"; fi ;;
    1) $echo "Test 04e failed: files 04e.O and $srcdir/04e.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 04e may have failed." 1>&2;
       $echo The command "cmp 04e.O $srcdir/04e.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 04e.E || rm -f 04e.E
$xx -k1,2 $srcdir/05a.I > 05a.O 2> 05a.E
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 05a.O $srcdir/05a.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 05a"; fi ;;
    1) $echo "Test 05a failed: files 05a.O and $srcdir/05a.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 05a may have failed." 1>&2;
       $echo The command "cmp 05a.O $srcdir/05a.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 05a.E || rm -f 05a.E
$xx -k1,2 $srcdir/05b.I > 05b.O 2> 05b.E
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 05b.O $srcdir/05b.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 05b"; fi ;;
    1) $echo "Test 05b failed: files 05b.O and $srcdir/05b.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 05b may have failed." 1>&2;
       $echo The command "cmp 05b.O $srcdir/05b.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 05b.E || rm -f 05b.E
$xx -k1 -k2 $srcdir/05c.I > 05c.O 2> 05c.E
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 05c.O $srcdir/05c.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 05c"; fi ;;
    1) $echo "Test 05c failed: files 05c.O and $srcdir/05c.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 05c may have failed." 1>&2;
       $echo The command "cmp 05c.O $srcdir/05c.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 05c.E || rm -f 05c.E
$xx -k2,2 $srcdir/05d.I > 05d.O 2> 05d.E
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 05d.O $srcdir/05d.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 05d"; fi ;;
    1) $echo "Test 05d failed: files 05d.O and $srcdir/05d.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 05d may have failed." 1>&2;
       $echo The command "cmp 05d.O $srcdir/05d.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 05d.E || rm -f 05d.E
$xx -k2,2 $srcdir/05e.I > 05e.O 2> 05e.E
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 05e.O $srcdir/05e.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 05e"; fi ;;
    1) $echo "Test 05e failed: files 05e.O and $srcdir/05e.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 05e may have failed." 1>&2;
       $echo The command "cmp 05e.O $srcdir/05e.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 05e.E || rm -f 05e.E
$xx -k2,2 $srcdir/05f.I > 05f.O 2> 05f.E
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 05f.O $srcdir/05f.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 05f"; fi ;;
    1) $echo "Test 05f failed: files 05f.O and $srcdir/05f.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 05f may have failed." 1>&2;
       $echo The command "cmp 05f.O $srcdir/05f.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 05f.E || rm -f 05f.E
$xx -k 1,2 $srcdir/06a.I > 06a.O 2> 06a.E
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 06a.O $srcdir/06a.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 06a"; fi ;;
    1) $echo "Test 06a failed: files 06a.O and $srcdir/06a.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 06a may have failed." 1>&2;
       $echo The command "cmp 06a.O $srcdir/06a.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 06a.E || rm -f 06a.E
$xx -k 1,2 $srcdir/06b.I > 06b.O 2> 06b.E
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 06b.O $srcdir/06b.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 06b"; fi ;;
    1) $echo "Test 06b failed: files 06b.O and $srcdir/06b.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 06b may have failed." 1>&2;
       $echo The command "cmp 06b.O $srcdir/06b.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 06b.E || rm -f 06b.E
$xx -k 1 -k 2 $srcdir/06c.I > 06c.O 2> 06c.E
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 06c.O $srcdir/06c.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 06c"; fi ;;
    1) $echo "Test 06c failed: files 06c.O and $srcdir/06c.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 06c may have failed." 1>&2;
       $echo The command "cmp 06c.O $srcdir/06c.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 06c.E || rm -f 06c.E
$xx -k 2,2 $srcdir/06d.I > 06d.O 2> 06d.E
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 06d.O $srcdir/06d.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 06d"; fi ;;
    1) $echo "Test 06d failed: files 06d.O and $srcdir/06d.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 06d may have failed." 1>&2;
       $echo The command "cmp 06d.O $srcdir/06d.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 06d.E || rm -f 06d.E
$xx -k 2,2 $srcdir/06e.I > 06e.O 2> 06e.E
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 06e.O $srcdir/06e.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 06e"; fi ;;
    1) $echo "Test 06e failed: files 06e.O and $srcdir/06e.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 06e may have failed." 1>&2;
       $echo The command "cmp 06e.O $srcdir/06e.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 06e.E || rm -f 06e.E
$xx -k 2,2 $srcdir/06f.I > 06f.O 2> 06f.E
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 06f.O $srcdir/06f.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 06f"; fi ;;
    1) $echo "Test 06f failed: files 06f.O and $srcdir/06f.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 06f may have failed." 1>&2;
       $echo The command "cmp 06f.O $srcdir/06f.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 06f.E || rm -f 06f.E
$xx -k 2,3 $srcdir/07a.I > 07a.O 2> 07a.E
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 07a.O $srcdir/07a.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 07a"; fi ;;
    1) $echo "Test 07a failed: files 07a.O and $srcdir/07a.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 07a may have failed." 1>&2;
       $echo The command "cmp 07a.O $srcdir/07a.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 07a.E || rm -f 07a.E
$xx -k 2,3 $srcdir/07b.I > 07b.O 2> 07b.E
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 07b.O $srcdir/07b.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 07b"; fi ;;
    1) $echo "Test 07b failed: files 07b.O and $srcdir/07b.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 07b may have failed." 1>&2;
       $echo The command "cmp 07b.O $srcdir/07b.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 07b.E || rm -f 07b.E
$xx -k 2,3 $srcdir/07c.I > 07c.O 2> 07c.E
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 07c.O $srcdir/07c.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 07c"; fi ;;
    1) $echo "Test 07c failed: files 07c.O and $srcdir/07c.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 07c may have failed." 1>&2;
       $echo The command "cmp 07c.O $srcdir/07c.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 07c.E || rm -f 07c.E
$xx +1 -3 $srcdir/07d.I > 07d.O 2> 07d.E
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 07d.O $srcdir/07d.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 07d"; fi ;;
    1) $echo "Test 07d failed: files 07d.O and $srcdir/07d.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 07d may have failed." 1>&2;
       $echo The command "cmp 07d.O $srcdir/07d.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 07d.E || rm -f 07d.E
$xx -k 2.,3 $srcdir/08a.I > 08a.O 2> 08a.E
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 08a.O $srcdir/08a.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 08a"; fi ;;
    1) $echo "Test 08a failed: files 08a.O and $srcdir/08a.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 08a may have failed." 1>&2;
       $echo The command "cmp 08a.O $srcdir/08a.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 08a.E || rm -f 08a.E
$xx -k 2, $srcdir/08b.I > 08b.O 2> 08b.E
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 08b.O $srcdir/08b.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 08b"; fi ;;
    1) $echo "Test 08b failed: files 08b.O and $srcdir/08b.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 08b may have failed." 1>&2;
       $echo The command "cmp 08b.O $srcdir/08b.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 08b.E || rm -f 08b.E
$xx -g $srcdir/09a.I > 09a.O 2> 09a.E
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 09a.O $srcdir/09a.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 09a"; fi ;;
    1) $echo "Test 09a failed: files 09a.O and $srcdir/09a.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 09a may have failed." 1>&2;
       $echo The command "cmp 09a.O $srcdir/09a.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 09a.E || rm -f 09a.E
$xx -n $srcdir/09b.I > 09b.O 2> 09b.E
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 09b.O $srcdir/09b.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 09b"; fi ;;
    1) $echo "Test 09b failed: files 09b.O and $srcdir/09b.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 09b may have failed." 1>&2;
       $echo The command "cmp 09b.O $srcdir/09b.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 09b.E || rm -f 09b.E
$xx -n $srcdir/09c.I > 09c.O 2> 09c.E
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 09c.O $srcdir/09c.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 09c"; fi ;;
    1) $echo "Test 09c failed: files 09c.O and $srcdir/09c.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 09c may have failed." 1>&2;
       $echo The command "cmp 09c.O $srcdir/09c.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 09c.E || rm -f 09c.E
$xx -k2g $srcdir/09d.I > 09d.O 2> 09d.E
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 09d.O $srcdir/09d.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 09d"; fi ;;
    1) $echo "Test 09d failed: files 09d.O and $srcdir/09d.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 09d may have failed." 1>&2;
       $echo The command "cmp 09d.O $srcdir/09d.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 09d.E || rm -f 09d.E
$xx -t : -k 2.2,2.2 $srcdir/10a.I > 10a.O 2> 10a.E
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 10a.O $srcdir/10a.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 10a"; fi ;;
    1) $echo "Test 10a failed: files 10a.O and $srcdir/10a.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 10a may have failed." 1>&2;
       $echo The command "cmp 10a.O $srcdir/10a.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 10a.E || rm -f 10a.E
$xx -t : +1.1 -1.2 $srcdir/10b.I > 10b.O 2> 10b.E
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 10b.O $srcdir/10b.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 10b"; fi ;;
    1) $echo "Test 10b failed: files 10b.O and $srcdir/10b.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 10b may have failed." 1>&2;
       $echo The command "cmp 10b.O $srcdir/10b.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 10b.E || rm -f 10b.E
$xx -t : -k 2.2,2.2 $srcdir/10c.I > 10c.O 2> 10c.E
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 10c.O $srcdir/10c.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 10c"; fi ;;
    1) $echo "Test 10c failed: files 10c.O and $srcdir/10c.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 10c may have failed." 1>&2;
       $echo The command "cmp 10c.O $srcdir/10c.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 10c.E || rm -f 10c.E
$xx -t : +1.1 -1.2 $srcdir/10d.I > 10d.O 2> 10d.E
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 10d.O $srcdir/10d.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 10d"; fi ;;
    1) $echo "Test 10d failed: files 10d.O and $srcdir/10d.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 10d may have failed." 1>&2;
       $echo The command "cmp 10d.O $srcdir/10d.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 10d.E || rm -f 10d.E
$xx -k 2.3,2.3 $srcdir/10a0.I > 10a0.O 2> 10a0.E
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 10a0.O $srcdir/10a0.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 10a0"; fi ;;
    1) $echo "Test 10a0 failed: files 10a0.O and $srcdir/10a0.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 10a0 may have failed." 1>&2;
       $echo The command "cmp 10a0.O $srcdir/10a0.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 10a0.E || rm -f 10a0.E
$xx -k 1.2,1.2 $srcdir/10a1.I > 10a1.O 2> 10a1.E
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 10a1.O $srcdir/10a1.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 10a1"; fi ;;
    1) $echo "Test 10a1 failed: files 10a1.O and $srcdir/10a1.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 10a1 may have failed." 1>&2;
       $echo The command "cmp 10a1.O $srcdir/10a1.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 10a1.E || rm -f 10a1.E
$xx -b -k 2.2,2.2 $srcdir/10a2.I > 10a2.O 2> 10a2.E
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 10a2.O $srcdir/10a2.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 10a2"; fi ;;
    1) $echo "Test 10a2 failed: files 10a2.O and $srcdir/10a2.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 10a2 may have failed." 1>&2;
       $echo The command "cmp 10a2.O $srcdir/10a2.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 10a2.E || rm -f 10a2.E
$xx -k 1.2,1.2 $srcdir/10e.I > 10e.O 2> 10e.E
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 10e.O $srcdir/10e.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 10e"; fi ;;
    1) $echo "Test 10e failed: files 10e.O and $srcdir/10e.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 10e may have failed." 1>&2;
       $echo The command "cmp 10e.O $srcdir/10e.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 10e.E || rm -f 10e.E
$xx -t : -k 1.3,1.3 $srcdir/10f.I > 10f.O 2> 10f.E
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 10f.O $srcdir/10f.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 10f"; fi ;;
    1) $echo "Test 10f failed: files 10f.O and $srcdir/10f.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 10f may have failed." 1>&2;
       $echo The command "cmp 10f.O $srcdir/10f.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 10f.E || rm -f 10f.E
$xx -k 1.4,1.4 $srcdir/10g.I > 10g.O 2> 10g.E
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 10g.O $srcdir/10g.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 10g"; fi ;;
    1) $echo "Test 10g failed: files 10g.O and $srcdir/10g.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 10g may have failed." 1>&2;
       $echo The command "cmp 10g.O $srcdir/10g.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 10g.E || rm -f 10g.E
$xx -t: -k1,1b -k2,2 $srcdir/11a.I > 11a.O 2> 11a.E
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 11a.O $srcdir/11a.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 11a"; fi ;;
    1) $echo "Test 11a failed: files 11a.O and $srcdir/11a.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 11a may have failed." 1>&2;
       $echo The command "cmp 11a.O $srcdir/11a.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 11a.E || rm -f 11a.E
$xx -t: -k1,1b -k2,2 $srcdir/11b.I > 11b.O 2> 11b.E
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 11b.O $srcdir/11b.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 11b"; fi ;;
    1) $echo "Test 11b failed: files 11b.O and $srcdir/11b.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 11b may have failed." 1>&2;
       $echo The command "cmp 11b.O $srcdir/11b.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 11b.E || rm -f 11b.E
$xx -t: -k2,2b -k3,3 $srcdir/11c.I > 11c.O 2> 11c.E
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 11c.O $srcdir/11c.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 11c"; fi ;;
    1) $echo "Test 11c failed: files 11c.O and $srcdir/11c.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 11c may have failed." 1>&2;
       $echo The command "cmp 11c.O $srcdir/11c.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 11c.E || rm -f 11c.E
$xx -t: -k2,2b -k3,3 $srcdir/11d.I > 11d.O 2> 11d.E
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 11d.O $srcdir/11d.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 11d"; fi ;;
    1) $echo "Test 11d failed: files 11d.O and $srcdir/11d.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 11d may have failed." 1>&2;
       $echo The command "cmp 11d.O $srcdir/11d.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 11d.E || rm -f 11d.E
$xx -n -t: +1 $srcdir/12a.I > 12a.O 2> 12a.E
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 12a.O $srcdir/12a.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 12a"; fi ;;
    1) $echo "Test 12a failed: files 12a.O and $srcdir/12a.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 12a may have failed." 1>&2;
       $echo The command "cmp 12a.O $srcdir/12a.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 12a.E || rm -f 12a.E
$xx -n -t: +1 $srcdir/12b.I > 12b.O 2> 12b.E
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 12b.O $srcdir/12b.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 12b"; fi ;;
    1) $echo "Test 12b failed: files 12b.O and $srcdir/12b.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 12b may have failed." 1>&2;
       $echo The command "cmp 12b.O $srcdir/12b.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 12b.E || rm -f 12b.E
$xx -n -t: +1 $srcdir/12c.I > 12c.O 2> 12c.E
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 12c.O $srcdir/12c.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 12c"; fi ;;
    1) $echo "Test 12c failed: files 12c.O and $srcdir/12c.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 12c may have failed." 1>&2;
       $echo The command "cmp 12c.O $srcdir/12c.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 12c.E || rm -f 12c.E
$xx -n -t: +1 $srcdir/12d.I > 12d.O 2> 12d.E
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 12d.O $srcdir/12d.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 12d"; fi ;;
    1) $echo "Test 12d failed: files 12d.O and $srcdir/12d.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 12d may have failed." 1>&2;
       $echo The command "cmp 12d.O $srcdir/12d.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 12d.E || rm -f 12d.E
$xx +0.1n $srcdir/13a.I > 13a.O 2> 13a.E
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 13a.O $srcdir/13a.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 13a"; fi ;;
    1) $echo "Test 13a failed: files 13a.O and $srcdir/13a.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 13a may have failed." 1>&2;
       $echo The command "cmp 13a.O $srcdir/13a.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 13a.E || rm -f 13a.E
$xx +0.1n $srcdir/13b.I > 13b.O 2> 13b.E
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 13b.O $srcdir/13b.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 13b"; fi ;;
    1) $echo "Test 13b failed: files 13b.O and $srcdir/13b.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 13b may have failed." 1>&2;
       $echo The command "cmp 13b.O $srcdir/13b.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 13b.E || rm -f 13b.E
$xx -d -u $srcdir/14a.I > 14a.O 2> 14a.E
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 14a.O $srcdir/14a.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 14a"; fi ;;
    1) $echo "Test 14a failed: files 14a.O and $srcdir/14a.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 14a may have failed." 1>&2;
       $echo The command "cmp 14a.O $srcdir/14a.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 14a.E || rm -f 14a.E
$xx -f -d -u $srcdir/14b.I > 14b.O 2> 14b.E
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 14b.O $srcdir/14b.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 14b"; fi ;;
    1) $echo "Test 14b failed: files 14b.O and $srcdir/14b.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 14b may have failed." 1>&2;
       $echo The command "cmp 14b.O $srcdir/14b.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 14b.E || rm -f 14b.E
$xx -i -u $srcdir/15a.I > 15a.O 2> 15a.E
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 15a.O $srcdir/15a.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 15a"; fi ;;
    1) $echo "Test 15a failed: files 15a.O and $srcdir/15a.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 15a may have failed." 1>&2;
       $echo The command "cmp 15a.O $srcdir/15a.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 15a.E || rm -f 15a.E
$xx -i -u $srcdir/15b.I > 15b.O 2> 15b.E
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 15b.O $srcdir/15b.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 15b"; fi ;;
    1) $echo "Test 15b failed: files 15b.O and $srcdir/15b.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 15b may have failed." 1>&2;
       $echo The command "cmp 15b.O $srcdir/15b.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 15b.E || rm -f 15b.E
$xx -i -u $srcdir/15c.I > 15c.O 2> 15c.E
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 15c.O $srcdir/15c.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 15c"; fi ;;
    1) $echo "Test 15c failed: files 15c.O and $srcdir/15c.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 15c may have failed." 1>&2;
       $echo The command "cmp 15c.O $srcdir/15c.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 15c.E || rm -f 15c.E
$xx -i -u $srcdir/15d.I > 15d.O 2> 15d.E
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 15d.O $srcdir/15d.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 15d"; fi ;;
    1) $echo "Test 15d failed: files 15d.O and $srcdir/15d.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 15d may have failed." 1>&2;
       $echo The command "cmp 15d.O $srcdir/15d.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 15d.E || rm -f 15d.E
$xx -i -u $srcdir/15e.I > 15e.O 2> 15e.E
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 15e.O $srcdir/15e.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 15e"; fi ;;
    1) $echo "Test 15e failed: files 15e.O and $srcdir/15e.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 15e may have failed." 1>&2;
       $echo The command "cmp 15e.O $srcdir/15e.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 15e.E || rm -f 15e.E
$xx -f $srcdir/16a.I > 16a.O 2> 16a.E
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 16a.O $srcdir/16a.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 16a"; fi ;;
    1) $echo "Test 16a failed: files 16a.O and $srcdir/16a.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 16a may have failed." 1>&2;
       $echo The command "cmp 16a.O $srcdir/16a.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 16a.E || rm -f 16a.E
$xx -c $srcdir/17.I > 17.O 2> 17.E
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 17.O $srcdir/17.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 17"; fi ;;
    1) $echo "Test 17 failed: files 17.O and $srcdir/17.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 17 may have failed." 1>&2;
       $echo The command "cmp 17.O $srcdir/17.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 17.E || rm -f 17.E
$xx -k1.1,1.2n $srcdir/18a.I > 18a.O 2> 18a.E
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 18a.O $srcdir/18a.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 18a"; fi ;;
    1) $echo "Test 18a failed: files 18a.O and $srcdir/18a.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 18a may have failed." 1>&2;
       $echo The command "cmp 18a.O $srcdir/18a.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 18a.E || rm -f 18a.E
$xx -b -k1.1,1.2n $srcdir/18b.I > 18b.O 2> 18b.E
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 18b.O $srcdir/18b.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 18b"; fi ;;
    1) $echo "Test 18b failed: files 18b.O and $srcdir/18b.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 18b may have failed." 1>&2;
       $echo The command "cmp 18b.O $srcdir/18b.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 18b.E || rm -f 18b.E
$xx -k1.1,1.2nb $srcdir/18c.I > 18c.O 2> 18c.E
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 18c.O $srcdir/18c.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 18c"; fi ;;
    1) $echo "Test 18c failed: files 18c.O and $srcdir/18c.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 18c may have failed." 1>&2;
       $echo The command "cmp 18c.O $srcdir/18c.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 18c.E || rm -f 18c.E
$xx -k1.1b,1.2n $srcdir/18d.I > 18d.O 2> 18d.E
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 18d.O $srcdir/18d.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 18d"; fi ;;
    1) $echo "Test 18d failed: files 18d.O and $srcdir/18d.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 18d may have failed." 1>&2;
       $echo The command "cmp 18d.O $srcdir/18d.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 18d.E || rm -f 18d.E
$xx -nb -k1.1,1.2 $srcdir/18e.I > 18e.O 2> 18e.E
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 18e.O $srcdir/18e.X
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 18e"; fi ;;
    1) $echo "Test 18e failed: files 18e.O and $srcdir/18e.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 18e may have failed." 1>&2;
       $echo The command "cmp 18e.O $srcdir/18e.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 18e.E || rm -f 18e.E
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