Lines Matching refs:TEST

35 export TEST AWK CC LC_ALL SUM SORT TMP
46 # see TEST=15 below
187 echo \$TEST\$X comparison FAILED
190 echo \$TEST\$X checksum FAILED
193 echo \$TEST\$X FAILED
224 $AWK 'END{ if(NR!='$3') print "'$TEST$1' FAILED" }' $2
355 TEST=01; echo $TEST "-c status, checksum"
363 $SORT -c in 2>/dev/null && echo ${TEST}A FAILED
365 ./xsort B || echo ${TEST}B $SUM is probably unsuitable - see comments
367 $o $SORT -o in +0 in || echo ${TEST}C FAILED
370 TEST=02; echo $TEST "output from -c"
376 $SORT -cr in >out 2>xx && echo ${TEST}A FAILED
377 test -s out && echo ${TEST}B FAILED
380 $SORT -c /dev/null 2>xx || echo ${TEST}C FAILED
381 test -s xx && echo ${TEST}D FAILED
384 TEST=03; echo $TEST "-n"
415 TEST=04; echo $TEST "-b without fields, piping, -c status return"
425 cmp -s xx out >/dev/null || echo ${TEST}B FAILED
427 $SORT in | $SORT -cr 2>/dev/null && echo ${TEST}C FAILED
430 TEST=05; echo $TEST "fields, reverse fields, -c status return"
454 $SORT -c -k 2 in 2>/dev/null && ${TEST}G FAILED
457 TEST=06; echo $TEST "-t"
473 TEST=07; echo $TEST "-t, character positions in fields"
493 TEST=08; echo $TEST "space and tab as -t characters"
532 TEST=09; echo $TEST "alphabetic as -t character"
543 TEST=10; echo $TEST "-m"
572 cmp -s xx out >/dev/null || echo ${TEST}A FAILED
575 TEST=11; echo $TEST "multiple files, -o overwites input, -m, -mu"
589 cmp -s in xx >/dev/null || echo ${TEST}C FAILED
592 TEST=12; echo $TEST "does -mu pick the first among equals?"
615 TEST=13; echo $TEST "long records (>8000 bytes, keys >16000), -r"
632 TEST=14; echo $TEST "-n and -u"
643 $0 < x { print "test '${TEST}C' FAILED"; exit }
650 TEST=15; echo $TEST "force intermediate files if possible"
654 "") echo ${TEST} inadequate test of large files - revise parameters
675 cmp -s in1 out >/dev/null || echo ${TEST}I FAILED
679 TEST=16; echo $TEST "-nr, -nm, file name -"
684 $AWK '$0+0 != 101-NR { print "'${TEST}A' FAILED"; exit }' xx
688 $AWK '$0+0 != -101+NR { print "'${TEST}B' FAILED"; exit }' xx
691 TEST=17; echo $TEST "-d, fields without end, modifier override"
712 TEST=18; echo $TEST "-u on key only"
732 TEST=19; echo $TEST "-i, -d, -f"
796 TEST=20; echo $TEST "-d, -f, -b applies only to fields"
817 TEST=21; echo $TEST "behavior of null bytes"
825 cmp -s in xx >/dev/null && echo ${TEST}A FAILED
826 test "`wc -c <in`" = "`wc -c <xx`" || echo ${TEST}B FAILED
830 TEST=22; echo $TEST "field limits"
847 TEST=23; echo $TEST "empty file, compact -o"
852 cmp -s xx /dev/null >/dev/null || echo ${TEST}A FAILED
854 $SORT -c </dev/null || echo ${TEST}B FAILED
856 $SORT -cu </dev/null || echo ${TEST}C FAILED
859 TEST=24; echo $TEST "many fields"
886 TEST=25; echo $TEST "variously specified alpha fields"
915 $SORT -c -t: -k2n xx 2>/dev/null || echo ${TEST}A FAILED
917 $SORT -c -t: -k3n xx 2>/dev/null || echo ${TEST}B FAILED
919 $SORT -c -t: -k4n xx 2>/dev/null || echo ${TEST}C FAILED
921 $SORT -c -t: -k5n xx 2>/dev/null || echo ${TEST}D FAILED
923 $SORT -c -t: -k6n xx 2>/dev/null || echo ${TEST}E FAILED
925 $SORT -c -t: -k7n xx 2>/dev/null || echo ${TEST}F FAILED
927 $SORT -c -t: -k8n xx 2>/dev/null || echo ${TEST}G FAILED
929 $SORT -c -t: -k3n xx 2>/dev/null || echo ${TEST}H FAILED\
933 TEST=26; echo $TEST "empty fields, out of bounds fields "
947 TEST=27; echo $TEST "displaced -o"
950 $O $SORT /dev/null -o out || $o echo ${TEST}B FAILED
951 $O test -f out || $O echo ${TEST}C FAILED
954 TEST=28; echo $TEST "apparently nonmonotone field specs"
967 TEST=29; echo $TEST "determination of end of option list"
973 $SORT -- -k </dev/null >xx || echo ${TEST}A argument FAILED
974 cmp -s xx -k || echo ${TEST}A comparison FAILED
984 cmp -s in out >/dev/null || echo ${TEST}C FAILED
985 test -s in1 && echo ${TEST}D FAILED
988 TEST=30; echo $TEST "missing newline"
995 TEST=31; echo $TEST "-M, multiple fields"
1044 TEST=32; echo $TEST "-M case insensitivity, -r"
1061 TEST=33; echo $TEST "-g, big enough for IEEE floating point"
1094 TEST=34; echo $TEST "-g wide operands"
1120 TEST=35; echo $TEST "-g, -u with different fp reps"
1144 $g $SORT -gu in >xx && $g $SORT -c -gu xx || echo ${TEST}B FAILED
1148 TEST=36; echo $TEST "-s"
1169 TEST=37; echo $TEST "-s, multiple files"
1187 $s cmp -s xx out >/dev/null || echo ${TEST}A FAILED
1196 $s cmp -s xx out >/dev/null || echo ${TEST}B FAILED
1199 TEST=38; echo $TEST "-s"
1212 func stop() { print "'$TEST' FAILED"; exit }
1221 TEST=39; echo $TEST "empty fields"
1234 TEST=40; echo $TEST "deceptive field boundaries"
1254 TEST=41; echo $TEST "fixed length records"