aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
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" "\