aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2026-03-24 12:15:33 +0000
committerRon Yorston <rmy@pobox.com>2026-03-24 12:15:33 +0000
commitaaae1865727bcd53da581340456de34dfb182d5c (patch)
treeb0be881225fad8bcb14977854b248539b7d81ea2 /testsuite
parent052807cc3330b3c5c1fb60b93ad0d2039d6142df (diff)
downloadbusybox-w32-zstd.tar.gz
busybox-w32-zstd.tar.bz2
busybox-w32-zstd.zip
archival: support zstd in rpm and dpkgzstd
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" "\