summaryrefslogtreecommitdiff
path: root/testsuite/busybox.tests
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2005-09-04 11:13:10 +0000
committerRob Landley <rob@landley.net>2005-09-04 11:13:10 +0000
commita1a1a9fa2c9b9e15ad15d3a33cc08d3696d01f3f (patch)
treea24cab2434043a59a697ecbe980e9fda9dfabc07 /testsuite/busybox.tests
parentb766c394569cce356fceb63d83da79581c0997b9 (diff)
downloadbusybox-w32-a1a1a9fa2c9b9e15ad15d3a33cc08d3696d01f3f.tar.gz
busybox-w32-a1a1a9fa2c9b9e15ad15d3a33cc08d3696d01f3f.tar.bz2
busybox-w32-a1a1a9fa2c9b9e15ad15d3a33cc08d3696d01f3f.zip
Remove trailing crud from busybox.tests. (Sleep deprivation strikes again...)
Diffstat (limited to 'testsuite/busybox.tests')
-rwxr-xr-xtestsuite/busybox.tests75
1 files changed, 0 insertions, 75 deletions
diff --git a/testsuite/busybox.tests b/testsuite/busybox.tests
index f26f01b0c..ba422a40c 100755
--- a/testsuite/busybox.tests
+++ b/testsuite/busybox.tests
@@ -45,79 +45,4 @@ testing "busybox as unknown name" "2>&1" "unknown: applet not found\n" "" ""
45 45
46rm -f busybox-suffix unknown 46rm -f busybox-suffix unknown
47 47
48exit
49
50General cleanup of command line parsing to allow "busybox" to work as a prefix.
51(I.E. any argv[0] that starts with "busybox" winds up in busybox_main().)
52
53Tests:
54./busybox
55./busybox-walrus
56./busybox ls
57./busybox-walrus ls
58./busybox --help
59./busybox-walrus --help
60./busybox --help ls
61./busybox-walrus --help ls
62./busybox --help walrus
63./busybox-walrus --help walrus
64
65
66
67
68
69
70
71
72
73# These tests require the full option set.
74
75# Longish chunk of data re-used by the next few tests
76
77data="42 1 3 woot
7842 1 010 zoology
79egg 1 2 papyrus
807 3 42 soup
81999 3 0 algebra
82"
83
84# Sorting with keys
85
86testing "sort one key" "-k4,4 input" \
87"999 3 0 algebra
88egg 1 2 papyrus
897 3 42 soup
9042 1 3 woot
9142 1 010 zoology
92" "$data" ""
93
94testing "sort key range with numeric option" "-k2,3n input" \
95"42 1 010 zoology
9642 1 3 woot
97egg 1 2 papyrus
987 3 42 soup
99999 3 0 algebra
100" "$data" ""
101
102# Busybox is definitely doing this one wrong just now...
103
104testing "sort key range with numeric option and global reverse" \
105"-k2,3n -r input" \
106"egg 1 2 papyrus
10742 1 3 woot
10842 1 010 zoology
109999 3 0 algebra
1107 3 42 soup
111" "$data" ""
112
113#
114
115testing "sort key range with multiple options" "-k2,3rn input" \
116"7 3 42 soup
117999 3 0 algebra
11842 1 010 zoology
11942 1 3 woot
120egg 1 2 papyrus
121" "$data" ""
122
123exit $FAILCOUNT 48exit $FAILCOUNT