diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-11-19 14:52:02 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-11-19 14:52:02 +0100 |
commit | 1cbc642bed8307a78ccec655d2db61a2ce21596c (patch) | |
tree | 1724e6dbbcc994cb4e83b59c16abe789a85b28dd | |
parent | ebfa9b5aa1f1f6cd4949e1be03ebf1ce074727d1 (diff) | |
download | busybox-w32-1cbc642bed8307a78ccec655d2db61a2ce21596c.tar.gz busybox-w32-1cbc642bed8307a78ccec655d2db61a2ce21596c.tar.bz2 busybox-w32-1cbc642bed8307a78ccec655d2db61a2ce21596c.zip |
tar: add a testcase for previous commit
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rwxr-xr-x | testsuite/tar.tests | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tar.tests b/testsuite/tar.tests index 7927020c1..1bdd5d437 100755 --- a/testsuite/tar.tests +++ b/testsuite/tar.tests | |||
@@ -15,6 +15,18 @@ mkdir tar.tempdir && cd tar.tempdir || exit 1 | |||
15 | 15 | ||
16 | # testing "test name" "script" "expected result" "file input" "stdin" | 16 | # testing "test name" "script" "expected result" "file input" "stdin" |
17 | 17 | ||
18 | # Empty file is not a valid .tar.gz: | ||
19 | optional FEATURE_SEAMLESS_GZ | ||
20 | testing "tar hardlinks and repeated files" '\ | ||
21 | tar xvzf - 2>&1; echo $? | ||
22 | ' "\ | ||
23 | tar: invalid magic | ||
24 | tar: short read | ||
25 | 1 | ||
26 | " \ | ||
27 | "" "" | ||
28 | SKIP= | ||
29 | |||
18 | optional FEATURE_TAR_CREATE FEATURE_LS_SORTFILES | 30 | optional FEATURE_TAR_CREATE FEATURE_LS_SORTFILES |
19 | testing "tar hardlinks and repeated files" '\ | 31 | testing "tar hardlinks and repeated files" '\ |
20 | rm -rf input_* test.tar 2>/dev/null | 32 | rm -rf input_* test.tar 2>/dev/null |