aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2012-03-06 16:57:01 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2012-03-06 16:57:01 +0100
commitbb8d7db597e73f8bd7cb10e3d319be4c93128ccc (patch)
tree9a811b7b078b3f47198cd876b45bf183f628d686
parentd29c946f931730a9acf0132da5f3d73fed0113df (diff)
downloadbusybox-w32-bb8d7db597e73f8bd7cb10e3d319be4c93128ccc.tar.gz
busybox-w32-bb8d7db597e73f8bd7cb10e3d319be4c93128ccc.tar.bz2
busybox-w32-bb8d7db597e73f8bd7cb10e3d319be4c93128ccc.zip
testsuite: add a test that tar detects XZ-compressed data
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rwxr-xr-xtestsuite/tar.tests19
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/tar.tests b/testsuite/tar.tests
index 39ece5feb..7927020c1 100755
--- a/testsuite/tar.tests
+++ b/testsuite/tar.tests
@@ -170,6 +170,25 @@ Ok
170"" "" 170"" ""
171SKIP= 171SKIP=
172 172
173# Do we detect XZ-compressed data (even w/o .tar.xz or txz extension)?
174# (the uuencoded hello_world.txz contains one empty file named "hello_world")
175optional UUDECODE FEATURE_TAR_AUTODETECT FEATURE_SEAMLESS_XZ
176testing "tar extract txz" "\
177uudecode -o input && tar tf input && echo Ok
178" "\
179hello_world
180Ok
181" \
182"" "\
183begin-base64 644 hello_world.txz
184/Td6WFoAAATm1rRGAgAhARYAAAB0L+Wj4AX/AEldADQZSe6ODIZQ3rSQ8kAJ
185SnMPTX+XWGKW3Yu/Rwqg4Ik5wqgQKgVH97J8yA8IvZ4ahaCQogUNHRkXibr2
186Q615wcb2G7fJU49AhWAAAAAAUA8gu9DyXfAAAWWADAAAAB5FXGCxxGf7AgAA
187AAAEWVo=
188====
189"
190SKIP=
191
173# On extract, everything up to and including last ".." component is stripped 192# On extract, everything up to and including last ".." component is stripped
174optional FEATURE_TAR_CREATE 193optional FEATURE_TAR_CREATE
175testing "tar strips /../ on extract" "\ 194testing "tar strips /../ on extract" "\