diff options
Diffstat (limited to 'testsuite/tar.tests')
-rwxr-xr-x | testsuite/tar.tests | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/testsuite/tar.tests b/testsuite/tar.tests index dd8f11062..a96382932 100755 --- a/testsuite/tar.tests +++ b/testsuite/tar.tests | |||
@@ -69,6 +69,35 @@ dr-xr-x--- input_dir | |||
69 | " \ | 69 | " \ |
70 | "" "" | 70 | "" "" |
71 | 71 | ||
72 | testing "tar symlinks mode" '\ | ||
73 | rm -rf input_* test.tar 2>/dev/null | ||
74 | >input_file | ||
75 | chmod 741 input_file | ||
76 | ln -s input_file input_soft | ||
77 | mkdir input_dir | ||
78 | chmod 550 input_dir | ||
79 | ln input_file input_dir | ||
80 | ln input_soft input_dir | ||
81 | tar cf test.tar input_* | ||
82 | tar tvf test.tar | sed "s/.*[0-9] input/input/" | ||
83 | tar xf test.tar 2>&1 | ||
84 | echo Ok: $? | ||
85 | ls -l . input_dir/* | grep input_ | sed "s/\\(^[^ ]*\\) .* input/\\1 input/" | ||
86 | ' "\ | ||
87 | input_dir/ | ||
88 | input_dir/input_file | ||
89 | input_dir/input_soft -> input_file | ||
90 | input_file -> input_dir/input_file | ||
91 | input_soft -> input_dir/input_soft | ||
92 | Ok: 0 | ||
93 | -rwxr----x input_dir/input_file | ||
94 | lrwxrwxrwx input_file | ||
95 | dr-xr-x--- input_dir | ||
96 | -rwxr----x input_file | ||
97 | lrwxrwxrwx input_file | ||
98 | " \ | ||
99 | "" "" | ||
100 | |||
72 | optional FEATURE_TAR_LONG_OPTIONS | 101 | optional FEATURE_TAR_LONG_OPTIONS |
73 | testing "tar --overwrite" "\ | 102 | testing "tar --overwrite" "\ |
74 | rm -rf input_* test.tar 2>/dev/null | 103 | rm -rf input_* test.tar 2>/dev/null |