aboutsummaryrefslogtreecommitdiff
path: root/testsuite/sort.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/sort.tests')
-rwxr-xr-xtestsuite/sort.tests44
1 files changed, 44 insertions, 0 deletions
diff --git a/testsuite/sort.tests b/testsuite/sort.tests
index c4b223464..c51a8e475 100755
--- a/testsuite/sort.tests
+++ b/testsuite/sort.tests
@@ -106,6 +106,50 @@ a/a:a
106a:b 106a:b
107" "" 107" ""
108 108
109testing "sort with ENDCHAR" "sort -t. -k1,1.1 -k2 input" "\
110ab.1
111aa.2
112" "\
113aa.2
114ab.1
115" ""
116
117testing "glibc build sort" "sort -t. -k 1,1 -k 2n,2n -k 3 input" "\
118GLIBC_2.1
119GLIBC_2.1.1
120GLIBC_2.2
121GLIBC_2.2.1
122GLIBC_2.10
123GLIBC_2.20
124GLIBC_2.21
125" "\
126GLIBC_2.21
127GLIBC_2.1.1
128GLIBC_2.2.1
129GLIBC_2.2
130GLIBC_2.20
131GLIBC_2.10
132GLIBC_2.1
133" ""
134
135testing "glibc build sort unique" "sort -u -t. -k 1,1 -k 2n,2n -k 3 input" "\
136GLIBC_2.1
137GLIBC_2.1.1
138GLIBC_2.2
139GLIBC_2.2.1
140GLIBC_2.10
141GLIBC_2.20
142GLIBC_2.21
143" "\
144GLIBC_2.10
145GLIBC_2.2.1
146GLIBC_2.1.1
147GLIBC_2.20
148GLIBC_2.2
149GLIBC_2.1
150GLIBC_2.21
151" ""
152
109testing "sort -u should consider field only when discarding" "sort -u -k2 input" "\ 153testing "sort -u should consider field only when discarding" "sort -u -k2 input" "\
110a c 154a c
111" "\ 155" "\