aboutsummaryrefslogtreecommitdiff
path: root/testsuite/bzcat.tests
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2018-02-09 09:01:19 +0000
committerDenys Vlasenko <vda.linux@googlemail.com>2018-02-12 15:32:02 +0100
commitecaec1dbecda67e5b740694878c0780eb4347d26 (patch)
tree950dac8ecc0efd67affc76d330883c6d0c1bc065 /testsuite/bzcat.tests
parent7f441403cbcb6cce864bae66e1fc7bb626954e04 (diff)
downloadbusybox-w32-ecaec1dbecda67e5b740694878c0780eb4347d26.tar.gz
busybox-w32-ecaec1dbecda67e5b740694878c0780eb4347d26.tar.bz2
busybox-w32-ecaec1dbecda67e5b740694878c0780eb4347d26.zip
testsuite: update busybox and bzcat tests
Test scripts that use CONFIG_* variables need to source .config. Since this wasn't being done for busybox many tests were skipped. As a result new failures due to changes in help output were missed. Also remove some unnecessary echos in the bzcat script. Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/bzcat.tests')
-rwxr-xr-xtestsuite/bzcat.tests10
1 files changed, 6 insertions, 4 deletions
diff --git a/testsuite/bzcat.tests b/testsuite/bzcat.tests
index 0ae530dc7..32c1c5d7f 100755
--- a/testsuite/bzcat.tests
+++ b/testsuite/bzcat.tests
@@ -1,5 +1,7 @@
1#!/bin/sh 1#!/bin/sh
2 2
3test -f "$bindir/.config" && . "$bindir/.config"
4
3FAILCOUNT=0 5FAILCOUNT=0
4 6
5bb="busybox " 7bb="busybox "
@@ -73,7 +75,7 @@ done
73 75
74# "input" file is bzipped file with "a\n" data 76# "input" file is bzipped file with "a\n" data
75testing "bzcat can print many files" \ 77testing "bzcat can print many files" \
76"$ECHO -ne '$hexdump' | bzcat input input; echo \$?" \ 78"bzcat input input; echo \$?" \
77"\ 79"\
78a 80a
79a 81a
@@ -86,7 +88,7 @@ a
86 88
87# "input" file is bzipped zero byte file 89# "input" file is bzipped zero byte file
88testing "bzcat can handle compressed zero-length bzip2 files" \ 90testing "bzcat can handle compressed zero-length bzip2 files" \
89"$ECHO -ne '$hexdump' | bzcat input input; echo \$?" \ 91"bzcat input input; echo \$?" \
90"0\n" \ 92"0\n" \
91"\x42\x5a\x68\x39\x17\x72\x45\x38\x50\x90\x00\x00\x00\x00" "" 93"\x42\x5a\x68\x39\x17\x72\x45\x38\x50\x90\x00\x00\x00\x00" ""
92 94
@@ -95,7 +97,7 @@ testing "bzcat can handle compressed zero-length bzip2 files" \
95# "input" file is compressed (.Z) file with "a\n" data 97# "input" file is compressed (.Z) file with "a\n" data
96test x"$CONFIG_UNCOMPRESS" = x"y" && \ 98test x"$CONFIG_UNCOMPRESS" = x"y" && \
97testing "zcat can print many files" \ 99testing "zcat can print many files" \
98"$ECHO -ne '$hexdump' | zcat input input; echo \$?" \ 100"zcat input input; echo \$?" \
99"\ 101"\
100a 102a
101a 103a
@@ -107,7 +109,7 @@ a
107# "input" file is compressed (.Z) zero byte file 109# "input" file is compressed (.Z) zero byte file
108test x"$CONFIG_UNCOMPRESS" = x"y" && \ 110test x"$CONFIG_UNCOMPRESS" = x"y" && \
109testing "zcat can handle compressed zero-length (.Z) files" \ 111testing "zcat can handle compressed zero-length (.Z) files" \
110"$ECHO -ne '$hexdump' | zcat input input; echo \$?" \ 112"zcat input input; echo \$?" \
111"0\n" \ 113"0\n" \
112"\x1f\x9d\x90\x00" "" 114"\x1f\x9d\x90\x00" ""
113 115