Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/testsuite/sort.tests
- Timestamp:
- Feb 25, 2011, 9:26:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi-busybox/testsuite/sort.tests
r1765 r2725 1 #!/bin/ bash1 #!/bin/sh 2 2 3 3 # SUSv3 compliant sort tests. 4 4 # Copyright 2005 by Rob Landley <rob@landley.net> 5 # Licensed under GPL v2, see file LICENSE for details.5 # Licensed under GPLv2, see file LICENSE in this source tree. 6 6 7 . testing.sh7 . ./testing.sh 8 8 9 9 # The basic tests. These should work even with the small busybox. … … 28 28 " 29 29 30 # testing "description" "command(s)" "result" "infile" "stdin" 31 30 32 # Sorting with keys 31 33 … … 46 48 " "$data" "" 47 49 48 # Busybox is definitely doing this one wrong just now. FIXME 49 50 test x"$SKIP_KNOWN_BUGS" = x"" && { 51 # Busybox is definitely doing these wrong. FIXME 50 52 testing "sort key range with numeric option and global reverse" \ 51 53 "sort -k2,3n -r input" \ … … 57 59 " "$data" "" 58 60 59 #60 61 61 testing "sort key range with multiple options" "sort -k2,3rn input" \ 62 62 "7 3 42 soup … … 66 66 egg 1 2 papyrus 67 67 " "$data" "" 68 } 68 69 69 70 testing "sort key range with two -k options" "sort -k 2,2n -k 1,1r input" "\ … … 108 109 " "" 109 110 111 testing "sort -z outputs NUL terminated lines" "sort -z input" "\ 112 one\0three\0two\0\ 113 " "\ 114 one\0two\0three\0\ 115 " "" 116 110 117 testing "sort key doesn't strip leading blanks, disables fallback global sort" \ 111 118 "sort -n -k2 -t ' '" " a \n 1 \n 2 \n" "" " 2 \n 1 \n a \n" 112 119 120 testing "sort file in place" \ 121 "sort -o input input && cat input" "\ 122 111 123 222 124 " "\ 125 222 126 111 127 " "" 128 129 # testing "description" "command(s)" "result" "infile" "stdin" 130 113 131 exit $FAILCOUNT
Note:
See TracChangeset
for help on using the changeset viewer.