diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-06-27 10:35:45 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-06-27 10:35:45 +0200 |
commit | a429d5d0f3cbd50be47eea9b839a3bf87d38bf3f (patch) | |
tree | 425595e7dea0d88402ee68c34f2798c836c6a3c5 /testsuite | |
parent | 5738823dff9f7a6906c59516d60f8a0fc83a3ad9 (diff) | |
download | busybox-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-x | testsuite/bzcat.tests | 10 |
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 | ||
33 | for ext in \ | 33 | for 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` |
37 | do | 37 | do |
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 |
98 | test x"$CONFIG_UNCOMPRESS" = x"y" && \ | 100 | test x"$CONFIG_UNCOMPRESS" = x"y" && \ |
101 | test x"$CONFIG_FEATURE_SEAMLESS_Z" = x"y" && \ | ||
99 | testing "zcat can print many files" \ | 102 | testing "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 |
110 | test x"$CONFIG_UNCOMPRESS" = x"y" && \ | 113 | test x"$CONFIG_UNCOMPRESS" = x"y" && \ |
114 | test x"$CONFIG_FEATURE_SEAMLESS_Z" = x"y" && \ | ||
111 | testing "zcat can handle compressed zero-length (.Z) files" \ | 115 | testing "zcat can handle compressed zero-length (.Z) files" \ |
112 | "zcat input input; echo \$?" \ | 116 | "zcat input input; echo \$?" \ |
113 | "0\n" \ | 117 | "0\n" \ |