diff options
Diffstat (limited to 'testsuite/tar.tests')
-rwxr-xr-x | testsuite/tar.tests | 9 |
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 | ||
11 | testing "tar hardlinks and repeated files" \ | 11 | testing "tar hardlinks and repeated files" "\ |
12 | ">input_hard1 | 12 | rm -rf input_* test.tar 2>/dev/null |
13 | >input_hard1 | ||
13 | ln input_hard1 input_hard2 | 14 | ln input_hard1 input_hard2 |
14 | mkdir input_dir | 15 | mkdir input_dir |
15 | >input_dir/file | 16 | >input_dir/file |
16 | tar cf test.tar input input_dir/ input_hard1 input_hard2 input_hard1 input_dir/ input | 17 | tar cf test.tar input input_dir/ input_hard1 input_hard2 input_hard1 input_dir/ input |
17 | tar tvf test.tar | sed 's/.*[0-9] input/input/' | 18 | tar tvf test.tar | sed 's/.*[0-9] input/input/' |
18 | tar xf test.tar 2>&1 && echo Ok | 19 | tar xf test.tar 2>&1 && echo Ok |
19 | " \ | 20 | " "\ |
20 | "input | 21 | input |
21 | input_dir/ | 22 | input_dir/ |
22 | input_dir/file | 23 | input_dir/file |
23 | input_hard1 | 24 | input_hard1 |