aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/sort.tests16
1 files changed, 15 insertions, 1 deletions
diff --git a/testsuite/sort.tests b/testsuite/sort.tests
index d1b42532d..cd2e291b2 100755
--- a/testsuite/sort.tests
+++ b/testsuite/sort.tests
@@ -1,4 +1,4 @@
1#!/bin/sh 1#!/bin/bash
2 2
3# SUSv3 compliant sort tests. 3# SUSv3 compliant sort tests.
4# Copyright 2005 by Rob Landley <rob@landley.net> 4# Copyright 2005 by Rob Landley <rob@landley.net>
@@ -66,4 +66,18 @@ testing "sort key range with multiple options" "sort -k2,3rn input" \
66egg 1 2 papyrus 66egg 1 2 papyrus
67" "$data" "" 67" "$data" ""
68 68
69testing "sort key doesn't strip leading blanks, disables fallback global sort" \
70"sort -n -k2 -t ' '" " a \n 1 \n 2 \n" "" " 2 \n 1 \n a \n"
71
72testing "sort key edge case with -t" "sort -n -k4 -t/" \
73"/usr/lib/finish-install.d/1
74/usr/lib/finish-install.d/4
75/usr/lib/prebaseconfig.d/2
76/usr/lib/prebaseconfig.d/6
77" "" "/usr/lib/finish-install.d/1
78/usr/lib/prebaseconfig.d/2
79/usr/lib/finish-install.d/4
80/usr/lib/prebaseconfig.d/6
81"
82
69exit $FAILCOUNT 83exit $FAILCOUNT