diff options
author | Denys Vlasenko | 2010-01-10 02:47:32 +0100 |
---|---|---|
committer | Denys Vlasenko | 2010-01-10 02:47:32 +0100 |
commit | 1fbcb805a370e2e5f8ccfd4a45dff3ae401cd8bb (patch) | |
tree | 4c97804c6217e534851ee39ad5bce79d108790d1 /testsuite/cpio.tests | |
parent | ce9b97f18bfdd594013dec330e05310125d2ef8d (diff) | |
download | busybox-1fbcb805a370e2e5f8ccfd4a45dff3ae401cd8bb.zip busybox-1fbcb805a370e2e5f8ccfd4a45dff3ae401cd8bb.tar.gz |
cpio: add a test for recent fix
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/cpio.tests')
-rwxr-xr-x | testsuite/cpio.tests | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/cpio.tests b/testsuite/cpio.tests index 56f1885..75f0858 100755 --- a/testsuite/cpio.tests +++ b/testsuite/cpio.tests @@ -42,6 +42,7 @@ total 0 " \ "" "" + test x"$SKIP_KNOWN_BUGS" = x"" && { # Currently fails. Numerous buglets: "1 blocks" versus "1 block", # "1 block" must go to stderr, does not list cpio.testdir/x and cpio.testdir/y @@ -57,6 +58,7 @@ cpio.testdir/y "" "" } + # More complex case rm -rf cpio.testdir cpio.testdir2 2>/dev/null mkdir cpio.testdir @@ -82,6 +84,20 @@ total 8 " \ "" "" + +# Was trying to create "/usr/bin", correct is "usr/bin". +rm -rf cpio.testdir +testing "cpio -p with absolute paths" \ +"echo /usr/bin | cpio -dp cpio.testdir; echo \$?; +ls cpio.testdir" \ +"\ +1 blocks +0 +usr +" \ + "" "" + + # Clean up rm -rf cpio.testdir cpio.testdir2 2>/dev/null |