aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-06-27 10:35:45 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2018-06-27 10:35:45 +0200
commita429d5d0f3cbd50be47eea9b839a3bf87d38bf3f (patch)
tree425595e7dea0d88402ee68c34f2798c836c6a3c5 /testsuite
parent5738823dff9f7a6906c59516d60f8a0fc83a3ad9 (diff)
downloadbusybox-w32-a429d5d0f3cbd50be47eea9b839a3bf87d38bf3f.tar.gz
busybox-w32-a429d5d0f3cbd50be47eea9b839a3bf87d38bf3f.tar.bz2
busybox-w32-a429d5d0f3cbd50be47eea9b839a3bf87d38bf3f.zip
testsuite/bzcat.tests: fix false positive
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/bzcat.tests10
1 files changed, 7 insertions, 3 deletions
diff --git a/testsuite/bzcat.tests b/testsuite/bzcat.tests
index 32c1c5d7f..8210d94d4 100755
--- a/testsuite/bzcat.tests
+++ b/testsuite/bzcat.tests
@@ -31,9 +31,9 @@ hello_bz2() {
31} 31}
32 32
33for ext in \ 33for ext in \
34 `test x"$CONFIG_GUNZIP" = x"y" && echo gz` \ 34 `test x"$CONFIG_GUNZIP:$CONFIG_FEATURE_SEAMLESS_GZ" = x"y:y" && echo gz` \
35 `test x"$CONFIG_BUNZIP2" = x"y" && echo bz2` \ 35 `test x"$CONFIG_BUNZIP2:$CONFIG_FEATURE_SEAMLESS_BZ2" = x"y:y" && echo bz2` \
36 `test x"$CONFIG_UNCOMPRESS" = x"y" && echo Z` 36 `test x"$CONFIG_UNCOMPRESS:$CONFIG_FEATURE_SEAMLESS_Z" = x"y:y" && echo Z`
37do 37do
38 prep() { 38 prep() {
39 rm -f t1.$ext t2.$ext t_actual 39 rm -f t1.$ext t2.$ext t_actual
@@ -47,6 +47,8 @@ do
47 echo "PASS: $1" 47 echo "PASS: $1"
48 else 48 else
49 echo "FAIL: $1" 49 echo "FAIL: $1"
50 #echo "t_actual:"
51 #cat t_actual
50 FAILCOUNT=$((FAILCOUNT + 1)) 52 FAILCOUNT=$((FAILCOUNT + 1))
51 fi 53 fi
52 } 54 }
@@ -96,6 +98,7 @@ testing "bzcat can handle compressed zero-length bzip2 files" \
96 98
97# "input" file is compressed (.Z) file with "a\n" data 99# "input" file is compressed (.Z) file with "a\n" data
98test x"$CONFIG_UNCOMPRESS" = x"y" && \ 100test x"$CONFIG_UNCOMPRESS" = x"y" && \
101test x"$CONFIG_FEATURE_SEAMLESS_Z" = x"y" && \
99testing "zcat can print many files" \ 102testing "zcat can print many files" \
100"zcat input input; echo \$?" \ 103"zcat input input; echo \$?" \
101"\ 104"\
@@ -108,6 +111,7 @@ a
108 111
109# "input" file is compressed (.Z) zero byte file 112# "input" file is compressed (.Z) zero byte file
110test x"$CONFIG_UNCOMPRESS" = x"y" && \ 113test x"$CONFIG_UNCOMPRESS" = x"y" && \
114test x"$CONFIG_FEATURE_SEAMLESS_Z" = x"y" && \
111testing "zcat can handle compressed zero-length (.Z) files" \ 115testing "zcat can handle compressed zero-length (.Z) files" \
112"zcat input input; echo \$?" \ 116"zcat input input; echo \$?" \
113"0\n" \ 117"0\n" \