aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
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 @@
9 9
10test -f "$bindir/.config" && . "$bindir/.config" 10test -f "$bindir/.config" && . "$bindir/.config"
11 11
12test x"CONFIG_SCRIPT" = x"y" || exit 0
13test x"CONFIG_HEXDUMP" = x"y" || exit 0
14test x"CONFIG_FEATURE_DEVPTS" = x"y" || exit 0
15
12# testing "test name" "options" "expected result" "file input" "stdin" 16# testing "test name" "options" "expected result" "file input" "stdin"
13 17
14if test x"$CONFIG_UNICODE_PRESERVE_BROKEN" = x"y"; then 18if 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
69ln cpio.testdir/nonempty cpio.testdir/nonempty1 69ln cpio.testdir/nonempty cpio.testdir/nonempty1
70mkdir cpio.testdir2 70mkdir cpio.testdir2
71 71
72optional FEATURE_CPIO_O
72testing "cpio extracts zero-sized hardlinks 2" \ 73testing "cpio extracts zero-sized hardlinks 2" \
73"find cpio.testdir | cpio -H newc --create | (cd cpio.testdir2 && cpio -i 2>&1); echo \$?; 74"find cpio.testdir | cpio -H newc --create | (cd cpio.testdir2 && cpio -i 2>&1); echo \$?;
74ls -ln cpio.testdir2/cpio.testdir | $FILTER_LS" \ 75ls -ln cpio.testdir2/cpio.testdir | $FILTER_LS" \
@@ -82,10 +83,12 @@ ls -ln cpio.testdir2/cpio.testdir | $FILTER_LS" \
82-rw-r--r-- 1 $user $group 0 solo 83-rw-r--r-- 1 $user $group 0 solo
83" \ 84" \
84 "" "" 85 "" ""
86SKIP=
85 87
86 88
87# Was trying to create "/usr/bin", correct is "usr/bin". 89# Was trying to create "/usr/bin", correct is "usr/bin".
88rm -rf cpio.testdir 90rm -rf cpio.testdir
91optional FEATURE_CPIO_P
89testing "cpio -p with absolute paths" \ 92testing "cpio -p with absolute paths" \
90"echo /usr/bin | cpio -dp cpio.testdir 2>&1; echo \$?; 93"echo /usr/bin | cpio -dp cpio.testdir 2>&1; echo \$?;
91ls cpio.testdir" \ 94ls cpio.testdir" \
@@ -95,6 +98,7 @@ ls cpio.testdir" \
95usr 98usr
96" \ 99" \
97 "" "" 100 "" ""
101SKIP=
98 102
99 103
100# Clean up 104# Clean up