diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2010-09-02 18:38:00 -0700 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-09-03 17:09:51 +0200 |
commit | eb2bf5b6bfd04f7e123d7561725b00f807486849 (patch) | |
tree | fe88db7e8ac340c4e8e1c9f3f62dee70e49021f5 /testsuite/tar.tests | |
parent | 2ab3acb2747f43892641176491b0a0c09f11f086 (diff) | |
download | busybox-w32-eb2bf5b6bfd04f7e123d7561725b00f807486849.tar.gz busybox-w32-eb2bf5b6bfd04f7e123d7561725b00f807486849.tar.bz2 busybox-w32-eb2bf5b6bfd04f7e123d7561725b00f807486849.zip |
Fix some test cases
The tar tests still don't pass, but at least now it's because of
a problem with Busybox and not the tests themselves.
Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'testsuite/tar.tests')
-rwxr-xr-x | testsuite/tar.tests | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuite/tar.tests b/testsuite/tar.tests index cef16b65e..8b2523ff1 100755 --- a/testsuite/tar.tests +++ b/testsuite/tar.tests | |||
@@ -55,11 +55,13 @@ rm -rf input_* test.tar 2>/dev/null | |||
55 | chmod 741 input_hard1 | 55 | chmod 741 input_hard1 |
56 | ln input_hard1 input_hard2 | 56 | ln input_hard1 input_hard2 |
57 | mkdir input_dir | 57 | mkdir input_dir |
58 | chmod 550 input_dir | ||
59 | ln input_hard1 input_dir | 58 | ln input_hard1 input_dir |
60 | ln input_hard2 input_dir | 59 | ln input_hard2 input_dir |
60 | chmod 550 input_dir | ||
61 | tar cf test.tar input_* | 61 | tar cf test.tar input_* |
62 | tar tvf test.tar | sed "s/.*[0-9] input/input/" | 62 | tar tvf test.tar | sed "s/.*[0-9] input/input/" |
63 | chmod 770 input_dir | ||
64 | rm -rf input_* | ||
63 | tar xf test.tar 2>&1 | 65 | tar xf test.tar 2>&1 |
64 | echo Ok: $? | 66 | echo Ok: $? |
65 | ls -l . input_dir/* | grep input_ | sed "s/\\(^[^ ]*\\) .* input/\\1 input/" | 67 | ls -l . input_dir/* | grep input_ | sed "s/\\(^[^ ]*\\) .* input/\\1 input/" |
@@ -86,11 +88,13 @@ rm -rf input_* test.tar 2>/dev/null | |||
86 | chmod 741 input_file | 88 | chmod 741 input_file |
87 | ln -s input_file input_soft | 89 | ln -s input_file input_soft |
88 | mkdir input_dir | 90 | mkdir input_dir |
89 | chmod 550 input_dir | ||
90 | ln input_file input_dir | 91 | ln input_file input_dir |
91 | ln input_soft input_dir | 92 | ln input_soft input_dir |
93 | chmod 550 input_dir | ||
92 | tar cf test.tar input_* | 94 | tar cf test.tar input_* |
93 | tar tvf test.tar | sed "s/.*[0-9] input/input/" | sort | 95 | tar tvf test.tar | sed "s/.*[0-9] input/input/" | sort |
96 | chmod 770 input_dir | ||
97 | rm -rf input_* | ||
94 | tar xf test.tar 2>&1 | 98 | tar xf test.tar 2>&1 |
95 | echo Ok: $? | 99 | echo Ok: $? |
96 | ls -l . input_dir/* | grep input_ | sed "s/\\(^[^ ]*\\) .* input/\\1 input/" | 100 | ls -l . input_dir/* | grep input_ | sed "s/\\(^[^ ]*\\) .* input/\\1 input/" |