diff options
author | Denys Vlasenko | 2018-06-27 10:35:45 +0200 |
---|---|---|
committer | Denys Vlasenko | 2018-06-27 10:35:45 +0200 |
commit | a429d5d0f3cbd50be47eea9b839a3bf87d38bf3f (patch) | |
tree | 425595e7dea0d88402ee68c34f2798c836c6a3c5 | |
parent | 5738823dff9f7a6906c59516d60f8a0fc83a3ad9 (diff) | |
download | busybox-a429d5d0f3cbd50be47eea9b839a3bf87d38bf3f.zip busybox-a429d5d0f3cbd50be47eea9b839a3bf87d38bf3f.tar.gz |
testsuite/bzcat.tests: fix false positive
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-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 32c1c5d..8210d94 100755 --- a/testsuite/bzcat.tests +++ b/testsuite/bzcat.tests @@ -31,9 +31,9 @@ hello_bz2() { } for ext in \ - `test x"$CONFIG_GUNZIP" = x"y" && echo gz` \ - `test x"$CONFIG_BUNZIP2" = x"y" && echo bz2` \ - `test x"$CONFIG_UNCOMPRESS" = x"y" && echo Z` + `test x"$CONFIG_GUNZIP:$CONFIG_FEATURE_SEAMLESS_GZ" = x"y:y" && echo gz` \ + `test x"$CONFIG_BUNZIP2:$CONFIG_FEATURE_SEAMLESS_BZ2" = x"y:y" && echo bz2` \ + `test x"$CONFIG_UNCOMPRESS:$CONFIG_FEATURE_SEAMLESS_Z" = x"y:y" && echo Z` do prep() { rm -f t1.$ext t2.$ext t_actual @@ -47,6 +47,8 @@ do echo "PASS: $1" else echo "FAIL: $1" + #echo "t_actual:" + #cat t_actual FAILCOUNT=$((FAILCOUNT + 1)) fi } @@ -96,6 +98,7 @@ testing "bzcat can handle compressed zero-length bzip2 files" \ # "input" file is compressed (.Z) file with "a\n" data test x"$CONFIG_UNCOMPRESS" = x"y" && \ +test x"$CONFIG_FEATURE_SEAMLESS_Z" = x"y" && \ testing "zcat can print many files" \ "zcat input input; echo \$?" \ "\ @@ -108,6 +111,7 @@ a # "input" file is compressed (.Z) zero byte file test x"$CONFIG_UNCOMPRESS" = x"y" && \ +test x"$CONFIG_FEATURE_SEAMLESS_Z" = x"y" && \ testing "zcat can handle compressed zero-length (.Z) files" \ "zcat input input; echo \$?" \ "0\n" \ |