aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2015-10-24 02:29:00 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2015-10-24 02:29:00 +0200
commit5c23f2566c1d26c62024cc2c78ca5aad4c99dd33 (patch)
treed0d6dfadf3831123ae0b3cf44f28b01d94ea4111 /testsuite
parent7ab00a0de9cfeeacff70a74402808d225ba07397 (diff)
downloadbusybox-w32-1_24_1.tar.gz
busybox-w32-1_24_1.tar.bz2
busybox-w32-1_24_1.zip
Apply post-1.24.0 patches, bump version to 1.24.11_24_1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/sort.tests36
1 files changed, 36 insertions, 0 deletions
diff --git a/testsuite/sort.tests b/testsuite/sort.tests
index c4b223464..39c7af738 100755
--- a/testsuite/sort.tests
+++ b/testsuite/sort.tests
@@ -106,6 +106,42 @@ a/a:a
106a:b 106a:b
107" "" 107" ""
108 108
109testing "glibc build sort" "sort -t. -k 1,1 -k 2n,2n -k 3 input" "\
110GLIBC_2.1
111GLIBC_2.1.1
112GLIBC_2.2
113GLIBC_2.2.1
114GLIBC_2.10
115GLIBC_2.20
116GLIBC_2.21
117" "\
118GLIBC_2.21
119GLIBC_2.1.1
120GLIBC_2.2.1
121GLIBC_2.2
122GLIBC_2.20
123GLIBC_2.10
124GLIBC_2.1
125" ""
126
127testing "glibc build sort unique" "sort -u -t. -k 1,1 -k 2n,2n -k 3 input" "\
128GLIBC_2.1
129GLIBC_2.1.1
130GLIBC_2.2
131GLIBC_2.2.1
132GLIBC_2.10
133GLIBC_2.20
134GLIBC_2.21
135" "\
136GLIBC_2.10
137GLIBC_2.2.1
138GLIBC_2.1.1
139GLIBC_2.20
140GLIBC_2.2
141GLIBC_2.1
142GLIBC_2.21
143" ""
144
109testing "sort -u should consider field only when discarding" "sort -u -k2 input" "\ 145testing "sort -u should consider field only when discarding" "sort -u -k2 input" "\
110a c 146a c
111" "\ 147" "\