aboutsummaryrefslogtreecommitdiff
path: root/testsuite/tar.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tar.tests')
-rwxr-xr-xtestsuite/tar.tests9
1 files changed, 5 insertions, 4 deletions
diff --git a/testsuite/tar.tests b/testsuite/tar.tests
index 0d4fa4584..35f96b77e 100755
--- a/testsuite/tar.tests
+++ b/testsuite/tar.tests
@@ -8,16 +8,17 @@ mkdir tempdir && cd tempdir || exit 1
8 8
9# testing "test name" "script" "expected result" "file input" "stdin" 9# testing "test name" "script" "expected result" "file input" "stdin"
10 10
11testing "tar hardlinks and repeated files" \ 11testing "tar hardlinks and repeated files" "\
12">input_hard1 12rm -rf input_* test.tar 2>/dev/null
13>input_hard1
13ln input_hard1 input_hard2 14ln input_hard1 input_hard2
14mkdir input_dir 15mkdir input_dir
15>input_dir/file 16>input_dir/file
16tar cf test.tar input input_dir/ input_hard1 input_hard2 input_hard1 input_dir/ input 17tar cf test.tar input input_dir/ input_hard1 input_hard2 input_hard1 input_dir/ input
17tar tvf test.tar | sed 's/.*[0-9] input/input/' 18tar tvf test.tar | sed 's/.*[0-9] input/input/'
18tar xf test.tar 2>&1 && echo Ok 19tar xf test.tar 2>&1 && echo Ok
19" \ 20" "\
20"input 21input
21input_dir/ 22input_dir/
22input_dir/file 23input_dir/file
23input_hard1 24input_hard1