diff options
-rwxr-xr-x | testsuite/bzcat.tests | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/testsuite/bzcat.tests b/testsuite/bzcat.tests index 8210d94d4..ad05dcb2c 100755 --- a/testsuite/bzcat.tests +++ b/testsuite/bzcat.tests | |||
@@ -30,10 +30,11 @@ hello_bz2() { | |||
30 | $ECHO -ne "\x17\x72\x45\x38\x50\x90\x5b\xb8\xe8\xa3" | 30 | $ECHO -ne "\x17\x72\x45\x38\x50\x90\x5b\xb8\xe8\xa3" |
31 | } | 31 | } |
32 | 32 | ||
33 | test x"$CONFIG_ZCAT" = x"y" && \ | ||
33 | for ext in \ | 34 | for ext in \ |
34 | `test x"$CONFIG_GUNZIP:$CONFIG_FEATURE_SEAMLESS_GZ" = x"y:y" && echo gz` \ | 35 | `test x"$CONFIG_FEATURE_SEAMLESS_GZ" = x"y" && echo gz` \ |
35 | `test x"$CONFIG_BUNZIP2:$CONFIG_FEATURE_SEAMLESS_BZ2" = x"y:y" && echo bz2` \ | 36 | `test x"$CONFIG_FEATURE_SEAMLESS_BZ2" = x"y" && echo bz2` \ |
36 | `test x"$CONFIG_UNCOMPRESS:$CONFIG_FEATURE_SEAMLESS_Z" = x"y:y" && echo Z` | 37 | `test x"$CONFIG_FEATURE_SEAMLESS_Z" = x"y" && echo Z` |
37 | do | 38 | do |
38 | prep() { | 39 | prep() { |
39 | rm -f t1.$ext t2.$ext t_actual | 40 | rm -f t1.$ext t2.$ext t_actual |
@@ -97,7 +98,7 @@ testing "bzcat can handle compressed zero-length bzip2 files" \ | |||
97 | ## compress algorithm | 98 | ## compress algorithm |
98 | 99 | ||
99 | # "input" file is compressed (.Z) file with "a\n" data | 100 | # "input" file is compressed (.Z) file with "a\n" data |
100 | test x"$CONFIG_UNCOMPRESS" = x"y" && \ | 101 | test x"$CONFIG_ZCAT" = x"y" && \ |
101 | test x"$CONFIG_FEATURE_SEAMLESS_Z" = x"y" && \ | 102 | test x"$CONFIG_FEATURE_SEAMLESS_Z" = x"y" && \ |
102 | testing "zcat can print many files" \ | 103 | testing "zcat can print many files" \ |
103 | "zcat input input; echo \$?" \ | 104 | "zcat input input; echo \$?" \ |
@@ -110,7 +111,7 @@ a | |||
110 | " "" | 111 | " "" |
111 | 112 | ||
112 | # "input" file is compressed (.Z) zero byte file | 113 | # "input" file is compressed (.Z) zero byte file |
113 | test x"$CONFIG_UNCOMPRESS" = x"y" && \ | 114 | test x"$CONFIG_ZCAT" = x"y" && \ |
114 | test x"$CONFIG_FEATURE_SEAMLESS_Z" = x"y" && \ | 115 | test x"$CONFIG_FEATURE_SEAMLESS_Z" = x"y" && \ |
115 | testing "zcat can handle compressed zero-length (.Z) files" \ | 116 | testing "zcat can handle compressed zero-length (.Z) files" \ |
116 | "zcat input input; echo \$?" \ | 117 | "zcat input input; echo \$?" \ |