diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-10 02:47:32 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-10 02:47:32 +0100 |
| commit | 1fbcb805a370e2e5f8ccfd4a45dff3ae401cd8bb (patch) | |
| tree | 4c97804c6217e534851ee39ad5bce79d108790d1 | |
| parent | ce9b97f18bfdd594013dec330e05310125d2ef8d (diff) | |
| download | busybox-w32-1fbcb805a370e2e5f8ccfd4a45dff3ae401cd8bb.tar.gz busybox-w32-1fbcb805a370e2e5f8ccfd4a45dff3ae401cd8bb.tar.bz2 busybox-w32-1fbcb805a370e2e5f8ccfd4a45dff3ae401cd8bb.zip | |
cpio: add a test for recent fix
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| -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 56f1885ac..75f085873 100755 --- a/testsuite/cpio.tests +++ b/testsuite/cpio.tests | |||
| @@ -42,6 +42,7 @@ total 0 | |||
| 42 | " \ | 42 | " \ |
| 43 | "" "" | 43 | "" "" |
| 44 | 44 | ||
| 45 | |||
| 45 | test x"$SKIP_KNOWN_BUGS" = x"" && { | 46 | test x"$SKIP_KNOWN_BUGS" = x"" && { |
| 46 | # Currently fails. Numerous buglets: "1 blocks" versus "1 block", | 47 | # Currently fails. Numerous buglets: "1 blocks" versus "1 block", |
| 47 | # "1 block" must go to stderr, does not list cpio.testdir/x and cpio.testdir/y | 48 | # "1 block" must go to stderr, does not list cpio.testdir/x and cpio.testdir/y |
| @@ -57,6 +58,7 @@ cpio.testdir/y | |||
| 57 | "" "" | 58 | "" "" |
| 58 | } | 59 | } |
| 59 | 60 | ||
| 61 | |||
| 60 | # More complex case | 62 | # More complex case |
| 61 | rm -rf cpio.testdir cpio.testdir2 2>/dev/null | 63 | rm -rf cpio.testdir cpio.testdir2 2>/dev/null |
| 62 | mkdir cpio.testdir | 64 | mkdir cpio.testdir |
| @@ -82,6 +84,20 @@ total 8 | |||
| 82 | " \ | 84 | " \ |
| 83 | "" "" | 85 | "" "" |
| 84 | 86 | ||
| 87 | |||
| 88 | # Was trying to create "/usr/bin", correct is "usr/bin". | ||
| 89 | rm -rf cpio.testdir | ||
| 90 | testing "cpio -p with absolute paths" \ | ||
| 91 | "echo /usr/bin | cpio -dp cpio.testdir; echo \$?; | ||
| 92 | ls cpio.testdir" \ | ||
| 93 | "\ | ||
| 94 | 1 blocks | ||
| 95 | 0 | ||
| 96 | usr | ||
| 97 | " \ | ||
| 98 | "" "" | ||
| 99 | |||
| 100 | |||
| 85 | # Clean up | 101 | # Clean up |
| 86 | rm -rf cpio.testdir cpio.testdir2 2>/dev/null | 102 | rm -rf cpio.testdir cpio.testdir2 2>/dev/null |
| 87 | 103 | ||
