[PATCH] testsuite: check uudecode before using it

Chen Qi Qi.Chen at windriver.com
Tue Nov 13 05:44:10 UTC 2018


The unzip and tar test cases use uudecode command, so also
check it via optional function.

Signed-off-by: Chen Qi <Qi.Chen at windriver.com>
---
 testsuite/tar.tests   | 2 +-
 testsuite/unzip.tests | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/testsuite/tar.tests b/testsuite/tar.tests
index d71a349..8c88567 100755
--- a/testsuite/tar.tests
+++ b/testsuite/tar.tests
@@ -336,7 +336,7 @@ SKIP=
 cd .. || exit 1; rm -rf tar.tempdir 2>/dev/null
 
 mkdir tar.tempdir && cd tar.tempdir || exit 1
-optional FEATURE_SEAMLESS_BZ2 FEATURE_TAR_AUTODETECT LS
+optional FEATURE_SEAMLESS_BZ2 FEATURE_TAR_AUTODETECT LS UUDECODE
 testing "Symlink attack: create symlink and then write through it" '\
 exec 2>&1
 uudecode -o input && tar xvf input; echo $?
diff --git a/testsuite/unzip.tests b/testsuite/unzip.tests
index af53de9..3b45ece 100755
--- a/testsuite/unzip.tests
+++ b/testsuite/unzip.tests
@@ -31,7 +31,7 @@ rmdir foo
 rm foo.zip
 
 # File containing some damaged encrypted stream
-optional FEATURE_UNZIP_CDF
+optional FEATURE_UNZIP_CDF UUDECODE
 testing "unzip (bad archive)" "uudecode; unzip bad.zip 2>&1; echo \$?" \
 "Archive:  bad.zip
   inflating: ]3j½r«IK-%Ix
-- 
2.7.4



More information about the busybox mailing list