aboutsummaryrefslogtreecommitdiff
path: root/testsuite/tar.tests
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xtestsuite/tar.tests22
1 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/tar.tests b/testsuite/tar.tests
index 0f2e89112..d2155add7 100755
--- a/testsuite/tar.tests
+++ b/testsuite/tar.tests
@@ -245,6 +245,28 @@ SKIP=
245cd .. || exit 1; rm -rf tar.tempdir 2>/dev/null 245cd .. || exit 1; rm -rf tar.tempdir 2>/dev/null
246 246
247mkdir tar.tempdir && cd tar.tempdir || exit 1 247mkdir tar.tempdir && cd tar.tempdir || exit 1
248# Do we detect ZSTD-compressed data (even w/o .tar.zst extension)?
249# (uuencoded hello_world.tar.zst contains one empty file named "hello_world")
250# Currently we require an external unzstd program to be available.
251optional UUDECODE FEATURE_TAR_AUTODETECT FEATURE_SEAMLESS_ZSTD
252command -v unzstd >/dev/null || SKIP=1
253testing "tar extract tar.zst" "\
254uudecode -o input && tar tf input && echo Ok
255" "\
256hello_world
257Ok
258" \
259"" "\
260begin-base64 644 hello_world.tar.zst
261KLUv/QRYpQIA5ANoZWxsb193b3JsZAAwMDAwNjQ0ADAwMDE3NTAAMTUxNjA0
262NTQwMzAAMDExNDc3ACAwAHVzdGFyICAAcm15AAcAtAbwMBQOAJMCkBq8wApX
263awJ0ak0T/A==
264====
265"
266SKIP=
267cd .. || exit 1; rm -rf tar.tempdir 2>/dev/null
268
269mkdir tar.tempdir && cd tar.tempdir || exit 1
248# On extract, everything up to and including last ".." component is stripped 270# On extract, everything up to and including last ".." component is stripped
249optional FEATURE_TAR_CREATE 271optional FEATURE_TAR_CREATE
250testing "tar strips /../ on extract" "\ 272testing "tar strips /../ on extract" "\