aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-05-10 04:16:43 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-05-10 04:16:43 +0200
commitff0e875e02487b61dcc520b295feb6477b859065 (patch)
tree234845d306bf04446b9839c51b06d18d5f9dc9a6 /testsuite
parent572b9a3019caf0929a41a45e1f3a8c7e59ec141c (diff)
downloadbusybox-ff0e875e02487b61dcc520b295feb6477b859065.tar.gz
work on adding testsuite runs to randomconfig test builds
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/ash.tests4
-rwxr-xr-xtestsuite/cpio.tests4
2 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/ash.tests b/testsuite/ash.tests
index ce585beb1..183394a20 100755
--- a/testsuite/ash.tests
+++ b/testsuite/ash.tests
@@ -9,6 +9,10 @@
test -f "$bindir/.config" && . "$bindir/.config"
+test x"CONFIG_SCRIPT" = x"y" || exit 0
+test x"CONFIG_HEXDUMP" = x"y" || exit 0
+test x"CONFIG_FEATURE_DEVPTS" = x"y" || exit 0
+
# testing "test name" "options" "expected result" "file input" "stdin"
if test x"$CONFIG_UNICODE_PRESERVE_BROKEN" = x"y"; then
diff --git a/testsuite/cpio.tests b/testsuite/cpio.tests
index 325664d71..2b8f0d030 100755
--- a/testsuite/cpio.tests
+++ b/testsuite/cpio.tests
@@ -69,6 +69,7 @@ ln cpio.testdir/empty cpio.testdir/empty1
ln cpio.testdir/nonempty cpio.testdir/nonempty1
mkdir cpio.testdir2
+optional FEATURE_CPIO_O
testing "cpio extracts zero-sized hardlinks 2" \
"find cpio.testdir | cpio -H newc --create | (cd cpio.testdir2 && cpio -i 2>&1); echo \$?;
ls -ln cpio.testdir2/cpio.testdir | $FILTER_LS" \
@@ -82,10 +83,12 @@ ls -ln cpio.testdir2/cpio.testdir | $FILTER_LS" \
-rw-r--r-- 1 $user $group 0 solo
" \
"" ""
+SKIP=
# Was trying to create "/usr/bin", correct is "usr/bin".
rm -rf cpio.testdir
+optional FEATURE_CPIO_P
testing "cpio -p with absolute paths" \
"echo /usr/bin | cpio -dp cpio.testdir 2>&1; echo \$?;
ls cpio.testdir" \
@@ -95,6 +98,7 @@ ls cpio.testdir" \
usr
" \
"" ""
+SKIP=
# Clean up