aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2010-09-11 00:28:50 -0700
committerDenys Vlasenko <dvlasenk@redhat.com>2010-09-12 16:19:33 +0200
commit80d80ba6dd9e91cca471ce767c8032a0f0db4244 (patch)
tree8cff82a3d5fe20d2d4ad05f5546f35643457e6c2
parent819cacfd4597038840454ee743380fd70f836271 (diff)
downloadbusybox-w32-80d80ba6dd9e91cca471ce767c8032a0f0db4244.tar.gz
busybox-w32-80d80ba6dd9e91cca471ce767c8032a0f0db4244.tar.bz2
busybox-w32-80d80ba6dd9e91cca471ce767c8032a0f0db4244.zip
Fixed a couple of failing tar tests
The tar symlinks mode test is fixed similarly to the hardlinks test in 0d7cb4cc, and the read-only test is skipped by SKIP_KNOWN_BUGS. Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
-rwxr-xr-xtestsuite/tar.tests9
1 files changed, 5 insertions, 4 deletions
diff --git a/testsuite/tar.tests b/testsuite/tar.tests
index dd502c23d..f2f4e9348 100755
--- a/testsuite/tar.tests
+++ b/testsuite/tar.tests
@@ -91,15 +91,14 @@ mkdir input_dir
91ln input_file input_dir 91ln input_file input_dir
92ln input_soft input_dir 92ln input_soft input_dir
93chmod 550 input_dir 93chmod 550 input_dir
94tar cf test.tar input_* 94tar cf test.tar input_dir/* input_[fs]*
95tar tvf test.tar | sed "s/.*[0-9] input/input/" | sort 95tar tvf test.tar | sed "s/.*[0-9] input/input/" | sort
96chmod 770 input_dir 96chmod 770 input_dir
97rm -rf input_* 97rm -rf input_*
98tar xf test.tar 2>&1 98tar xf test.tar 2>&1
99echo Ok: $? 99echo Ok: $?
100ls -l . input_dir/* | grep input_ | sed "s/\\(^[^ ]*\\) .* input/\\1 input/" 100ls -l . input_dir/* | grep "input_[fs]" | sed "s/\\(^[^ ]*\\) .* input/\\1 input/"
101' "\ 101' "\
102input_dir/
103input_dir/input_file 102input_dir/input_file
104input_dir/input_soft -> input_file 103input_dir/input_soft -> input_file
105input_file -> input_dir/input_file 104input_file -> input_dir/input_file
@@ -107,7 +106,6 @@ input_soft -> input_dir/input_soft
107Ok: 0 106Ok: 0
108-rwxr----x input_dir/input_file 107-rwxr----x input_dir/input_file
109lrwxrwxrwx input_file 108lrwxrwxrwx input_file
110dr-xr-x--- input_dir
111-rwxr----x input_file 109-rwxr----x input_file
112lrwxrwxrwx input_file 110lrwxrwxrwx input_file
113" \ 111" \
@@ -129,6 +127,7 @@ Ok
129"Ok\n" "" 127"Ok\n" ""
130SKIP= 128SKIP=
131 129
130test x"$SKIP_KNOWN_BUGS" = x"" && {
132# Needs to be run under non-root for meaningful test 131# Needs to be run under non-root for meaningful test
133optional FEATURE_TAR_CREATE 132optional FEATURE_TAR_CREATE
134testing "tar writing into read-only dir" '\ 133testing "tar writing into read-only dir" '\
@@ -153,6 +152,8 @@ dr-xr-x--- input_dir
153" \ 152" \
154"" "" 153"" ""
155SKIP= 154SKIP=
155}
156
156 157
157cd .. && rm -rf tar.tempdir || exit 1 158cd .. && rm -rf tar.tempdir || exit 1
158 159