work on adding testsuite runs to randomconfig test builds

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/testsuite/ash.tests b/testsuite/ash.tests
index ce585be..183394a 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 325664d..2b8f0d0 100755
--- a/testsuite/cpio.tests
+++ b/testsuite/cpio.tests
@@ -69,6 +69,7 @@
 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 @@
 -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 @@
 usr
 " \
 	"" ""
+SKIP=
 
 
 # Clean up