aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-08-02 20:18:29 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-08-02 20:18:29 +0200
commit4cd4eb43320de6ecccb3b69087daee325d0bbfc1 (patch)
tree44db952d0feea229c4359bd5a2f8dc59db5ee07d /testsuite
parent6a98f95373d60d48001299797f52b1f19c7ffecd (diff)
downloadbusybox-w32-4cd4eb43320de6ecccb3b69087daee325d0bbfc1.tar.gz
busybox-w32-4cd4eb43320de6ecccb3b69087daee325d0bbfc1.tar.bz2
busybox-w32-4cd4eb43320de6ecccb3b69087daee325d0bbfc1.zip
apply post-1.14.2 patches
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/ls/ls-1-works6
-rw-r--r--testsuite/ls/ls-h-works6
-rw-r--r--testsuite/ls/ls-l-works4
-rw-r--r--testsuite/ls/ls-s-works4
-rwxr-xr-xtestsuite/test.tests10
5 files changed, 20 insertions, 10 deletions
diff --git a/testsuite/ls/ls-1-works b/testsuite/ls/ls-1-works
index 8ad484fc3..885694920 100644
--- a/testsuite/ls/ls-1-works
+++ b/testsuite/ls/ls-1-works
@@ -1,4 +1,4 @@
1[ -n "$d" ] || d=.. 1[ -n "$d" ] || d=..
2ls -1 "$d" > logfile.gnu 2LC_ALL=C ls -1 "$d" > logfile.gnu
3busybox ls -1 "$d" > logfile.bb 3LC_ALL=C busybox ls -1 "$d" > logfile.bb
4cmp logfile.gnu logfile.bb 4diff -ubw logfile.gnu logfile.bb
diff --git a/testsuite/ls/ls-h-works b/testsuite/ls/ls-h-works
index 7331262c9..0c83f7cc5 100644
--- a/testsuite/ls/ls-h-works
+++ b/testsuite/ls/ls-h-works
@@ -1,4 +1,4 @@
1[ -n "$d" ] || d=.. 1[ -n "$d" ] || d=..
2ls -h "$d" > logfile.gnu 2LC_ALL=C ls -h "$d" > logfile.gnu
3busybox ls -h "$d" > logfile.bb 3LC_ALL=C busybox ls -h "$d" > logfile.bb
4cmp logfile.gnu logfile.bb 4diff -ubw logfile.gnu logfile.bb
diff --git a/testsuite/ls/ls-l-works b/testsuite/ls/ls-l-works
index efc2b196e..1bad34bcf 100644
--- a/testsuite/ls/ls-l-works
+++ b/testsuite/ls/ls-l-works
@@ -1,4 +1,4 @@
1[ -n "$d" ] || d=.. 1[ -n "$d" ] || d=..
2LC_ALL=C ls -l "$d" > logfile.gnu 2LC_ALL=C ls -l "$d" > logfile.gnu
3busybox ls -l "$d" > logfile.bb 3LC_ALL=C busybox ls -l "$d" > logfile.bb
4diff -w logfile.gnu logfile.bb 4diff -ubw logfile.gnu logfile.bb
diff --git a/testsuite/ls/ls-s-works b/testsuite/ls/ls-s-works
index 6c8bf3627..0a9d7526f 100644
--- a/testsuite/ls/ls-s-works
+++ b/testsuite/ls/ls-s-works
@@ -1,4 +1,4 @@
1[ -n "$d" ] || d=.. 1[ -n "$d" ] || d=..
2LC_ALL=C ls -1s "$d" > logfile.gnu 2LC_ALL=C ls -1s "$d" > logfile.gnu
3busybox ls -1s "$d" > logfile.bb 3LC_ALL=C busybox ls -1s "$d" > logfile.bb
4cmp logfile.gnu logfile.bb 4diff -ubw logfile.gnu logfile.bb
diff --git a/testsuite/test.tests b/testsuite/test.tests
index d4be949ec..b7c84d9b2 100755
--- a/testsuite/test.tests
+++ b/testsuite/test.tests
@@ -21,6 +21,11 @@ testing "test '': should be false (1)" \
21 "1\n" \ 21 "1\n" \
22 "" "" 22 "" ""
23 23
24testing "test !: should be true (0)" \
25 "busybox test !; echo \$?" \
26 "0\n" \
27 "" ""
28
24testing "test a: should be true (0)" \ 29testing "test a: should be true (0)" \
25 "busybox test a; echo \$?" \ 30 "busybox test a; echo \$?" \
26 "0\n" \ 31 "0\n" \
@@ -51,6 +56,11 @@ testing "test -lt = -gt: should be false (1)" \
51 "1\n" \ 56 "1\n" \
52 "" "" 57 "" ""
53 58
59testing "test a -a !: should be true (0)" \
60 "busybox test a -a !; echo \$?" \
61 "0\n" \
62 "" ""
63
54testing "test -f = a -o b: should be true (0)" \ 64testing "test -f = a -o b: should be true (0)" \
55 "busybox test -f = a -o b; echo \$?" \ 65 "busybox test -f = a -o b; echo \$?" \
56 "0\n" \ 66 "0\n" \