summaryrefslogtreecommitdiff
path: root/tests/sort/sort-tests
blob: b556b40eeaa9c06c8e86cf20c344c007bb4f4ef0 (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
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
#! /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

# Make sure we get English translations.
LANGUAGE=C
export LANGUAGE
LC_ALL=C
export LC_ALL
LANG=C
export LANG

$xx -n $srcdir/n1.I > n1.O 2> n1.E
code=$?
if test $code != 0 ; then
  $echo "Test n1 failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp n1.O $srcdir/n1.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed n1"; fi ;;
    1) $echo "Test n1 failed: files n1.O and $srcdir/n1.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test n1 may have failed." 1>&2;
       $echo The command "cmp n1.O $srcdir/n1.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s n1.E || rm -f n1.E
$xx -n $srcdir/n2.I > n2.O 2> n2.E
code=$?
if test $code != 0 ; then
  $echo "Test n2 failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp n2.O $srcdir/n2.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed n2"; fi ;;
    1) $echo "Test n2 failed: files n2.O and $srcdir/n2.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test n2 may have failed." 1>&2;
       $echo The command "cmp n2.O $srcdir/n2.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s n2.E || rm -f n2.E
$xx -n $srcdir/n3.I > n3.O 2> n3.E
code=$?
if test $code != 0 ; then
  $echo "Test n3 failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp n3.O $srcdir/n3.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed n3"; fi ;;
    1) $echo "Test n3 failed: files n3.O and $srcdir/n3.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test n3 may have failed." 1>&2;
       $echo The command "cmp n3.O $srcdir/n3.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s n3.E || rm -f n3.E
$xx -n $srcdir/n4.I > n4.O 2> n4.E
code=$?
if test $code != 0 ; then
  $echo "Test n4 failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp n4.O $srcdir/n4.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed n4"; fi ;;
    1) $echo "Test n4 failed: files n4.O and $srcdir/n4.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test n4 may have failed." 1>&2;
       $echo The command "cmp n4.O $srcdir/n4.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s n4.E || rm -f n4.E
$xx -n $srcdir/n5.I > n5.O 2> n5.E
code=$?
if test $code != 0 ; then
  $echo "Test n5 failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp n5.O $srcdir/n5.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed n5"; fi ;;
    1) $echo "Test n5 failed: files n5.O and $srcdir/n5.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test n5 may have failed." 1>&2;
       $echo The command "cmp n5.O $srcdir/n5.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s n5.E || rm -f n5.E
$xx -n $srcdir/n6.I > n6.O 2> n6.E
code=$?
if test $code != 0 ; then
  $echo "Test n6 failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp n6.O $srcdir/n6.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed n6"; fi ;;
    1) $echo "Test n6 failed: files n6.O and $srcdir/n6.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test n6 may have failed." 1>&2;
       $echo The command "cmp n6.O $srcdir/n6.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s n6.E || rm -f n6.E
$xx -n $srcdir/n7.I > n7.O 2> n7.E
code=$?
if test $code != 0 ; then
  $echo "Test n7 failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp n7.O $srcdir/n7.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed n7"; fi ;;
    1) $echo "Test n7 failed: files n7.O and $srcdir/n7.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test n7 may have failed." 1>&2;
       $echo The command "cmp n7.O $srcdir/n7.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s n7.E || rm -f n7.E
$xx -s -n -k1,1 $srcdir/n8a.I > n8a.O 2> n8a.E
code=$?
if test $code != 0 ; then
  $echo "Test n8a failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp n8a.O $srcdir/n8a.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed n8a"; fi ;;
    1) $echo "Test n8a failed: files n8a.O and $srcdir/n8a.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test n8a may have failed." 1>&2;
       $echo The command "cmp n8a.O $srcdir/n8a.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s n8a.E || rm -f n8a.E
$xx -s -n -k1,1 $srcdir/n8b.I > n8b.O 2> n8b.E
code=$?
if test $code != 0 ; then
  $echo "Test n8b failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp n8b.O $srcdir/n8b.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed n8b"; fi ;;
    1) $echo "Test n8b failed: files n8b.O and $srcdir/n8b.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test n8b may have failed." 1>&2;
       $echo The command "cmp n8b.O $srcdir/n8b.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s n8b.E || rm -f n8b.E
$xx -s -n -k1,1 $srcdir/n9a.I > n9a.O 2> n9a.E
code=$?
if test $code != 0 ; then
  $echo "Test n9a failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp n9a.O $srcdir/n9a.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed n9a"; fi ;;
    1) $echo "Test n9a failed: files n9a.O and $srcdir/n9a.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test n9a may have failed." 1>&2;
       $echo The command "cmp n9a.O $srcdir/n9a.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s n9a.E || rm -f n9a.E
$xx -s -n -k1,1 $srcdir/n9b.I > n9b.O 2> n9b.E
code=$?
if test $code != 0 ; then
  $echo "Test n9b failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp n9b.O $srcdir/n9b.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed n9b"; fi ;;
    1) $echo "Test n9b failed: files n9b.O and $srcdir/n9b.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test n9b may have failed." 1>&2;
       $echo The command "cmp n9b.O $srcdir/n9b.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s n9b.E || rm -f n9b.E
$xx -s -n -k1,1 $srcdir/n10a.I > n10a.O 2> n10a.E
code=$?
if test $code != 0 ; then
  $echo "Test n10a failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp n10a.O $srcdir/n10a.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed n10a"; fi ;;
    1) $echo "Test n10a failed: files n10a.O and $srcdir/n10a.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test n10a may have failed." 1>&2;
       $echo The command "cmp n10a.O $srcdir/n10a.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s n10a.E || rm -f n10a.E
$xx -s -n -k1,1 $srcdir/n10b.I > n10b.O 2> n10b.E
code=$?
if test $code != 0 ; then
  $echo "Test n10b failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp n10b.O $srcdir/n10b.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed n10b"; fi ;;
    1) $echo "Test n10b failed: files n10b.O and $srcdir/n10b.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test n10b may have failed." 1>&2;
       $echo The command "cmp n10b.O $srcdir/n10b.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s n10b.E || rm -f n10b.E
$xx -s -n -k1,1 $srcdir/n11a.I > n11a.O 2> n11a.E
code=$?
if test $code != 0 ; then
  $echo "Test n11a failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp n11a.O $srcdir/n11a.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed n11a"; fi ;;
    1) $echo "Test n11a failed: files n11a.O and $srcdir/n11a.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test n11a may have failed." 1>&2;
       $echo The command "cmp n11a.O $srcdir/n11a.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s n11a.E || rm -f n11a.E
$xx -s -n -k1,1 $srcdir/n11b.I > n11b.O 2> n11b.E
code=$?
if test $code != 0 ; then
  $echo "Test n11b failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp n11b.O $srcdir/n11b.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed n11b"; fi ;;
    1) $echo "Test n11b failed: files n11b.O and $srcdir/n11b.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test n11b may have failed." 1>&2;
       $echo The command "cmp n11b.O $srcdir/n11b.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s n11b.E || rm -f n11b.E
$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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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 > /dev/null 2>&1
  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
$xx +0 +1nr $srcdir/19a.I > 19a.O 2> 19a.E
code=$?
if test $code != 0 ; then
  $echo "Test 19a failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp 19a.O $srcdir/19a.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 19a"; fi ;;
    1) $echo "Test 19a failed: files 19a.O and $srcdir/19a.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 19a may have failed." 1>&2;
       $echo The command "cmp 19a.O $srcdir/19a.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 19a.E || rm -f 19a.E
$xx -k1,1 -k2nr $srcdir/19b.I > 19b.O 2> 19b.E
code=$?
if test $code != 0 ; then
  $echo "Test 19b failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp 19b.O $srcdir/19b.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 19b"; fi ;;
    1) $echo "Test 19b failed: files 19b.O and $srcdir/19b.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 19b may have failed." 1>&2;
       $echo The command "cmp 19b.O $srcdir/19b.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 19b.E || rm -f 19b.E
$xx  $srcdir/20a.I > 20a.O 2> 20a.E
code=$?
if test $code != 0 ; then
  $echo "Test 20a failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp 20a.O $srcdir/20a.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 20a"; fi ;;
    1) $echo "Test 20a failed: files 20a.O and $srcdir/20a.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 20a may have failed." 1>&2;
       $echo The command "cmp 20a.O $srcdir/20a.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 20a.E || rm -f 20a.E
$xx  $srcdir/21a.I > 21a.O 2> 21a.E
code=$?
if test $code != 0 ; then
  $echo "Test 21a failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp 21a.O $srcdir/21a.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 21a"; fi ;;
    1) $echo "Test 21a failed: files 21a.O and $srcdir/21a.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 21a may have failed." 1>&2;
       $echo The command "cmp 21a.O $srcdir/21a.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 21a.E || rm -f 21a.E
$xx -f $srcdir/21b.I > 21b.O 2> 21b.E
code=$?
if test $code != 0 ; then
  $echo "Test 21b failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp 21b.O $srcdir/21b.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 21b"; fi ;;
    1) $echo "Test 21b failed: files 21b.O and $srcdir/21b.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 21b may have failed." 1>&2;
       $echo The command "cmp 21b.O $srcdir/21b.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 21b.E || rm -f 21b.E
$xx -f $srcdir/21c.I > 21c.O 2> 21c.E
code=$?
if test $code != 0 ; then
  $echo "Test 21c failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp 21c.O $srcdir/21c.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 21c"; fi ;;
    1) $echo "Test 21c failed: files 21c.O and $srcdir/21c.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 21c may have failed." 1>&2;
       $echo The command "cmp 21c.O $srcdir/21c.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 21c.E || rm -f 21c.E
$xx -f $srcdir/21d.I > 21d.O 2> 21d.E
code=$?
if test $code != 0 ; then
  $echo "Test 21d failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp 21d.O $srcdir/21d.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 21d"; fi ;;
    1) $echo "Test 21d failed: files 21d.O and $srcdir/21d.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 21d may have failed." 1>&2;
       $echo The command "cmp 21d.O $srcdir/21d.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 21d.E || rm -f 21d.E
$xx -f $srcdir/21e.I > 21e.O 2> 21e.E
code=$?
if test $code != 0 ; then
  $echo "Test 21e failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp 21e.O $srcdir/21e.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 21e"; fi ;;
    1) $echo "Test 21e failed: files 21e.O and $srcdir/21e.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 21e may have failed." 1>&2;
       $echo The command "cmp 21e.O $srcdir/21e.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 21e.E || rm -f 21e.E
$xx -fs $srcdir/21f.I > 21f.O 2> 21f.E
code=$?
if test $code != 0 ; then
  $echo "Test 21f failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp 21f.O $srcdir/21f.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 21f"; fi ;;
    1) $echo "Test 21f failed: files 21f.O and $srcdir/21f.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 21f may have failed." 1>&2;
       $echo The command "cmp 21f.O $srcdir/21f.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 21f.E || rm -f 21f.E
$xx -fu $srcdir/21g.I > 21g.O 2> 21g.E
code=$?
if test $code != 0 ; then
  $echo "Test 21g failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp 21g.O $srcdir/21g.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 21g"; fi ;;
    1) $echo "Test 21g failed: files 21g.O and $srcdir/21g.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 21g may have failed." 1>&2;
       $echo The command "cmp 21g.O $srcdir/21g.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 21g.E || rm -f 21g.E
$xx -k 2,2fd -k 1,1r $srcdir/22a.I > 22a.O 2> 22a.E
code=$?
if test $code != 0 ; then
  $echo "Test 22a failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp 22a.O $srcdir/22a.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 22a"; fi ;;
    1) $echo "Test 22a failed: files 22a.O and $srcdir/22a.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 22a may have failed." 1>&2;
       $echo The command "cmp 22a.O $srcdir/22a.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 22a.E || rm -f 22a.E
$xx -k 2,2d  -k 1,1r $srcdir/22b.I > 22b.O 2> 22b.E
code=$?
if test $code != 0 ; then
  $echo "Test 22b failed: ../../src/sort return code $code differs from expected value 0" 1>&2
  errors=`expr $errors + 1`
else
  cmp 22b.O $srcdir/22b.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed 22b"; fi ;;
    1) $echo "Test 22b failed: files 22b.O and $srcdir/22b.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test 22b may have failed." 1>&2;
       $echo The command "cmp 22b.O $srcdir/22b.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s 22b.E || rm -f 22b.E
$xx no-file  > no-file1.O 2> no-file1.E
code=$?
if test $code != 2 ; then
  $echo "Test no-file1 failed: ../../src/sort return code $code differs from expected value 2" 1>&2
  errors=`expr $errors + 1`
else
  cmp no-file1.O $srcdir/no-file1.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed no-file1"; fi ;;
    1) $echo "Test no-file1 failed: files no-file1.O and $srcdir/no-file1.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test no-file1 may have failed." 1>&2;
       $echo The command "cmp no-file1.O $srcdir/no-file1.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s no-file1.E || rm -f no-file1.E
$xx -o no-such-file no-such-file  > o-no-file1.O 2> o-no-file1.E
code=$?
if test $code != 2 ; then
  $echo "Test o-no-file1 failed: ../../src/sort return code $code differs from expected value 2" 1>&2
  errors=`expr $errors + 1`
else
  cmp o-no-file1.O $srcdir/o-no-file1.X > /dev/null 2>&1
  case $? in
    0) if test "$VERBOSE" ; then $echo "passed o-no-file1"; fi ;;
    1) $echo "Test o-no-file1 failed: files o-no-file1.O and $srcdir/o-no-file1.X differ" 1>&2;
       errors=`expr $errors + 1` ;;
    2) $echo "Test o-no-file1 may have failed." 1>&2;
       $echo The command "cmp o-no-file1.O $srcdir/o-no-file1.X" failed. 1>&2 ;
       errors=`expr $errors + 1` ;;
  esac
fi
test -s o-no-file1.E || rm -f o-no-file1.E
if test $errors = 0 ; then
  $echo Passed all 106 tests. 1>&2
else
  $echo Failed $errors tests. 1>&2
fi
test $errors = 0 || errors=1
exit $errors