diff options
| author | Ron Yorston <rmy@pobox.com> | 2026-03-24 12:15:33 +0000 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2026-03-24 12:15:33 +0000 |
| commit | aaae1865727bcd53da581340456de34dfb182d5c (patch) | |
| tree | b0be881225fad8bcb14977854b248539b7d81ea2 /testsuite/tar.tests | |
| parent | 052807cc3330b3c5c1fb60b93ad0d2039d6142df (diff) | |
| download | busybox-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-x | testsuite/tar.tests | 22 |
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= | |||
| 245 | cd .. || exit 1; rm -rf tar.tempdir 2>/dev/null | 245 | cd .. || exit 1; rm -rf tar.tempdir 2>/dev/null |
| 246 | 246 | ||
| 247 | mkdir tar.tempdir && cd tar.tempdir || exit 1 | 247 | mkdir 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. | ||
| 251 | optional UUDECODE FEATURE_TAR_AUTODETECT FEATURE_SEAMLESS_ZSTD | ||
| 252 | command -v unzstd >/dev/null || SKIP=1 | ||
| 253 | testing "tar extract tar.zst" "\ | ||
| 254 | uudecode -o input && tar tf input && echo Ok | ||
| 255 | " "\ | ||
| 256 | hello_world | ||
| 257 | Ok | ||
| 258 | " \ | ||
| 259 | "" "\ | ||
| 260 | begin-base64 644 hello_world.tar.zst | ||
| 261 | KLUv/QRYpQIA5ANoZWxsb193b3JsZAAwMDAwNjQ0ADAwMDE3NTAAMTUxNjA0 | ||
| 262 | NTQwMzAAMDExNDc3ACAwAHVzdGFyICAAcm15AAcAtAbwMBQOAJMCkBq8wApX | ||
| 263 | awJ0ak0T/A== | ||
| 264 | ==== | ||
| 265 | " | ||
| 266 | SKIP= | ||
| 267 | cd .. || exit 1; rm -rf tar.tempdir 2>/dev/null | ||
| 268 | |||
| 269 | mkdir 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 |
| 249 | optional FEATURE_TAR_CREATE | 271 | optional FEATURE_TAR_CREATE |
| 250 | testing "tar strips /../ on extract" "\ | 272 | testing "tar strips /../ on extract" "\ |
