aboutsummaryrefslogtreecommitdiff
path: root/testsuite/tar.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tar.tests')
-rwxr-xr-xtestsuite/tar.tests10
1 files changed, 8 insertions, 2 deletions
diff --git a/testsuite/tar.tests b/testsuite/tar.tests
index a96382932..f40079037 100755
--- a/testsuite/tar.tests
+++ b/testsuite/tar.tests
@@ -9,6 +9,7 @@ mkdir tar.tempdir && cd tar.tempdir || exit 1
9 9
10# testing "test name" "script" "expected result" "file input" "stdin" 10# testing "test name" "script" "expected result" "file input" "stdin"
11 11
12optional FEATURE_TAR_CREATE FEATURE_LS_SORTFILES
12testing "tar hardlinks and repeated files" '\ 13testing "tar hardlinks and repeated files" '\
13rm -rf input_* test.tar 2>/dev/null 14rm -rf input_* test.tar 2>/dev/null
14>input_hard1 15>input_hard1
@@ -39,7 +40,9 @@ drwxr-xr-x input_dir
39-rw-r--r-- input_hard2 40-rw-r--r-- input_hard2
40" \ 41" \
41"" "" 42"" ""
43SKIP=
42 44
45optional FEATURE_TAR_CREATE FEATURE_LS_SORTFILES
43testing "tar hardlinks mode" '\ 46testing "tar hardlinks mode" '\
44rm -rf input_* test.tar 2>/dev/null 47rm -rf input_* test.tar 2>/dev/null
45>input_hard1 48>input_hard1
@@ -68,7 +71,9 @@ dr-xr-x--- input_dir
68-rwxr----x input_hard2 71-rwxr----x input_hard2
69" \ 72" \
70"" "" 73"" ""
74SKIP=
71 75
76optional FEATURE_TAR_CREATE FEATURE_LS_SORTFILES
72testing "tar symlinks mode" '\ 77testing "tar symlinks mode" '\
73rm -rf input_* test.tar 2>/dev/null 78rm -rf input_* test.tar 2>/dev/null
74>input_file 79>input_file
@@ -79,7 +84,7 @@ chmod 550 input_dir
79ln input_file input_dir 84ln input_file input_dir
80ln input_soft input_dir 85ln input_soft input_dir
81tar cf test.tar input_* 86tar cf test.tar input_*
82tar tvf test.tar | sed "s/.*[0-9] input/input/" 87tar tvf test.tar | sed "s/.*[0-9] input/input/" | sort
83tar xf test.tar 2>&1 88tar xf test.tar 2>&1
84echo Ok: $? 89echo Ok: $?
85ls -l . input_dir/* | grep input_ | sed "s/\\(^[^ ]*\\) .* input/\\1 input/" 90ls -l . input_dir/* | grep input_ | sed "s/\\(^[^ ]*\\) .* input/\\1 input/"
@@ -97,8 +102,9 @@ dr-xr-x--- input_dir
97lrwxrwxrwx input_file 102lrwxrwxrwx input_file
98" \ 103" \
99"" "" 104"" ""
105SKIP=
100 106
101optional FEATURE_TAR_LONG_OPTIONS 107optional FEATURE_TAR_CREATE FEATURE_TAR_LONG_OPTIONS
102testing "tar --overwrite" "\ 108testing "tar --overwrite" "\
103rm -rf input_* test.tar 2>/dev/null 109rm -rf input_* test.tar 2>/dev/null
104ln input input_hard 110ln input input_hard