liblzma Validation
Port build from safelibs/port-liblzma at commit d236be00725f (release build-d236be00725f)
Tests
xz corrupted stream rejection Original / liblzma / corrupted-stream-rejection Passed
xz integrity check Original / liblzma / integrity-check Passed
xz multi stream behavior Original / liblzma / multi-stream-behavior Passed
liblzma streaming C API smoke Original / liblzma / streaming-c-api-smoke Passed
xz command round trip Original / liblzma / xz-compress-decompress Passed
bsdcat decompresses an .xz file emitting the original payload bytes Original / liblzma / usage-libarchive-tools-r18-bsdcat-tarxz-stream Passed
Compresses a known payload to an .xz file and asserts bsdcat reproduces the exact bytes on stdout, exercising libarchive's xz decoder via the bsdcat front end.
bsdtar -cJf --exclude omits matching files from the tar.xz Original / liblzma / usage-libarchive-tools-r18-bsdtar-exclude-pattern Passed
Creates a tar.xz with bsdtar -cJf --exclude='*.skip' over a directory containing keep and skip files, then asserts the listing includes keep.txt but not skip.skip — pinning the libarchive exclude pattern on xz archives.
bsdtar -xJf --strip-components 1 flattens a single leading directory from a tar.xz Original / liblzma / usage-libarchive-tools-r18-bsdtar-strip-components-1 Passed
Builds a tar.xz containing one nested file under a single top-level directory, extracts it with bsdtar -xJf --strip-components 1, and asserts the file lands without the leading directory prefix — exercising the libarchive path-component stripping path on xz inputs.
bsdtar -xJf extracts a tar.xz member with byte-identical payload Original / liblzma / usage-libarchive-tools-r18-bsdtar-xjf-extracts-payload Passed
Builds a tar.xz containing a known payload, extracts it with bsdtar -xJf into a fresh directory, and asserts the extracted file SHA matches the original — exercising the libarchive xz read pipeline end-to-end.
xz --format=lzma legacy stream round-trips to a byte-identical payload Original / liblzma / usage-libarchive-tools-r18-lzma-format-roundtrip-sha Passed
Compresses a payload with xz --format=lzma, decompresses back via xz -d --format=lzma, and asserts the round-tripped SHA-256 matches the source, exercising the legacy .lzma container path through liblzma.
xz --check=sha256 stream lists SHA-256 as the integrity check Original / liblzma / usage-libarchive-tools-r18-xz-check-sha256-listing Passed
Compresses a payload with xz --check=sha256 and asserts xz --list -vv reports SHA-256 in its detailed listing of the produced stream, pinning the non-default integrity-check selection through the liblzma encoder.
xz --keep retains the source file alongside the .xz output Original / liblzma / usage-libarchive-tools-r18-xz-keep-preserves-source Passed
Runs xz --keep on a payload and asserts both the original file and the corresponding .xz output exist after the run, pinning the documented no-delete-source behavior.
xz --list -vv on a default-compressed file shows the CRC64 integrity check Original / liblzma / usage-libarchive-tools-r18-xz-list-shows-check-crc64 Passed
Compresses a payload with default xz settings and asserts xz --list -vv reports a CRC64 integrity check in its detailed listing, pinning the default integrity-check type emitted by the liblzma encoder.
xz -t exits non-zero on a deliberately corrupted .xz file Original / liblzma / usage-libarchive-tools-r18-xz-test-flag-nonzero-on-corrupt Passed
Builds a valid xz stream, flips a byte in the middle of the file, runs xz -t on the corrupted archive, and asserts the integrity check exits non-zero — pinning the failure detection path through the liblzma decoder.
xz -t exits zero on a well-formed .xz file Original / liblzma / usage-libarchive-tools-r18-xz-test-flag-zero-on-valid Passed
Compresses a payload with xz then runs xz -t against the result and asserts the integrity test exits with status zero, pinning that valid xz streams pass the integrity-check verb.
bsdtar piped tar.xz to bsdtar -xf - extracts payload byte-for-byte Original / liblzma / usage-libarchive-tools-r19-bsdtar-cjf-pipe-stdin-extract Passed
Pipes bsdtar -cJf - through bsdtar -xf - into a destination directory and asserts the extracted file SHA-256 matches the source, exercising in-memory streaming tar.xz creation and extraction.
bsdtar -cJf produces a tar.xz whose listing matches the input set Original / liblzma / usage-libarchive-tools-r19-bsdtar-cjf-then-list-xz-tarball Passed
Creates a tar.xz of three text files using bsdtar -cJf and runs bsdtar -tJf to list the archive, asserting all three filenames appear in the listing, pinning libarchive's xz writer + reader symmetry.
bsdtar produces distinct magic bytes for xz vs zstd tarballs of the same payload Original / liblzma / usage-libarchive-tools-r19-bsdtar-zstd-distinguishable-from-xz Passed
Creates the same one-file tarball twice via bsdtar -acf using .tar.xz and .tar.zst suffixes, then asserts the first byte of each archive differs (xz starts 0xFD, zstd starts 0x28), pinning libarchive's filter-by-extension dispatch.
unxz decompresses file.xz to file and removes the .xz source by default Original / liblzma / usage-libarchive-tools-r19-unxz-removes-xz-suffix Passed
Compresses a file to .xz, runs unxz on the resulting .xz, then asserts the un-suffixed file exists with the original payload and the .xz source has been removed, pinning the default unxz file-rename contract.
xz --check=none --list reports None integrity-check for the produced stream Original / liblzma / usage-libarchive-tools-r19-xz-check-none-listing Passed
Compresses a payload with xz --check=none and runs xz --list against the output, asserting the Check column reports "None", pinning the no-integrity-check path through liblzma.
xz --list --robot reports exactly one stream for a single-stream .xz file Original / liblzma / usage-libarchive-tools-r19-xz-list-robot-reports-stream-count Passed
Compresses a payload to a single-stream .xz then runs xz --list --robot and asserts the totals line reports streams=1, pinning the machine-readable listing semantics for single-stream archives.
xz -d concatenates two .xz streams into the joined original payload Original / liblzma / usage-libarchive-tools-r19-xz-multi-stream-concat-decompress Passed
Compresses two payloads separately into single-stream .xz files, concatenates the bytes, runs xz -dc on the joined stream, and asserts the output equals "alpha" followed by "beta", pinning the multi-stream decoder concatenation contract.
xz --quiet on already-suffixed input produces no stderr output Original / liblzma / usage-libarchive-tools-r19-xz-quiet-suppresses-stderr Passed
Renames a payload to a .xz-conflicting name, runs xz --quiet which would normally emit a warning on stderr, and asserts the captured stderr is empty, pinning the suppression behavior of the quiet flag.
xz -d reads from stdin and reproduces a byte-identical payload on stdout Original / liblzma / usage-libarchive-tools-r19-xz-stdin-decompress-roundtrip Passed
Compresses a 4 KiB random-looking payload with xz, then pipes the .xz bytes into xz -d and asserts the SHA-256 of the decompressed stdout matches the original, pinning the streaming-decode contract.
xzcat decompresses an .xz file emitting the original payload bytes Original / liblzma / usage-libarchive-tools-r19-xzcat-decompresses-xz Passed
Compresses a 2 KiB payload to .xz with xz, then runs xzcat against it and asserts the SHA-256 of stdout equals the source SHA, pinning xzcat's pass-through decompression behavior.
bsdtar -cJf then -xJf round-trips a small file's contents byte-for-byte Original / liblzma / usage-libarchive-tools-r20-bsdtar-cjf-content-roundtrip-via-extract Passed
Creates a tar.xz containing a single text file via bsdtar -cJf, removes the source, extracts it via bsdtar -xJf in a clean directory, and asserts the extracted file's contents match the original via cmp, exercising libarchive's xz filter encode/decode end-to-end via bsdtar's two-step API.
bsdtar --lzma -cf then -xf round-trips a payload via the legacy .lzma filter Original / liblzma / usage-libarchive-tools-r20-bsdtar-tar-lzma-extract-roundtrip Passed
Creates a tar archive with the legacy LZMA1 filter via bsdtar --lzma -cf, then extracts it via bsdtar --lzma -xf in a clean directory, and asserts the extracted file's contents match the original via cmp, exercising libarchive's legacy LZMA1 encode/decode through bsdtar.
bsdtar -tJf on a tar.xz with two files lists exactly two member names Original / liblzma / usage-libarchive-tools-r20-bsdtar-tjf-lists-two-members Passed
Creates a tar.xz containing two distinct files via bsdtar -cJf, runs bsdtar -tJf to list contents, and asserts the listing has exactly two lines and contains both expected basenames, pinning the multi-member listing path through libarchive's xz filter.
xz --check=crc32 stream lists CRC32 as the integrity check Original / liblzma / usage-libarchive-tools-r20-xz-check-crc32-listing Passed
Compresses a payload with xz --check=crc32, runs xz --list -vv on the result, and asserts the listing reports the CRC32 integrity check, pinning the explicit check-selection path distinct from the default CRC64 and from the SHA-256/none variants.
xz round-trips an empty payload to a zero-byte decompressed output Original / liblzma / usage-libarchive-tools-r20-xz-empty-input-roundtrip Passed
Compresses a zero-byte file via xz -c, asserts the resulting .xz file is non-empty (valid stream framing), then decompresses with xz -dc and asserts the decoded output is exactly zero bytes, pinning the empty-payload round-trip contract.
xz --force overwrites an existing .xz output file with a fresh stream Original / liblzma / usage-libarchive-tools-r20-xz-force-overwrite-replaces-existing Passed
Pre-populates "in.txt.xz" with sentinel placeholder bytes, then runs xz --keep --force on in.txt and asserts the .xz file no longer contains the sentinel and decompresses back to the original in.txt payload, pinning xz's --force overwrite semantics.
xz -9 compression of a 16 KiB repetitive payload is not larger than xz -1 Original / liblzma / usage-libarchive-tools-r20-xz-level-9-not-larger-than-level-1 Passed
Generates a 16 KiB highly-repetitive payload, compresses it via xz -1 and xz -9 separately, and asserts the -9 output size is less than or equal to the -1 output size, pinning the level-9 preset's at-least-as-good compression contract on a redundant input.
xz -t -qq on a corrupted .xz exits non-zero with empty stderr Original / liblzma / usage-libarchive-tools-r20-xz-quiet-twice-suppresses-test-corrupt-stderr Passed
Compresses a payload via xz, deliberately corrupts a mid-stream byte, runs xz -t -qq on the corrupted file capturing stderr, and asserts the exit status is non-zero while stderr is empty, pinning the double-quiet flag's error suppression even on integrity failure.
xz -v compression of a non-trivial payload emits a non-empty stderr summary Original / liblzma / usage-libarchive-tools-r20-xz-verbose-stderr-mentions-ratio Passed
Compresses a 4 KiB pseudo-random payload via xz -v -c capturing stderr to a tempfile, then asserts the stderr capture is non-empty (xz emits a single-file progress/summary line in verbose mode) while the captured stdout is a valid .xz that decompresses back to the original SHA-256.
xz --version output mentions liblzma Original / liblzma / usage-libarchive-tools-r20-xz-version-reports-liblzma Passed
Runs xz --version and asserts the output contains the substring "liblzma", pinning that the xz CLI advertises its underlying decompression library in the version banner on Ubuntu 24.04.
bsdtar tar.xz and tar.lzma archives carry distinct file-format magic prefixes Original / liblzma / usage-libarchive-tools-r21-bsdtar-cf-zstd-vs-xz-distinct-magic Passed
Creates the same tar contents with --xz then with --lzma via bsdtar and asserts the first 6 bytes differ between formats (xz: FD 37 7A 58 5A 00; lzma: header begins with 5D 00 00), pinning that liblzma emits format-distinct stream prefixes.
bsdtar --use-compress-program lzma round-trips a small archive Original / liblzma / usage-libarchive-tools-r21-bsdtar-use-compress-program-lzma Passed
Builds a small tree, archives it via bsdtar --use-compress-program=lzma, lists the resulting archive with the same compressor program, and asserts the listing reproduces the original entry names, pinning the external-compressor pipeline through liblzma.
xz --block-size produces a multi-block .xz that decompresses round-trip Original / liblzma / usage-libarchive-tools-r21-xz-block-size-multiple-streams Passed
Builds a 64 KiB payload, compresses with --block-size=8KiB to force multiple internal blocks, decompresses, and asserts the result matches the original; verifies xz robot list reports multiple blocks via the totals row.
xz delta filter chained with lzma2 round-trips a small payload Original / liblzma / usage-libarchive-tools-r21-xz-delta-filter-roundtrip Passed
Compresses a payload with --delta=dist=1 chained to --lzma2=preset=6 and decompresses it back via xz -d, asserting the recovered SHA matches the original input, pinning the delta-then-lzma2 filter-chain support in the liblzma CLI.
xz format=lzip flag rejects xz-format input as expected Original / liblzma / usage-libarchive-tools-r21-xz-ignore-check-decodes-corrupted-crc Passed
Compresses a payload as xz then invokes xz -d --format=lzip on the .xz file and asserts the command fails (exit nonzero), pinning that liblzma's strict format gating refuses to decode xz streams under the lzip format selector.
xz --no-sparse decompression yields identical bytes to plain decompression Original / liblzma / usage-libarchive-tools-r21-xz-info-aliases-list Passed
Compresses a small payload then decompresses with --no-sparse and asserts the result matches the original byte-for-byte, pinning that suppressing sparse-file creation does not alter the liblzma-decoded byte stream contents.
xz --format=raw --lzma1 raw filter chain round-trips a small payload Original / liblzma / usage-libarchive-tools-r21-xz-lzma1-filter-raw-roundtrip Passed
Compresses a payload using xz --format=raw --lzma1=preset=6, decompresses with the same raw filter chain, and asserts the SHA of the recovered bytes matches the original, pinning the raw-format custom-filter encode/decode path in the liblzma CLI.
xz --memlimit-decompress=0 falls back to the default limit and decodes successfully Original / liblzma / usage-libarchive-tools-r21-xz-memlimit-decompress-zero-default Passed
Compresses a small payload then decompresses with --memlimit-decompress=0 (which xz documents as "use defaults") and asserts the round-trip matches the original payload SHA, pinning the documented "0 means default" memlimit semantics in the liblzma-driven decoder.
xzdiff between two xz-compressed text files reports the changed line Original / liblzma / usage-libarchive-tools-r21-xzdiff-shows-content-diff Passed
Compresses two text files (differing in one line) with xz and runs xzdiff, asserting that the diff output mentions the differing token, pinning xzdiff's liblzma-backed transparent decode-then-diff pipeline.
xzgrep finds a literal pattern inside a .xz-compressed text file Original / liblzma / usage-libarchive-tools-r21-xzgrep-matches-pattern Passed
Compresses a small text file with xz and uses xzgrep to find a substring pattern in the compressed file, asserting the matching line is returned, pinning the xzgrep helper's liblzma-backed transparent decompression.
libarchive-tools xz extract in cwd Original / liblzma / usage-libarchive-tools-xz-batch10-cwd-extract Passed
Extracts an xz archive from the current working directory without -C and verifies the file lands relative to cwd.
libarchive-tools xz deep nested extract Original / liblzma / usage-libarchive-tools-xz-batch10-deep-nested-extract Passed
Round-trips a five-level nested file through an xz tar and verifies the leaf path and payload survive extraction.
libarchive-tools xz multiple exclude patterns Original / liblzma / usage-libarchive-tools-xz-batch10-exclude-multi Passed
Builds an xz tar with two --exclude patterns and verifies only the unmatched member appears in the listing.
libarchive-tools xz extract two members to stdout Original / liblzma / usage-libarchive-tools-xz-batch10-extract-multi-stdout Passed
Uses bsdtar -xOf to print two named members from an xz archive and verifies both payloads appear on stdout.
libarchive-tools xz extract from stdin pipe Original / liblzma / usage-libarchive-tools-xz-batch10-extract-stdin-piped Passed
Pipes an xz tar into bsdtar -xf - via redirection and verifies a deeply nested member is extracted with its payload.
libarchive-tools xz mixed listing exact count Original / liblzma / usage-libarchive-tools-xz-batch10-mixed-format-list Passed
Adds three members including a spaced filename to an xz tar and verifies the listing reports exactly three entries.
libarchive-tools xz two archives separately Original / liblzma / usage-libarchive-tools-xz-batch10-multi-archive-list Passed
libarchive-tools xz nested member checksum Original / liblzma / usage-libarchive-tools-xz-batch10-roundtrip-checksum Passed
Round-trips a nested file through an xz tar archive and verifies the SHA-256 of the extracted file matches the source.
libarchive-tools xz archive to stdout Original / liblzma / usage-libarchive-tools-xz-batch10-stream-stdout-archive Passed
Streams an xz-compressed tar to stdout via bsdtar -cJf - then lists the resulting archive and verifies both members appear.
libarchive-tools xz extract with explicit --xz Original / liblzma / usage-libarchive-tools-xz-batch10-xz-decompress-flag Passed
bsdtar xz empty directory Original / liblzma / usage-libarchive-tools-xz-batch11-empty-directory Passed
bsdtar xz exclude VCS Original / liblzma / usage-libarchive-tools-xz-batch11-exclude-vcs Passed
bsdtar xz file list create Original / liblzma / usage-libarchive-tools-xz-batch11-filelist-create Passed
bsdtar xz mode preserved Original / liblzma / usage-libarchive-tools-xz-batch11-mode-preserved Passed
bsdtar xz mtime preserved Original / liblzma / usage-libarchive-tools-xz-batch11-mtime-preserved Passed
bsdtar xz newer mtime filter Original / liblzma / usage-libarchive-tools-xz-batch11-newer-mtime Passed
bsdtar xz null file list Original / liblzma / usage-libarchive-tools-xz-batch11-null-filelist Passed
bsdtar xz owner labels Original / liblzma / usage-libarchive-tools-xz-batch11-owner-labels Passed
Writes custom owner labels into an xz-compressed tar archive and verifies verbose listing output.
bsdtar xz transform name Original / liblzma / usage-libarchive-tools-xz-batch11-transform-name Passed
bsdtar xz ustar format Original / liblzma / usage-libarchive-tools-xz-batch11-ustar-format Passed
bsdtar append into tar.xz rejected Original / liblzma / usage-libarchive-tools-xz-batch12-append-rejected Passed
Confirms bsdtar -rJf cannot append into an existing xz-compressed tarball and reports an error without corrupting the archive.
bsdcat reads xz file Original / liblzma / usage-libarchive-tools-xz-batch12-bsdcat-xz-file Passed
Compresses a deterministic payload with xz(1) and confirms bsdcat decompresses it byte-identically through liblzma.
bsdcpio xz output stream Original / liblzma / usage-libarchive-tools-xz-batch12-bsdcpio-xz-stream Passed
Pipes a file list through bsdcpio with --xz and confirms the resulting cpio stream carries the .xz magic and round-trips.
bsdtar xz level 9 magic check Original / liblzma / usage-libarchive-tools-xz-batch12-create-level9-magic Passed
bsdtar reads tar produced by xz pipe Original / liblzma / usage-libarchive-tools-xz-batch12-gnu-tar-interop Passed
Builds a tarball with GNU tar piped through xz then extracts with bsdtar to confirm liblzma decompresses the GNU-produced stream.
bsdtar list xz tarball members Original / liblzma / usage-libarchive-tools-xz-batch12-list-xz-tarball Passed
Creates a tar.xz with multiple members and verifies bsdtar -t lists each expected member name exactly once.
bsdtar lzma filter level 6 Original / liblzma / usage-libarchive-tools-xz-batch12-lzma-filter-level6 Passed
Creates a tar.lzma with bsdtar using --lzma at compression-level=6 and verifies legacy LZMA magic plus byte-equal round-trip.
bsdtar xz compression-level 1 Original / liblzma / usage-libarchive-tools-xz-batch12-options-xz-level1 Passed
Builds an xz tarball with --options xz:compression-level=1, verifies the .xz magic, and round-trips the content with sha256 equality.
bsdtar xz preserves mtime and perm Original / liblzma / usage-libarchive-tools-xz-batch12-roundtrip-mtime-perm Passed
Round-trips a file through tar.xz with bsdtar -p and confirms mode bits and mtime survive compression and extraction.
bsdtar xz uid gid zero override Original / liblzma / usage-libarchive-tools-xz-batch12-uid-gid-zero Passed
Creates an xz tarball with --uid 0 --gid 0 overrides and confirms bsdtar -tv reports the rewritten owner identifiers.
bsdtar xz strips leading slash by default Original / liblzma / usage-libarchive-tools-xz-batch13-absolute-paths-stripped Passed
Archives a file by absolute path through tar.xz; bsdtar must strip the leading slash by default and -tf must not list any path beginning with /.
bsdcpio -i extracts xz cpio Original / liblzma / usage-libarchive-tools-xz-batch13-bsdcpio-extract-xz Passed
Builds a newc cpio compressed with xz(1) and confirms bsdcpio -idum decodes it via liblzma producing byte-identical files.
bsdtar reads tar.xz from /dev/stdin Original / liblzma / usage-libarchive-tools-xz-batch13-dev-stdin Passed
Streams a tar.xz through bsdtar -xf /dev/stdin and verifies extracted content sha256-matches the source.
bsdtar -X exclude file with xz Original / liblzma / usage-libarchive-tools-xz-batch13-exclude-from-file Passed
Creates a tar.xz with bsdtar -X pointing at an exclude-pattern file and verifies excluded entries are absent while kept entries round-trip.
bsdtar -x --keep-newer-files xz Original / liblzma / usage-libarchive-tools-xz-batch13-keep-newer-files Passed
Extracts a tar.xz over an existing newer file with --keep-newer-files; the on-disk newer file must survive while a missing peer is created.
bsdtar mtree piped through xz Original / liblzma / usage-libarchive-tools-xz-batch13-mtree-pipe-xz Passed
Emits an mtree manifest with bsdtar, compresses through xz(1), then re-reads the .xz mtree with bsdtar -tf to confirm the listed entries match.
bsdtar xz threads=1 single-threaded Original / liblzma / usage-libarchive-tools-xz-batch13-options-xz-threads Passed
Encodes a tar.xz with --options xz:threads=1 and verifies the .xz magic plus byte-identical sha256 round-trip.
bsdcat reads raw xz file Original / liblzma / usage-libarchive-tools-xz-batch13-raw-xz-bsdcat Passed
Compresses a deterministic payload with xz(1) into a standalone .xz (no tar) and confirms bsdcat decodes it byte-identically through liblzma.
bsdtar -tv lists xz tar perms Original / liblzma / usage-libarchive-tools-xz-batch13-tv-verbose-perms Passed
Builds a tar.xz with two files of distinct mode bits and confirms bsdtar -tv prints perm strings that match the source modes.
bsdtar ustar piped through xz Original / liblzma / usage-libarchive-tools-xz-batch13-ustar-pipe-xz Passed
Builds a uncompressed ustar tar via bsdtar -c --format=ustar then pipes through xz(1) into a tar.xz; bsdtar then extracts and verifies sha256.
bsdtar xz -P preserves absolute paths Original / liblzma / usage-libarchive-tools-xz-batch14-absolute-paths-keep Passed
Archives an absolute path into tar.xz with -P; bsdtar must keep the leading slash in the listing and the listed entry must equal the absolute path.
bsdtar xz --files-from stdin pipe Original / liblzma / usage-libarchive-tools-xz-batch14-files-from-pipe Passed
Pipes a newline-delimited file list into bsdtar via --files-from=- and verifies the resulting tar.xz contains exactly the listed members.
bsdtar xz hardlink count after extract Original / liblzma / usage-libarchive-tools-xz-batch14-hardlink-count Passed
Builds a tar.xz containing two hardlinked entries, extracts via liblzma, verifies file count is 2 and that both paths share the same inode.
xz -k -d decompress then bsdtar reads Original / liblzma / usage-libarchive-tools-xz-batch14-keep-decompress-readback Passed
Builds tar.xz, runs xz -k -d to decompress while keeping the .xz copy, then has bsdtar read the resulting plain tar; verifies both paths produce byte-identical extracts.
bsdtar xz long filename round-trip Original / liblzma / usage-libarchive-tools-xz-batch14-long-filename Passed
Archives a file whose name is longer than 200 characters into tar.xz, then extracts and verifies the long name and content survive a liblzma round-trip.
bsdtar xz extract --no-fflags Original / liblzma / usage-libarchive-tools-xz-batch14-no-fflags-extract Passed
Builds a tar.xz, extracts with --no-fflags (file flags suppressed) and confirms content integrity through liblzma.
bsdtar xz compression-level 0 Original / liblzma / usage-libarchive-tools-xz-batch14-options-level0 Passed
Builds a tar.xz with --options xz:compression-level=0, verifies the .xz magic, and round-trips content byte-for-byte through liblzma.
bsdtar xz compression-level 4 Original / liblzma / usage-libarchive-tools-xz-batch14-options-preset4 Passed
Builds a tar.xz using --options xz:compression-level=4 (the libarchive-supported option name) and confirms .xz magic plus sha256 round-trip equality.
bsdtar xz compression-level 6 round-trip Original / liblzma / usage-libarchive-tools-xz-batch14-options-preset6e Passed
Builds a tar.xz using --options xz:compression-level=6 (the libarchive-supported xz option spelling) and verifies .xz magic and sha256 round-trip equality.
bsdtar xz utf-8 filename preserved Original / liblzma / usage-libarchive-tools-xz-batch14-utf8-filename Passed
Archives a file whose name contains non-ASCII UTF-8 characters into tar.xz and verifies the name and contents are preserved through a liblzma round-trip.
bsdtar xz default refuses absolute-path escape on extract Original / liblzma / usage-libarchive-tools-xz-batch15-absolute-default-extract Passed
Hand-builds a tar with a -P absolute-path entry, compresses it to xz, then extracts without -P; bsdtar must default to stripping the leading slash so the file lands under the destination directory and never escapes to the real absolute path.
bsdtar reads tar.xz built by GNU tar -cJf Original / liblzma / usage-libarchive-tools-xz-batch15-gnu-tar-cjf-interop Passed
GNU tar invokes its xz auto-compressor via -J to build the archive directly (no pipe); bsdtar then extracts via liblzma and round-trip checksums must match.
bsdtar xz preserves mtime exactly across two distinct files Original / liblzma / usage-libarchive-tools-xz-batch15-mtime-exact-roundtrip Passed
Stamps two files with two distinct deterministic mtimes, round-trips them through tar.xz, and verifies bsdtar -p restores both mtimes byte-identically.
bsdtar xz compression-level=2 round-trip Original / liblzma / usage-libarchive-tools-xz-batch15-options-level2-roundtrip Passed
Compresses a payload with --options xz:compression-level=2, confirms the output is a well-formed xz stream smaller than the source, and round-trips byte-identical content back through bsdtar.
bsdtar xz with pax extended headers Original / liblzma / usage-libarchive-tools-xz-batch15-pax-format-headers Passed
Forces --format=pax on a tar.xz, confirms the listing carries pax extended headers, and verifies content extracts back identically through liblzma.
bsdtar xz selective extract by member name Original / liblzma / usage-libarchive-tools-xz-batch15-selective-extract-by-name Passed
Builds a tar.xz with three members and extracts only one by passing the member name as a positional argument; the other two must be skipped while liblzma still streams the whole archive.
bsdtar xz to /dev/stdout with sha verification Original / liblzma / usage-libarchive-tools-xz-batch15-stdout-archive-sha-verify Passed
Streams a tar.xz to /dev/stdout (redirected to a file), confirms .xz magic on the captured stream, then extracts it and verifies the sha256 of every input survives the round-trip.
bsdtar xz --strip-components=2 across multi-leaf tree Original / liblzma / usage-libarchive-tools-xz-batch15-strip-components-multi-leaf Passed
Builds a tar.xz with several leaves under a common two-level prefix and verifies --strip-components=2 collapses every entry while preserving content.
bsdtar xz -s substitution renames during extract Original / liblzma / usage-libarchive-tools-xz-batch15-substitution-extract-rename Passed
Builds a tar.xz with original names then extracts through bsdtar -s 's|old|new|' so files land under the substituted names while contents stay byte-identical.
bsdtar -tvJf prints perm strings on tar.xz Original / liblzma / usage-libarchive-tools-xz-batch15-tvjf-perm-strings Passed
Builds a tar.xz with three files of distinct mode bits and verifies bsdtar -tvJf surfaces matching perm strings for each entry, exercising the explicit -J flag on the verbose listing path.
bsdtar reads concatenated xz tarballs Original / liblzma / usage-libarchive-tools-xz-batch16-concat-tarballs Passed
Concatenates two independently xz-compressed tarballs and verifies bsdtar reads members from both via liblzma multi-stream support.
xz -F lzma legacy then bsdtar reads Original / liblzma / usage-libarchive-tools-xz-batch16-format-lzma-legacy Passed
Creates a tar stream, compresses with xz -F lzma (legacy .lzma format), and confirms bsdtar can list and extract through liblzma.
xz --keep --force overwrites target Original / liblzma / usage-libarchive-tools-xz-batch16-keep-force-overwrite Passed
Verifies xz --keep --force overwrites an existing .xz target and the resulting archive still round-trips through bsdcat.
bsdtar -tf 100 entries Original / liblzma / usage-libarchive-tools-xz-batch16-list-100-entries Passed
Builds an xz tarball with exactly 100 file entries and confirms bsdtar -tf lists exactly 100 names.
bsdtar xz mixed permission tree Original / liblzma / usage-libarchive-tools-xz-batch16-mixed-perm-tree Passed
Round-trips a directory tree with mixed 755/644/600 permissions through an xz-compressed tar archive and verifies modes are preserved.
bsdtar --options xz:compression-level=3 Original / liblzma / usage-libarchive-tools-xz-batch16-options-level3 Passed
Creates an xz tarball using bsdtar --options 'xz:compression-level=3' and verifies the archive round-trips with sha256 equality.
xz -t fails on truncated stream Original / liblzma / usage-libarchive-tools-xz-batch16-test-truncated Passed
Truncates a valid .xz file mid-stream and confirms xz -t (test mode) rejects it with non-zero status, while a complete copy still verifies clean.
xz --threads=1 forced single-thread Original / liblzma / usage-libarchive-tools-xz-batch16-threads-single Passed
Compresses a payload with xz --threads=1 to force single-thread encoding, then round-trips it through bsdcat.
bsdtar -tvJf shows user/group Original / liblzma / usage-libarchive-tools-xz-batch16-tvjf-user-group Passed
Creates an xz tarball as the current user, then runs bsdtar -tvJf and confirms the listing includes the expected user/group fields.
bsdtar ustar piped through xz Original / liblzma / usage-libarchive-tools-xz-batch16-ustar-pipe-xz Passed
Pipes a bsdtar --format=ustar stream through xz, then re-reads it with bsdtar to verify member round-trip.
xz -c piped into bsdcat Original / liblzma / usage-libarchive-tools-xz-batch16-xz-c-pipe-bsdcat Passed
Pipes xz -c output directly into bsdcat through a FIFO of bytes and verifies sha256 round-trip equality.
bsdtar xz compression-level 4 Original / liblzma / usage-libarchive-tools-xz-batch17-options-level4 Passed
Builds a tar.xz archive with --options xz:compression-level=4, validates the .xz magic, and round-trips the payload to confirm liblzma decodes the mid-low level losslessly.
bsdtar --strip-components on tar.xz Original / liblzma / usage-libarchive-tools-xz-batch17-strip-components Passed
Extracts a tar.xz archive with --strip-components=1 and verifies the leading directory is removed while inner files land at the expected destination.
bsdtar -tf preserves creation order Original / liblzma / usage-libarchive-tools-xz-batch17-tf-creation-order Passed
Adds files to a tar.xz archive in a specific argv order and asserts bsdtar -tf lists them in that exact order, confirming liblzma decoding does not reorder entries.
bsdtar --xz over file with UTF-8 BOM Original / liblzma / usage-libarchive-tools-xz-batch17-utf8-bom-payload Passed
Archives a file whose contents start with a UTF-8 BOM through tar.xz with bsdtar --xz and confirms the BOM bytes survive round-trip via liblzma.
bsdtar --format=v7 piped through xz Original / liblzma / usage-libarchive-tools-xz-batch17-v7-format-pipe-xz Passed
Creates a v7 (legacy pre-POSIX) tar with bsdtar --format=v7, pipes through xz, and confirms bsdtar reads it back through liblzma with byte-identical contents.
xz --check=none disables checksum Original / liblzma / usage-libarchive-tools-xz-batch17-xz-check-none Passed
Compresses a payload with xz --check=none, confirms xz --list reports a None integrity check, and round-trips through bsdtar to ensure liblzma accepts a checksum-free stream.
xz --check=sha256 integrity check Original / liblzma / usage-libarchive-tools-xz-batch17-xz-check-sha256 Passed
Compresses a payload with xz --check=sha256, confirms xz --list reports the SHA-256 integrity check, and verifies bsdtar can decompress and round-trip the contents.
xz -d preserves source mtime Original / liblzma / usage-libarchive-tools-xz-batch17-xz-d-preserve-mtime Passed
Compresses a fixture with xz, captures the source mtime, decompresses with xz -d, and confirms the decompressed file's mtime matches the original (xz preserves timestamps by default).
xz -F lzma decompress legacy stream Original / liblzma / usage-libarchive-tools-xz-batch17-xz-format-lzma-decompress Passed
Compresses a tar with xz -F lzma, then decompresses with xz -F lzma -d -c on the legacy .lzma stream and confirms bsdtar reads members through liblzma.
xz -z explicit compress mode Original / liblzma / usage-libarchive-tools-xz-batch17-xz-z-explicit-compress Passed
Drives the xz CLI in explicit compress mode (-z) on a fixture, validates the .xz magic of the output, and confirms bsdtar can read the resulting stream through liblzma.
bsdcpio newc format piped through xz Original / liblzma / usage-libarchive-tools-xz-batch18-bsdcpio-newc-xz Passed
Pipes a file list into bsdcpio -o -H newc and through xz -z to produce a newc.cpio.xz, then validates xz magic, decompresses with xz -d, and re-reads via bsdcpio -i -t to confirm member names survive round-trip.
bsdcpio odc format piped through xz Original / liblzma / usage-libarchive-tools-xz-batch18-bsdcpio-odc-xz Passed
Streams a file list into bsdcpio -o -H odc piped to xz -z, asserts the resulting blob carries .xz magic, decompresses to a portable POSIX cpio (070707 header), and lists members back through bsdcpio.
bsdcpio -tv verbose listing of xz cpio Original / liblzma / usage-libarchive-tools-xz-batch18-bsdcpio-tv-verbose-xz Passed
Builds a newc cpio compressed with xz, then runs bsdcpio -i -tv on the decompressed stream and asserts verbose mode prints permission columns alongside both member names.
bsdtar xz roundtrip preserves hardlink pair Original / liblzma / usage-libarchive-tools-xz-batch18-hardlink-roundtrip Passed
Stores a hardlinked file pair into a tar.xz, extracts elsewhere, and asserts the two extracted files share the same inode number so the hardlink relationship survives compression through liblzma.
bsdtar -n no-recursion with xz compression Original / liblzma / usage-libarchive-tools-xz-batch18-no-recursion-flag Passed
Builds an xz-compressed tar with bsdtar -n so a directory argument is recorded without descent, then asserts the listing contains the directory entry alone and not its children.
bsdtar --options xz:compression-level=7 Original / liblzma / usage-libarchive-tools-xz-batch18-options-compression-level7 Passed
Creates a tar.xz with bsdtar --options xz:compression-level=7, validates the .xz magic, and round-trips a small payload to confirm the explicit per-filter level reaches liblzma.
bsdtar xz roundtrip on a sparse file Original / liblzma / usage-libarchive-tools-xz-batch18-sparse-file-roundtrip Passed
Creates a sparse file with a hole between two byte regions, stores it in a tar.xz, extracts elsewhere, and confirms the apparent size and SHA-256 match while the file body is preserved through liblzma.
bsdtar -s substitution adds prefix in xz tar Original / liblzma / usage-libarchive-tools-xz-batch18-transform-prefix Passed
Builds a tar.xz where bsdtar -s ',^,renamed/,' rewrites entry names with a prefix, then verifies the listing shows the transformed paths and extraction restores byte-identical content under the new prefix.
bsdtar --uname/--gname override in xz tar Original / liblzma / usage-libarchive-tools-xz-batch18-uname-gname-override Passed
Creates a tar.xz with bsdtar --uname=valuser --gname=valgrp and confirms verbose listing of the xz-compressed archive shows the override owner labels for every entry.
xz --list --robot machine-readable output Original / liblzma / usage-libarchive-tools-xz-batch18-xz-list-robot Passed
Compresses a bsdtar-produced tar with xz, runs xz --list --robot on it, and validates the machine-readable output begins with a totals/file/stream record set covering exactly one stream and one block.
bsdcat reads legacy .lzma file Original / liblzma / usage-libarchive-tools-xz-batch19-bsdcat-lzma-legacy Passed
Compresses a deterministic payload with xz -F lzma to produce a legacy .lzma stream and verifies bsdcat decodes it byte-identically through liblzma's legacy LZMA reader.
bsdtar -caf .tar.lzma legacy filter Original / liblzma / usage-libarchive-tools-xz-batch19-bsdtar-caf-tar-lzma Passed
Creates a .tar.lzma archive via bsdtar -caf auto-filter selection, validates the legacy LZMA1 magic, and round-trips the contents through liblzma's legacy reader.
bsdtar -cJf - piped to bsdcat then bsdtar -t Original / liblzma / usage-libarchive-tools-xz-batch19-bsdtar-pipe-bsdcat Passed
Streams a tar.xz from bsdtar -cJf - into bsdcat to produce the inner uncompressed tar bytes, then lists those bytes with bsdtar -tf - and confirms member names round-trip through liblzma's decoder.
bsdtar -kxJf preserves existing target file Original / liblzma / usage-libarchive-tools-xz-batch19-keep-old-files-extract Passed
Pre-populates the extract directory with a sentinel file, then extracts a .tar.xz that contains a same-named entry with bsdtar -k and confirms the existing file is preserved while other entries are decompressed via liblzma.
bsdtar -tvJf reads multi-stream xz Original / liblzma / usage-libarchive-tools-xz-batch19-multistream-tv-listing Passed
Concatenates two independent .xz streams of a single tarball into a multi-stream xz file and confirms bsdtar -tvJf prints all member rows by walking each stream through liblzma.
bsdtar --options xz:threads=2 round-trip Original / liblzma / usage-libarchive-tools-xz-batch19-options-threads-2 Passed
Encodes a tar.xz with bsdtar --options xz:threads=2 to request liblzma's multi-threaded encoder and verifies the result has a valid xz header and round-trips byte-identically.
bsdtar xz smaller than gzip on repetitive input Original / liblzma / usage-libarchive-tools-xz-batch19-size-delta-xz-vs-gz Passed
Builds a deterministic repetitive payload, compresses it both as .tar.xz and .tar.gz with bsdtar, and asserts the xz output is strictly smaller and round-trips byte-identically through liblzma.
bsdtar -tvJf shows directory and file rows Original / liblzma / usage-libarchive-tools-xz-batch19-tv-directory-entry Passed
Builds a tar.xz containing a directory plus enclosed files and confirms bsdtar -tvJf prints both a leading 'd' row for the directory and '-' rows for the files, exercising the verbose listing path on top of liblzma decompression.
bsdtar --use-compress-program xz round-trip Original / liblzma / usage-libarchive-tools-xz-batch19-use-compress-program-xz Passed
Creates a tar archive piped through xz via bsdtar --use-compress-program=xz and confirms bsdtar reads it back natively through liblzma's auto-detection.
bsdcat decodes concatenated raw .xz streams Original / liblzma / usage-libarchive-tools-xz-batch19-xz-cat-multistream-bsdcat Passed
Compresses two distinct payloads to separate .xz streams, concatenates them into one multi-stream .xz file, and confirms bsdcat emits the two original payloads back-to-back via liblzma's multi-stream support.
libarchive-tools xz checksum compare Original / liblzma / usage-libarchive-tools-xz-checksum-compare Passed
libarchive-tools xz copy mode Original / liblzma / usage-libarchive-tools-xz-copy-mode Passed
libarchive-tools xz directory only Original / liblzma / usage-libarchive-tools-xz-directory-only Passed
libarchive-tools xz dotdir entry Original / liblzma / usage-libarchive-tools-xz-dotdir-entry Passed
Archives a hidden directory tree with xz compression and verifies hidden nested files extract correctly.
libarchive-tools xz dotdir subtree Original / liblzma / usage-libarchive-tools-xz-dotdir-subtree Passed
Archives a hidden subtree under xz compression and verifies the nested member path appears in the archive listing.
libarchive-tools xz dotfile stdout Original / liblzma / usage-libarchive-tools-xz-dotfile-stdout Passed
Streams a hidden file member from an xz-compressed tar archive with bsdtar -xOf and verifies the extracted payload.
libarchive tools xz dotfile stream extract Original / liblzma / usage-libarchive-tools-xz-dotfile-stream-extract Passed
libarchive-tools xz dotfile Original / liblzma / usage-libarchive-tools-xz-dotfile Passed
libarchive-tools xz double strip components Original / liblzma / usage-libarchive-tools-xz-double-strip-components Passed
Extracts a deeply nested member from an xz-compressed tar with multiple stripped path components.
libarchive-tools xz empty dir Original / liblzma / usage-libarchive-tools-xz-empty-dir Passed
libarchive-tools xz empty file size Original / liblzma / usage-libarchive-tools-xz-empty-file-size Passed
Lists an xz-compressed tar archive verbosely and verifies that an empty member is reported with zero size.
libarchive-tools xz empty file Original / liblzma / usage-libarchive-tools-xz-empty-file Passed
libarchive tools xz empty subdirectory extract Original / liblzma / usage-libarchive-tools-xz-empty-subdir-extract Passed
Exercises libarchive tools xz empty subdirectory extract through a dependent-client usage scenario.
libarchive-tools xz exclude pattern Original / liblzma / usage-libarchive-tools-xz-exclude-pattern Passed
libarchive-tools xz extract dotfile Original / liblzma / usage-libarchive-tools-xz-extract-dotfile Passed
Extracts only a hidden file from an xz-compressed archive and verifies nonselected members are left out.
libarchive-tools xz extract specific member Original / liblzma / usage-libarchive-tools-xz-extract-specific-member Passed
Extracts a single named member from an xz-compressed tar archive and verifies the restored file payload.
libarchive-tools xz extract to stdout Original / liblzma / usage-libarchive-tools-xz-extract-stdout Passed
libarchive-tools xz extract two members Original / liblzma / usage-libarchive-tools-xz-extract-two-members Passed
Extracts two selected members from an xz-compressed tar and verifies only the requested files are restored.
libarchive-tools xz filelist dotfile Original / liblzma / usage-libarchive-tools-xz-filelist-dotfile Passed
Builds an xz-compressed tar from a file list containing a dotfile and verifies both listed members are present.
libarchive-tools xz file list input Original / liblzma / usage-libarchive-tools-xz-filelist-input Passed
libarchive tools xz file list spaced name Original / liblzma / usage-libarchive-tools-xz-filelist-space-name Passed
libarchive-tools xz file list stdin Original / liblzma / usage-libarchive-tools-xz-filelist-stdin Passed
Feeds a bsdtar file list over stdin while creating an xz-compressed archive and verifies the selected members.
libarchive-tools xz filter auto Original / liblzma / usage-libarchive-tools-xz-filter-auto Passed
libarchive tools xz hardlink extract compare Original / liblzma / usage-libarchive-tools-xz-hardlink-extract-compare Passed
Exercises libarchive tools xz hardlink extract compare through a dependent-client usage scenario.
libarchive-tools xz hardlink listing Original / liblzma / usage-libarchive-tools-xz-hardlink-listing Passed
Lists an xz-compressed archive containing a hard link and verifies the linked member appears in verbose output.
libarchive-tools xz hardlink pair Original / liblzma / usage-libarchive-tools-xz-hardlink-pair Passed
libarchive-tools xz hidden and visible list Original / liblzma / usage-libarchive-tools-xz-hidden-and-visible-list Passed
Archives a hidden file and a visible file together in an xz-compressed tar and verifies both entries appear in the listing.
libarchive tools xz hidden visible list Original / liblzma / usage-libarchive-tools-xz-hidden-visible-list Passed
libarchive-tools xz large file Original / liblzma / usage-libarchive-tools-xz-large-file Passed
libarchive-tools xz leading dash filename Original / liblzma / usage-libarchive-tools-xz-leading-dash Passed
libarchive-tools xz member count three plus Original / liblzma / usage-libarchive-tools-xz-member-count-three-plus Passed
Lists an xz-compressed tar archive and verifies that the archive contains multiple members beyond a minimal threshold.
libarchive-tools xz member order Original / liblzma / usage-libarchive-tools-xz-member-order Passed
Creates an xz-compressed archive with a specific member order and verifies bsdtar list mode preserves that order.
libarchive-tools xz metadata list Original / liblzma / usage-libarchive-tools-xz-metadata-list Passed
libarchive-tools xz multiple empty files Original / liblzma / usage-libarchive-tools-xz-multi-empty-files Passed
Archives multiple empty files under xz compression and verifies both extracted files remain zero bytes.
libarchive-tools xz multi-file Original / liblzma / usage-libarchive-tools-xz-multi-file Passed
libarchive-tools xz nested extract Original / liblzma / usage-libarchive-tools-xz-nested-extract Passed
libarchive-tools xz nested spaced file Original / liblzma / usage-libarchive-tools-xz-nested-space-file Passed
Archives and extracts a nested filename containing spaces in an xz-compressed tar and verifies the restored payload.
libarchive-tools xz overwrite existing Original / liblzma / usage-libarchive-tools-xz-overwrite-existing Passed
Extracts an xz-compressed tar archive over an existing file and verifies the archived content wins.
libarchive-tools xz preserve permissions Original / liblzma / usage-libarchive-tools-xz-preserve-permissions Passed
xz -9e extreme preset round-trip Original / liblzma / usage-libarchive-tools-xz-r10-9e-extreme-roundtrip Passed
Encodes a tarball with xz -9e (extreme preset 9), reads it back through bsdtar, and verifies byte-equal payload along with the .xz magic and a non-empty xz --list totals row.
bsdtar -xOf single member from xz archive Original / liblzma / usage-libarchive-tools-xz-r10-bsdtar-extract-stdout Passed
Builds a multi-member tar.xz with bsdtar, then extracts a single named member through the liblzma decoder via bsdtar -xOf and asserts the captured stdout matches that member byte-for-byte.
xz --check=crc32 integrity check Original / liblzma / usage-libarchive-tools-xz-r10-check-crc32 Passed
Compresses a payload with xz --check=crc32 and confirms xz --robot --list reports CRC32 in the integrity-check column, then round-trips via bsdtar to ensure liblzma decodes a CRC32-checked stream.
xz -d streams stdin to stdout Original / liblzma / usage-libarchive-tools-xz-r10-decompress-stdin-stdout Passed
Pipes a .xz stream into xz -d on stdin and asserts the decoded stdout exactly matches the original payload, exercising liblzma's stream decoder.
bsdtar empty tarball xz round-trip Original / liblzma / usage-libarchive-tools-xz-r10-empty-tar-xz Passed
Builds an empty tar (no members) via bsdtar -T /dev/null, compresses it with xz, and confirms .xz magic plus that bsdtar -tvJf prints zero entries through the liblzma stream.
xz --force overwrites existing target Original / liblzma / usage-libarchive-tools-xz-r10-force-overwrite Passed
Pre-creates a stale .xz file then re-encodes the source with xz --force, confirming the target is overwritten and decoding produces the new payload.
xz --keep --decompress preserves .xz file Original / liblzma / usage-libarchive-tools-xz-r10-keep-decompress-source Passed
Decompresses a .xz with xz --keep --decompress and asserts both the original .xz and the new plaintext file remain on disk and the decompressed bytes match the source.
xz --suffix custom output extension Original / liblzma / usage-libarchive-tools-xz-r10-suffix-custom Passed
Encodes a payload with xz --suffix=.xzfoo to override the default .xz extension, then decodes it back via xz --suffix=.xzfoo and verifies the bytes match.
xz -t verifies xz file integrity Original / liblzma / usage-libarchive-tools-xz-r10-test-integrity-flag Passed
Encodes a tarball with xz, runs xz -t to verify the integrity check passes for the well-formed stream, then truncates the file and asserts xz -t fails on the corrupted stream.
xz -T0 auto-threaded encode round-trip Original / liblzma / usage-libarchive-tools-xz-r10-threads-zero-auto Passed
Encodes a tarball with xz -T0 (auto thread count) and round-trips it through bsdtar, asserting byte-identical content and a non-trivial xz --robot --list summary row.
bsdcpio --format=newc with xz compression round-trips a regular file Original / liblzma / usage-libarchive-tools-xz-r11-bsdcpio-newc-xz-roundtrip Passed
Pipes a single regular file through bsdcpio -o --format=newc | xz -c, then decodes the .xz stream and pipes it back through bsdcpio -i --no-absolute-filenames, verifying the extracted byte-equal payload and that bsdcpio -t lists the original entry name.
bsdtar reads only the first .xz stream from a concatenated tarball Original / liblzma / usage-libarchive-tools-xz-r11-bsdtar-only-first-stream Passed
Concatenates two independently xz-compressed tarballs into one file and verifies bsdtar -tf lists only the first archive's entries while "xz -dc | bsdtar -tf -" still lists only the first (matching documented bsdtar single-stream behavior).
bsdtar --options xz:compression-level=3 produces a valid xz tarball Original / liblzma / usage-libarchive-tools-xz-r11-bsdtar-options-compression-level Passed
Creates a tar.xz archive with bsdtar's explicit --options xz:compression-level=3 modifier and verifies xz --robot --list reports one stream/block while bsdtar -tf lists the original entry names.
xz --check=none records None integrity in the .xz stream Original / liblzma / usage-libarchive-tools-xz-r11-check-none-integrity Passed
Compresses a payload with --check=none and verifies "xz --robot --list" reports the integrity-check column as "None" while the round-trip still decompresses to byte-equal output.
xz --check=sha256 records SHA-256 integrity in the .xz stream Original / liblzma / usage-libarchive-tools-xz-r11-check-sha256-integrity Passed
Compresses a payload with --check=sha256 and verifies "xz --robot --list" reports the integrity-check column as "SHA-256" while the round-trip decompresses to byte-equal output.
xz -F lzma legacy format encodes and decodes raw LZMA streams Original / liblzma / usage-libarchive-tools-xz-r11-format-lzma-legacy-roundtrip Passed
Compresses a payload with -F lzma to produce a legacy LZMA stream (no .xz framing), confirms the file magic byte 0x5d, and round-trips back to byte-equal content via xz -F lzma -dc.
xz -F lzma --keep on a .lzma input preserves the source while emitting plain output Original / liblzma / usage-libarchive-tools-xz-r11-lzma-keep-source Passed
Round-trips a payload through legacy LZMA: encodes with -F lzma to .lzma, then decodes with --keep --decompress and verifies the original .lzma file remains and the decoded payload matches the source bytes.
xz --lzma2=preset=3 explicit filter syntax round-trips payload Original / liblzma / usage-libarchive-tools-xz-r11-lzma2-preset-modifier Passed
Builds a stream using the explicit "--lzma2=preset=3" filter modifier and verifies xz -dc decodes it back to byte-equal content while xz --robot --list reports a single stream with one block.
xz -d concatenates multiple .xz streams in one decode Original / liblzma / usage-libarchive-tools-xz-r11-multi-stream-decompress Passed
Concatenates two independently compressed .xz streams and verifies "xz -dc" emits both payloads in order while "xz --robot --list" reports a totals row with two streams and two blocks.
xz --robot --version emits both XZ_VERSION and LIBLZMA_VERSION fields Original / liblzma / usage-libarchive-tools-xz-r11-robot-version-shape Passed
Runs "xz --robot --version" and checks both XZ_VERSION=NNNNNNNN and LIBLZMA_VERSION=NNNNNNNN are emitted as eight-digit decimal-encoded version numbers, exercising the machine-readable version contract.
bsdtar --lzma create and extract roundtrips a tarball Original / liblzma / usage-libarchive-tools-xz-r12-bsdtar-lzma-format-roundtrip Passed
Builds a tar.lzma archive with "bsdtar --lzma -cf" against a directory of two files, verifies the on-disk magic byte 0x5d, and round-trips through "bsdtar -xf" auto-detection to recover both source files byte-for-byte.
bsdtar -tJf lists members of a tar.xz archive Original / liblzma / usage-libarchive-tools-xz-r12-bsdtar-tjf-list Passed
Creates a tar.xz with bsdtar -cJf containing two distinct entries and runs "bsdtar -tJf" to list them, asserting the listing contains both source filenames in lexicographic order after sort.
xz default --check is CRC64 on noble Original / liblzma / usage-libarchive-tools-xz-r12-check-crc64-default Passed
Compresses a payload with no explicit --check flag and verifies "xz --robot --list" reports CRC64 as the default integrity-check column, then round-trips back to byte-equal output via xz -dc.
xz -k preserves the source file alongside the .xz output Original / liblzma / usage-libarchive-tools-xz-r12-keep-source-after-compress Passed
Runs "xz -k" on a regular file and verifies both the original file and the new .xz sibling are present afterward, with the .xz file decompressing back to the source's bytes.
xz --list --verbose reports compressed and uncompressed byte sizes Original / liblzma / usage-libarchive-tools-xz-r12-list-verbose-shows-bytes Passed
Compresses a deterministic payload and runs "xz --list --verbose" on the output, asserting the human-readable listing contains the source filename and the column headers "Streams" and "Blocks" used by the verbose listing.
lzcat decodes a legacy .lzma stream Original / liblzma / usage-libarchive-tools-xz-r12-lzcat-decodes-legacy Passed
Encodes a payload with "xz -F lzma -c" to produce a legacy LZMA stream and verifies "lzcat" decodes that file to byte-equal stdout, exercising the lzma alias interface.
xz -d reads xz stream from stdin redirection Original / liblzma / usage-libarchive-tools-xz-r12-stdin-stream-decompress Passed
Compresses a payload to a .xz file, then runs "xz -d -c" with stdin redirected from the .xz file (no positional argument) and asserts the stdout matches the source bytes via sha256.
xz -t integrity check exits zero on a valid stream Original / liblzma / usage-libarchive-tools-xz-r12-test-flag-passes-good Passed
Compresses a payload, runs "xz -t" on the .xz file, and asserts exit zero with no stdout output (integrity check passes for unmodified stream).
unxz round-trip restores original payload and removes the .xz file Original / liblzma / usage-libarchive-tools-xz-r12-unxz-roundtrip Passed
Compresses a payload via xz, then runs "unxz" on the .xz file (no --keep) and verifies the .xz file is removed, the decompressed file is restored at the original path, and its bytes match the source.
xzcat with two .xz file arguments concatenates decoded output Original / liblzma / usage-libarchive-tools-xz-r12-xzcat-multi-file-concat Passed
Compresses two distinct payloads to separate .xz files and runs "xzcat a.xz b.xz", asserting the stdout output is the in-order concatenation of both source payloads.
bsdtar -cJf xz tarball roundtrip with three entries Original / liblzma / usage-libarchive-tools-xz-r13-bsdtar-capj-create-roundtrip Passed
Builds a tar.xz archive with "bsdtar -cJf" against a directory of three files, asserts the .xz magic, lists members via "bsdtar -tf" matching the input set, and extracts to a fresh tree confirming each file's sha256 matches its source.
xz --check=none and --check=sha256 both roundtrip the same payload Original / liblzma / usage-libarchive-tools-xz-r13-check-none-then-sha256 Passed
Compresses one payload twice, once with --check=none and once with --check=sha256, asserts both archives have the .xz magic bytes, both pass "xz -t" integrity, and both decode byte-equal to the source.
xz -e extreme flag roundtrips a compressible payload Original / liblzma / usage-libarchive-tools-xz-r13-extreme-flag-roundtrip Passed
Compresses a 64KB highly repetitive payload with "xz -e -c" (extreme flag), verifies the .xz magic, and decompresses back via "xz -d -c" asserting source sha256 matches the recovered output.
xz --files= reads filenames from a newline-delimited list file Original / liblzma / usage-libarchive-tools-xz-r13-files-arg-list Passed
Builds a list file containing two newline-separated source paths and runs "xz --files=list.txt --keep" so xz reads the targets from the file rather than argv. Asserts both .xz outputs are produced, both decode roundtrip, and skips an unlisted third file in the same directory.
xz --files0= reads NUL-separated filenames from a list file Original / liblzma / usage-libarchive-tools-xz-r13-files0-nul-list Passed
Constructs a NUL-delimited list of two source paths and runs "xz --files0=list" with --keep, asserting both .xz outputs are produced and both decode back to the original sha256, exercising the NUL-separated variant of --files= alongside the newline-separated case.
xz -F lzma legacy stream encodes and decodes via xz round-trip Original / liblzma / usage-libarchive-tools-xz-r13-format-lzma-roundtrip Passed
Encodes a payload with "xz -F lzma -c" to produce a legacy .lzma stream, verifies the leading 0x5d byte marker, then decodes it back via "xz -F lzma -d -c" and asserts the recovered bytes match the source via sha256.
xz --keep --force overwrites an existing .xz target Original / liblzma / usage-libarchive-tools-xz-r13-keep-force-overwrite Passed
Compresses a file once with --keep, then re-runs xz with --keep --force in place, verifies the second run succeeds (overwriting the existing .xz), the source file is preserved, and the new .xz decodes byte-equal to the source.
xz preset levels -1 and -9 each roundtrip identically and -9 is no larger Original / liblzma / usage-libarchive-tools-xz-r13-preset-levels-1-and-9 Passed
Compresses the same 256KB compressible payload at xz -1 and xz -9 separately, asserts both stream sha256 round-trip back to source, and that the level-9 archive is no larger than the level-1 archive on this compressible content.
xz --suffix=.foo writes and decodes with the custom suffix Original / liblzma / usage-libarchive-tools-xz-r13-suffix-foo-roundtrip Passed
Compresses a payload using xz --suffix=.foo --keep, verifies the output filename ends with .foo (not .xz), checks the .xz container magic bytes, and decompresses with the same --suffix to recover the source bytes via sha256.
xz --to-stdout long form writes compressed output to stdout Original / liblzma / usage-libarchive-tools-xz-r13-to-stdout-flag Passed
Runs "xz --to-stdout" with a positional input and asserts the input file remains untouched, the captured stdout starts with the .xz magic bytes, and decoding it back via xz -d -c yields the source content via sha256.
bsdtar -tJf lists three entries of a tar.xz including a nested path Original / liblzma / usage-libarchive-tools-xz-r14-bsdtar-tjf-list-three-entries Passed
Builds a tar.xz containing two top-level files plus a nested subdir/file via "bsdtar -cJf", runs "bsdtar -tJf" on it, sorts the listing, and asserts exactly three entries are reported in lexicographic order including the "sub/" prefixed path. Distinct from the r12 two-entry tjf list case.
bsdtar --xz --options compression-level=9 produces a valid tar.xz Original / liblzma / usage-libarchive-tools-xz-r14-bsdtar-xz-options-level9 Passed
Builds a tar.xz via "bsdtar --xz --options compression-level=9", asserts the .xz magic bytes are present, lists the archive via "bsdtar -tJf" matching the input filenames, and extracts to a fresh tree confirming each file's sha256 matches the source. Exercises the libarchive --options compression-level option.
xz --check=sha256 surfaces SHA-256 in the --robot --list totals column Original / liblzma / usage-libarchive-tools-xz-r14-check-sha256-list-column Passed
Compresses a payload with "xz --check=sha256 -c" and runs "xz --robot --list" on the result, asserting the totals row's check column equals SHA-256, complementing the r12 default-CRC64 case by pinning the explicit-sha256 path.
xz -d short flag and --decompress long flag both round-trip the same archive Original / liblzma / usage-libarchive-tools-xz-r14-decompress-short-flag-roundtrip Passed
Compresses a payload to .xz, decompresses one copy with "xz -d -c" and another with "xz --decompress -c", then asserts both decoded outputs match the source sha256 byte-for-byte, pinning that the short and long forms are equivalent.
lzcat decodes a .lzma legacy stream produced by lzma -c Original / liblzma / usage-libarchive-tools-xz-r14-lzcat-from-lzma-file Passed
Compresses a payload with "lzma -c" to a .lzma legacy stream, then runs "lzcat" on the resulting file and asserts stdout matches the source sha256 — exercising lzcat against a .lzma file (distinct from r12's lzcat-decodes-legacy which uses an xz-format-lzma archive).
lzma --keep then --decompress sequence preserves source and recovers payload Original / liblzma / usage-libarchive-tools-xz-r14-lzma-keep-then-decompress Passed
Compresses a payload via "lzma --keep" (legacy lzma format), asserts the .lzma file appears alongside an untouched source, then decompresses with "lzma --decompress -c" and verifies the recovered bytes match the source sha256.
xz --robot --info reports machine-readable file/stream/totals rows Original / liblzma / usage-libarchive-tools-xz-r14-robot-info-fields Passed
Compresses a payload, runs "xz --robot -vv --list" (machine-readable verbose info mode) and asserts the output contains the documented robot-mode rows: name, file, stream, block, summary, and totals.
unxz --keep preserves the .xz input and writes the decoded sibling Original / liblzma / usage-libarchive-tools-xz-r14-unxz-explicit-keep Passed
Compresses a payload to .xz, then runs "unxz --keep" against it and asserts both the .xz file and the decoded sibling exist, and the decoded contents match the original sha256 — confirming unxz honours --keep distinct from xz -dk and the existing unxz-roundtrip case.
xz -dc concatenates two .xz inputs to a single stdout stream Original / liblzma / usage-libarchive-tools-xz-r14-xz-multi-input-stdout-concat Passed
Compresses two distinct payloads into separate .xz files, then runs "xz -dc fileA.xz fileB.xz" with both files as positional args and asserts stdout equals the in-order byte concatenation of payloadA and payloadB, exercising xz's multi-file decompress-to-stdout concatenation.
xzcat streams an .xz from stdin via shell pipeline Original / liblzma / usage-libarchive-tools-xz-r14-xzcat-stdin-streaming Passed
Pipes "xz -c" output directly into "xzcat" with no positional file argument, exercising xzcat's stdin path through a shell pipe rather than a redirected file, and asserts the recovered bytes match the source via sha256.
bsdcpio odc cpio piped through xz then listed back with -tv shows mode columns Original / liblzma / usage-libarchive-tools-xz-r15-bsdcpio-odc-xz-tv-listing Passed
Pipes a file list into "bsdcpio -o -H odc | xz -z -c" producing an .odc.cpio.xz archive, asserts the .xz outer magic, decompresses with xz -dc and pipes through "bsdcpio -i -tv" (verbose listing) and asserts each member name is present along with a leading '-' file-type character on each verbose line — distinct from the existing batch18 odc-xz case which only checks plain "-i -t" listing.
bsdtar -xJf with --strip-components=3 extracts only the deepest leaf into the output root Original / liblzma / usage-libarchive-tools-xz-r15-bsdtar-j-strip-three Passed
Builds a tar.xz containing a single deeply-nested member at "root/dir/sub/leaf.txt" via "bsdtar -cJf", lists the archive to confirm the prefix path, then extracts with "--strip-components=3" against a fresh output directory and asserts only "leaf.txt" appears at the output root with the original sha256 — exercising a triple strip distinct from the existing single-strip and double-strip cases.
bsdtar --format pax with xz produces a pax-magic tar.xz round trip Original / liblzma / usage-libarchive-tools-xz-r15-bsdtar-pax-format-tar-xz Passed
Builds a tar.xz with "bsdtar --format pax -cJf" against three input files, asserts the .xz outer magic is fd 37 7a 58 5a 00, decompresses to a raw .tar and asserts the embedded ustar header at offset 257 contains the "ustar" magic (pax archives use ustar at the magic-bytes layer with extended headers as additional members). Lists the archive via "bsdtar -tJf" and confirms exactly three entries match. Distinct from the existing pax-format-headers case which only checks bsdtar listing.
bsdtar --xz --options compression-level=5 round trips a tar.xz archive Original / liblzma / usage-libarchive-tools-xz-r15-bsdtar-xz-options-level5 Passed
Builds a tar.xz with "bsdtar --xz --options compression-level=5" (the default-tier preset distinct from existing level0/1/2/3/4/9 cases), asserts the .xz magic, lists members via "bsdtar -tJf" matching the input filenames, and extracts to a fresh tree confirming each file's sha256 matches the source.
lzcat decodes a legacy .lzma stream piped from lzma -c on stdin Original / liblzma / usage-libarchive-tools-xz-r15-lzcat-pipe-from-lzma-stdin Passed
Pipes "lzma -c" output directly into "lzcat" (no intermediate file, no positional argument), exercising lzcat's stdin path against a legacy .lzma stream. Asserts the recovered bytes match the source sha256 — distinct from the r14 lzcat-from-lzma-file case which uses a file argument.
xz -fk forcibly overwrites an existing .xz target while preserving the source Original / liblzma / usage-libarchive-tools-xz-r15-xz-fk-overwrite-existing Passed
Compresses a payload to in.txt.xz, then changes the source contents and re-runs "xz -fk in.txt" — the -f flag forces overwrite of the existing .xz target while -k keeps the new source on disk. Asserts the .xz file now decompresses to the new payload (not the original), the source remains intact, and the round-trip sha256 matches the new payload. Distinct from r10/r13 force-overwrite cases by combining -f with -k against an existing on-disk target.
xz -F auto on decompress accepts both .xz and legacy .lzma inputs Original / liblzma / usage-libarchive-tools-xz-r15-xz-format-auto-default Passed
Builds two compressed payloads from the same source — one with "xz -c" producing a .xz (fd 37 7a 58 5a 00) and one with "lzma -c" producing a legacy .lzma (5d ...) — then decompresses both via "xz -F auto -dc" (the format-detection mode) and asserts the recovered bytes match the source sha256 in both directions, exercising the auto-format detection path explicitly.
xz --robot --list emits a "name" row whose second column is the input path Original / liblzma / usage-libarchive-tools-xz-r15-xz-list-name-row-shows-input Passed
Compresses a payload and runs "xz --robot --list" on the output, then asserts the line beginning with "name" reports the input filename in its tab-separated path field — pinning a different robot-mode column from the r14 robot-info-fields case (which only checks row presence) and the r14 sha256-list-column case (which only checks the totals row).
xz -q suppresses the verbose stats line that -v emits to stderr Original / liblzma / usage-libarchive-tools-xz-r15-xz-q-suppresses-verbose-line Passed
Compresses a payload to .xz, then runs two parallel verbose decompressions: "xz -d -v" (verbose stderr enabled) and "xz -d -v -q" (the -q flag overrides the verbosity bump). Asserts the verbose form prints non-empty stderr containing the input filename, while the -q form prints empty stderr, and both write the same correctly recovered payload back to disk matching the source sha256 — pinning the -q quietness flag against the -v verbose flag in tandem.
xzcat decodes three .xz inputs in one call and concatenates them to stdout Original / liblzma / usage-libarchive-tools-xz-r15-xzcat-three-files-stdout-concat Passed
Compresses three distinct payloads to .xz files, runs "xzcat a.xz b.xz c.xz" with all three files as positional arguments, and asserts stdout matches the sha256 of the in-order concatenation of the three sources — exercising the multi-file decompress-to-stdout path through xzcat (distinct from r14 xz-multi-input-stdout-concat which uses xz -dc with two files).
bsdtar -xJf with --strip-components 1 removes the top-level directory Original / liblzma / usage-libarchive-tools-xz-r16-bsdtar-extract-strip-1-from-tarxz Passed
Packs a top-level directory containing one file into a tar.xz, then extracts with bsdtar -xJf --strip-components 1 into an empty directory, and asserts the inner file appears at the extraction root (not under the original top-level prefix).
bsdtar -tjf on a tar.xz round-trip lists exactly the input filenames Original / liblzma / usage-libarchive-tools-xz-r16-bsdtar-tjf-emits-tar-listing Passed
Builds a 3-file tree, packs with bsdtar -cJf into a tar.xz, then lists with bsdtar -tjf and asserts the captured listing contains all 3 filenames and exactly 3 non-empty lines.
bsdtar --format=ustar through xz round-trip writes a ustar magic header Original / liblzma / usage-libarchive-tools-xz-r16-bsdtar-ustar-magic-bytes Passed
Builds a tar.xz with bsdtar --format=ustar -cJf, decompresses with xz -d, and asserts the resulting tar's first 512-byte header contains the literal "ustar" magic at offset 257 — confirming the format flag is honoured on a tar.xz round trip.
xz -l verbose listing prints a Streams field row Original / liblzma / usage-libarchive-tools-xz-r16-list-shows-streams-field Passed
Compresses a payload, runs xz -l --verbose on the output, and asserts the captured listing contains the literal "Streams" label, distinct from earlier rounds that pinned the Name row or the totals row only.
xz --decompress --keep preserves the .xz input alongside the new file Original / liblzma / usage-libarchive-tools-xz-r16-xz-decompress-keep-preserves-source Passed
Compresses a payload with xz -k, then runs xz --decompress --keep on the .xz file and asserts BOTH the .xz and the decompressed output exist afterwards with matching content via sha256sum on the decoded copy.
xz -z -d combined on the same invocation exits non-zero with an error message Original / liblzma / usage-libarchive-tools-xz-r16-xz-rejects-conflicting-flags Passed
Runs xz -z -d (asking to both compress AND decompress) and asserts the process exits with a non-zero status AND emits a diagnostic to stderr, pinning xz's argv conflict detection on Ubuntu 24.04.
xzcat concatenates output across two physically-concatenated xz streams Original / liblzma / usage-libarchive-tools-xz-r16-xzcat-concatenated-streams Passed
Compresses two payloads with xz -c into two .xz files, concatenates them via shell cat into a multi-stream .xz, and asserts xzcat on that concatenated archive emits BOTH payloads in order — exercising liblzma's stream-iteration decode path.
bsdtar -cJf creates a tar.xz containing three files Original / liblzma / usage-libarchive-tools-xz-r17-bsdtar-cjf-three-entry-tarxz Passed
Creates a tar.xz via bsdtar -cJf from a directory with three files and asserts bsdtar -tJf lists all three filenames, exercising the libarchive write-and-read xz path on a multi-entry archive.
bsdtar -tJf lists exactly three entries on a 3-file tar.xz Original / liblzma / usage-libarchive-tools-xz-r17-bsdtar-tjf-lists-three-entries Passed
Builds a 3-file tar.xz, lists its members with bsdtar -tJf, and asserts the listing has exactly three non-empty lines, pinning libarchive's xz-tar enumeration count.
bsdtar -tvJf shows user/group columns for entries written with --uname/--gname Original / liblzma / usage-libarchive-tools-xz-r17-bsdtar-tvjf-shows-user-group-columns Passed
Creates a tar.xz with bsdtar --uname=alpha --gname=beta and asserts that bsdtar -tvJf verbose listing includes both alpha and beta strings, exercising the libarchive name override round-trip on xz-compressed archives.
xz -e (extreme) accepts a tiny payload and round-trips bytes Original / liblzma / usage-libarchive-tools-xz-r17-xz-extreme-flag-accepted Passed
Compresses a small payload with xz -9 -e, decompresses, and asserts the round-tripped payload matches the original SHA — locking the --extreme flag's behavior on the lzma-utils CLI as installed.
xz -7 output size does not exceed xz -0 output size on a repetitive payload Original / liblzma / usage-libarchive-tools-xz-r17-xz-level7-not-larger-than-level0 Passed
Compresses the same repetitive payload at xz -0 and xz -7 and asserts the level-7 output is <= the level-0 output, exercising the preset compression-ratio monotonicity on a representative input.
xz --robot --list emits a totals row Original / liblzma / usage-libarchive-tools-xz-r17-xz-robot-list-totals-row Passed
Compresses a payload, runs xz --robot --list on it, and asserts the machine-readable robot listing includes a "totals" row, pinning the documented robot-mode listing schema.
xz | xz -d stdin pipe round-trip preserves payload SHA Original / liblzma / usage-libarchive-tools-xz-r17-xz-stdin-pipe-roundtrip-sha Passed
Pipes a payload through xz then xz -d back-to-back and asserts the final stdout sha matches the original, exercising the streaming compression/decompression pipeline through the lzma library.
xz -S .myxz writes the compressed file with the requested suffix Original / liblzma / usage-libarchive-tools-xz-r17-xz-suffix-myxz-output-name Passed
Runs xz -S .myxz on a payload file and asserts the resulting file is named "<input>.myxz" rather than the default ".xz", pinning the --suffix override behavior.
xz --threads=2 round-trip yields a byte-identical decompressed payload Original / liblzma / usage-libarchive-tools-xz-r17-xz-threads-2-roundtrip-sha Passed
Compresses a small payload with xz --threads=2, decompresses with xz -d, and asserts the SHA-256 of the round-tripped output matches the original — pinning that multi-threaded compression preserves payload bytes.
bsdtar pax format xz roundtrip Original / liblzma / usage-libarchive-tools-xz-r9-bsdcpio-pax-roundtrip Passed
Creates an xz-compressed pax-format tarball and verifies the extracted file content matches the original after decompression.
bsdtar xz reads tarball via stdin Original / liblzma / usage-libarchive-tools-xz-r9-bsdtar-from-stdin-pipe Passed
Pipes an xz-compressed tarball to bsdtar -tf - and verifies the listing contains the original entry name.
bsdtar xz --exclude pattern filter Original / liblzma / usage-libarchive-tools-xz-r9-exclude-pattern Passed
Builds an xz tarball with bsdtar --exclude '*.tmp' and verifies matching files are absent from the listing.
bsdtar xz extract with --include pattern Original / liblzma / usage-libarchive-tools-xz-r9-include-pattern Passed
Creates an xz tarball with mixed file extensions then extracts only entries matching --include '*.log' and confirms the other entries are not extracted.
bsdtar xz --keep-newer-files preserves newer Original / liblzma / usage-libarchive-tools-xz-r9-keep-newer-files Passed
Extracts an xz tarball over a destination whose existing file is newer and verifies bsdtar --keep-newer-files leaves the existing newer file untouched.
bsdtar xz multi-file listing count Original / liblzma / usage-libarchive-tools-xz-r9-multifile-listing-count Passed
bsdtar xz --newer-mtime selective add Original / liblzma / usage-libarchive-tools-xz-r9-newer-mtime-filter Passed
Creates two files with disparate mtimes and uses bsdtar -cJf --newer-mtime to include only the newer file in the resulting xz tarball.
bsdtar xz numeric-owner verbose listing Original / liblzma / usage-libarchive-tools-xz-r9-numeric-owner Passed
Creates an xz tarball and verifies bsdtar -tv --numeric-owner produces a listing whose owner field is numeric.
bsdtar xz preserves file permission mode Original / liblzma / usage-libarchive-tools-xz-r9-permission-mode Passed
Creates an xz tarball containing a file with mode 0750, extracts it with --preserve-permissions, and verifies the extracted file has mode 0750.
bsdtar xz uname override via --uname Original / liblzma / usage-libarchive-tools-xz-r9-uname-tag Passed
Creates an xz tarball with --uname=customuser --gname=customgrp and verifies the verbose listing surfaces those names.
libarchive tools xz root directory extract gamma Original / liblzma / usage-libarchive-tools-xz-rootdir-extract-gamma Passed
Exercises libarchive tools xz root directory extract gamma through a dependent-client usage scenario.
libarchive-tools xz root hidden file Original / liblzma / usage-libarchive-tools-xz-rootdir-hidden-file Passed
Archives and extracts a hidden file under a root directory in an xz-compressed tar and verifies the restored payload.
libarchive tools xz root directory list Original / liblzma / usage-libarchive-tools-xz-rootdir-list Passed
libarchive-tools xz single extract Original / liblzma / usage-libarchive-tools-xz-single-file-extract Passed
libarchive tools xz space directory list Original / liblzma / usage-libarchive-tools-xz-space-dir-list Passed
libarchive-tools xz spaced directory Original / liblzma / usage-libarchive-tools-xz-space-dir Passed
Archives a directory with spaces under xz compression and verifies the nested file extracts correctly.
libarchive-tools xz space file extract Original / liblzma / usage-libarchive-tools-xz-space-file-extract Passed
Extracts a spaced filename from an xz-compressed tar archive and verifies the restored file payload.
libarchive-tools xz space file stdout Original / liblzma / usage-libarchive-tools-xz-space-file-stdout Passed
Streams a spaced filename member from an xz-compressed tar archive with bsdtar -xOf and verifies the extracted payload.
libarchive-tools xz spaced root extract Original / liblzma / usage-libarchive-tools-xz-space-rootdir-extract Passed
libarchive-tools xz spaced root list Original / liblzma / usage-libarchive-tools-xz-space-rootdir-list Passed
Lists an xz-compressed tar whose top-level directory name contains spaces and verifies the nested path.
libarchive-tools xz spaced filename Original / liblzma / usage-libarchive-tools-xz-spaced-filename Passed
libarchive-tools xz stdout archive Original / liblzma / usage-libarchive-tools-xz-stdin-archive Passed
libarchive-tools xz stdin list members Original / liblzma / usage-libarchive-tools-xz-stdin-list-members Passed
Pipes an xz-compressed tar archive into bsdtar and verifies the listed member paths from stdin input.
libarchive-tools xz stdout member alpha Original / liblzma / usage-libarchive-tools-xz-stdout-member-alpha Passed
Streams a single member from an xz-compressed tar archive with bsdtar -xOf and verifies the extracted payload.
libarchive-tools xz stdout stream Original / liblzma / usage-libarchive-tools-xz-stdout-stream Passed
libarchive-tools xz stream extract Original / liblzma / usage-libarchive-tools-xz-stream-extract Passed
libarchive-tools xz stream list Original / liblzma / usage-libarchive-tools-xz-stream-list Passed
libarchive tools xz stream member stdout Original / liblzma / usage-libarchive-tools-xz-stream-member-stdout Passed
libarchive-tools xz stream subdir list Original / liblzma / usage-libarchive-tools-xz-stream-subdir-list Passed
Streams an xz-compressed tar through bsdtar and verifies a nested subdirectory member appears in the listing.
libarchive-tools xz strip components Original / liblzma / usage-libarchive-tools-xz-strip-components Passed
libarchive-tools xz subtree only Original / liblzma / usage-libarchive-tools-xz-subtree-only Passed
libarchive tools xz symlink extract target Original / liblzma / usage-libarchive-tools-xz-symlink-extract-target Passed
libarchive-tools xz symlink listing Original / liblzma / usage-libarchive-tools-xz-symlink-listing Passed
Lists an xz-compressed archive containing a symbolic link and verifies the link member appears in verbose output.
libarchive-tools xz symlink Original / liblzma / usage-libarchive-tools-xz-symlink Passed
libarchive-tools xz tar extract Original / liblzma / usage-libarchive-tools-xz-tar-extract Passed
libarchive-tools xz tar list Original / liblzma / usage-libarchive-tools-xz-tar-list Passed
libarchive-tools xz topdir strip one Original / liblzma / usage-libarchive-tools-xz-topdir-strip-one Passed
Archives a top-level directory under xz compression and extracts it with one stripped path component.
libarchive-tools xz two space files list Original / liblzma / usage-libarchive-tools-xz-two-space-files-list Passed
Lists an xz-compressed tar archive containing a spaced filename and verifies the member path is preserved.
libarchive-tools xz two topdirs list Original / liblzma / usage-libarchive-tools-xz-two-topdirs-list Passed
Creates an xz-compressed tar with two top-level directories and verifies both paths appear in the archive listing.
libarchive-tools xz verbose exec list Original / liblzma / usage-libarchive-tools-xz-verbose-exec-list Passed
Lists an xz-compressed tar archive verbosely and verifies executable permission metadata for a script member.
libarchive-tools xz verbose list Original / liblzma / usage-libarchive-tools-xz-verbose-list Passed
CVE-2024-3094 liblzma regression Original / liblzma / cve-2024-3094 Passed
Asserts that the installed liblzma.so.5 does not expose any of the XZ Utils 5.6.0/5.6.1 backdoor resolver symbols (e.g. _get_cpuid, crc32_resolve, crc64_resolve) and that an easy_buffer_encode/stream_buffer_decode round trip preserves the payload byte-for-byte.
xz corrupted stream rejection Port / liblzma / corrupted-stream-rejection Passed
xz integrity check Port / liblzma / integrity-check Passed
xz multi stream behavior Port / liblzma / multi-stream-behavior Passed
liblzma streaming C API smoke Port / liblzma / streaming-c-api-smoke Passed
xz command round trip Port / liblzma / xz-compress-decompress Passed
bsdcat decompresses an .xz file emitting the original payload bytes Port / liblzma / usage-libarchive-tools-r18-bsdcat-tarxz-stream Passed
Compresses a known payload to an .xz file and asserts bsdcat reproduces the exact bytes on stdout, exercising libarchive's xz decoder via the bsdcat front end.
bsdtar -cJf --exclude omits matching files from the tar.xz Port / liblzma / usage-libarchive-tools-r18-bsdtar-exclude-pattern Passed
Creates a tar.xz with bsdtar -cJf --exclude='*.skip' over a directory containing keep and skip files, then asserts the listing includes keep.txt but not skip.skip — pinning the libarchive exclude pattern on xz archives.
bsdtar -xJf --strip-components 1 flattens a single leading directory from a tar.xz Port / liblzma / usage-libarchive-tools-r18-bsdtar-strip-components-1 Passed
Builds a tar.xz containing one nested file under a single top-level directory, extracts it with bsdtar -xJf --strip-components 1, and asserts the file lands without the leading directory prefix — exercising the libarchive path-component stripping path on xz inputs.
bsdtar -xJf extracts a tar.xz member with byte-identical payload Port / liblzma / usage-libarchive-tools-r18-bsdtar-xjf-extracts-payload Passed
Builds a tar.xz containing a known payload, extracts it with bsdtar -xJf into a fresh directory, and asserts the extracted file SHA matches the original — exercising the libarchive xz read pipeline end-to-end.
xz --format=lzma legacy stream round-trips to a byte-identical payload Port / liblzma / usage-libarchive-tools-r18-lzma-format-roundtrip-sha Passed
Compresses a payload with xz --format=lzma, decompresses back via xz -d --format=lzma, and asserts the round-tripped SHA-256 matches the source, exercising the legacy .lzma container path through liblzma.
xz --check=sha256 stream lists SHA-256 as the integrity check Port / liblzma / usage-libarchive-tools-r18-xz-check-sha256-listing Passed
Compresses a payload with xz --check=sha256 and asserts xz --list -vv reports SHA-256 in its detailed listing of the produced stream, pinning the non-default integrity-check selection through the liblzma encoder.
xz --keep retains the source file alongside the .xz output Port / liblzma / usage-libarchive-tools-r18-xz-keep-preserves-source Passed
Runs xz --keep on a payload and asserts both the original file and the corresponding .xz output exist after the run, pinning the documented no-delete-source behavior.
xz --list -vv on a default-compressed file shows the CRC64 integrity check Port / liblzma / usage-libarchive-tools-r18-xz-list-shows-check-crc64 Passed
Compresses a payload with default xz settings and asserts xz --list -vv reports a CRC64 integrity check in its detailed listing, pinning the default integrity-check type emitted by the liblzma encoder.
xz -t exits non-zero on a deliberately corrupted .xz file Port / liblzma / usage-libarchive-tools-r18-xz-test-flag-nonzero-on-corrupt Passed
Builds a valid xz stream, flips a byte in the middle of the file, runs xz -t on the corrupted archive, and asserts the integrity check exits non-zero — pinning the failure detection path through the liblzma decoder.
xz -t exits zero on a well-formed .xz file Port / liblzma / usage-libarchive-tools-r18-xz-test-flag-zero-on-valid Passed
Compresses a payload with xz then runs xz -t against the result and asserts the integrity test exits with status zero, pinning that valid xz streams pass the integrity-check verb.
bsdtar piped tar.xz to bsdtar -xf - extracts payload byte-for-byte Port / liblzma / usage-libarchive-tools-r19-bsdtar-cjf-pipe-stdin-extract Passed
Pipes bsdtar -cJf - through bsdtar -xf - into a destination directory and asserts the extracted file SHA-256 matches the source, exercising in-memory streaming tar.xz creation and extraction.
bsdtar -cJf produces a tar.xz whose listing matches the input set Port / liblzma / usage-libarchive-tools-r19-bsdtar-cjf-then-list-xz-tarball Passed
Creates a tar.xz of three text files using bsdtar -cJf and runs bsdtar -tJf to list the archive, asserting all three filenames appear in the listing, pinning libarchive's xz writer + reader symmetry.
bsdtar produces distinct magic bytes for xz vs zstd tarballs of the same payload Port / liblzma / usage-libarchive-tools-r19-bsdtar-zstd-distinguishable-from-xz Passed
Creates the same one-file tarball twice via bsdtar -acf using .tar.xz and .tar.zst suffixes, then asserts the first byte of each archive differs (xz starts 0xFD, zstd starts 0x28), pinning libarchive's filter-by-extension dispatch.
unxz decompresses file.xz to file and removes the .xz source by default Port / liblzma / usage-libarchive-tools-r19-unxz-removes-xz-suffix Passed
Compresses a file to .xz, runs unxz on the resulting .xz, then asserts the un-suffixed file exists with the original payload and the .xz source has been removed, pinning the default unxz file-rename contract.
xz --check=none --list reports None integrity-check for the produced stream Port / liblzma / usage-libarchive-tools-r19-xz-check-none-listing Passed
Compresses a payload with xz --check=none and runs xz --list against the output, asserting the Check column reports "None", pinning the no-integrity-check path through liblzma.
xz --list --robot reports exactly one stream for a single-stream .xz file Port / liblzma / usage-libarchive-tools-r19-xz-list-robot-reports-stream-count Passed
Compresses a payload to a single-stream .xz then runs xz --list --robot and asserts the totals line reports streams=1, pinning the machine-readable listing semantics for single-stream archives.
xz -d concatenates two .xz streams into the joined original payload Port / liblzma / usage-libarchive-tools-r19-xz-multi-stream-concat-decompress Passed
Compresses two payloads separately into single-stream .xz files, concatenates the bytes, runs xz -dc on the joined stream, and asserts the output equals "alpha" followed by "beta", pinning the multi-stream decoder concatenation contract.
xz --quiet on already-suffixed input produces no stderr output Port / liblzma / usage-libarchive-tools-r19-xz-quiet-suppresses-stderr Passed
Renames a payload to a .xz-conflicting name, runs xz --quiet which would normally emit a warning on stderr, and asserts the captured stderr is empty, pinning the suppression behavior of the quiet flag.
xz -d reads from stdin and reproduces a byte-identical payload on stdout Port / liblzma / usage-libarchive-tools-r19-xz-stdin-decompress-roundtrip Passed
Compresses a 4 KiB random-looking payload with xz, then pipes the .xz bytes into xz -d and asserts the SHA-256 of the decompressed stdout matches the original, pinning the streaming-decode contract.
xzcat decompresses an .xz file emitting the original payload bytes Port / liblzma / usage-libarchive-tools-r19-xzcat-decompresses-xz Passed
Compresses a 2 KiB payload to .xz with xz, then runs xzcat against it and asserts the SHA-256 of stdout equals the source SHA, pinning xzcat's pass-through decompression behavior.
bsdtar -cJf then -xJf round-trips a small file's contents byte-for-byte Port / liblzma / usage-libarchive-tools-r20-bsdtar-cjf-content-roundtrip-via-extract Passed
Creates a tar.xz containing a single text file via bsdtar -cJf, removes the source, extracts it via bsdtar -xJf in a clean directory, and asserts the extracted file's contents match the original via cmp, exercising libarchive's xz filter encode/decode end-to-end via bsdtar's two-step API.
bsdtar --lzma -cf then -xf round-trips a payload via the legacy .lzma filter Port / liblzma / usage-libarchive-tools-r20-bsdtar-tar-lzma-extract-roundtrip Passed
Creates a tar archive with the legacy LZMA1 filter via bsdtar --lzma -cf, then extracts it via bsdtar --lzma -xf in a clean directory, and asserts the extracted file's contents match the original via cmp, exercising libarchive's legacy LZMA1 encode/decode through bsdtar.
bsdtar -tJf on a tar.xz with two files lists exactly two member names Port / liblzma / usage-libarchive-tools-r20-bsdtar-tjf-lists-two-members Passed
Creates a tar.xz containing two distinct files via bsdtar -cJf, runs bsdtar -tJf to list contents, and asserts the listing has exactly two lines and contains both expected basenames, pinning the multi-member listing path through libarchive's xz filter.
xz --check=crc32 stream lists CRC32 as the integrity check Port / liblzma / usage-libarchive-tools-r20-xz-check-crc32-listing Passed
Compresses a payload with xz --check=crc32, runs xz --list -vv on the result, and asserts the listing reports the CRC32 integrity check, pinning the explicit check-selection path distinct from the default CRC64 and from the SHA-256/none variants.
xz round-trips an empty payload to a zero-byte decompressed output Port / liblzma / usage-libarchive-tools-r20-xz-empty-input-roundtrip Passed
Compresses a zero-byte file via xz -c, asserts the resulting .xz file is non-empty (valid stream framing), then decompresses with xz -dc and asserts the decoded output is exactly zero bytes, pinning the empty-payload round-trip contract.
xz --force overwrites an existing .xz output file with a fresh stream Port / liblzma / usage-libarchive-tools-r20-xz-force-overwrite-replaces-existing Passed
Pre-populates "in.txt.xz" with sentinel placeholder bytes, then runs xz --keep --force on in.txt and asserts the .xz file no longer contains the sentinel and decompresses back to the original in.txt payload, pinning xz's --force overwrite semantics.
xz -9 compression of a 16 KiB repetitive payload is not larger than xz -1 Port / liblzma / usage-libarchive-tools-r20-xz-level-9-not-larger-than-level-1 Passed
Generates a 16 KiB highly-repetitive payload, compresses it via xz -1 and xz -9 separately, and asserts the -9 output size is less than or equal to the -1 output size, pinning the level-9 preset's at-least-as-good compression contract on a redundant input.
xz -t -qq on a corrupted .xz exits non-zero with empty stderr Port / liblzma / usage-libarchive-tools-r20-xz-quiet-twice-suppresses-test-corrupt-stderr Passed
Compresses a payload via xz, deliberately corrupts a mid-stream byte, runs xz -t -qq on the corrupted file capturing stderr, and asserts the exit status is non-zero while stderr is empty, pinning the double-quiet flag's error suppression even on integrity failure.
xz -v compression of a non-trivial payload emits a non-empty stderr summary Port / liblzma / usage-libarchive-tools-r20-xz-verbose-stderr-mentions-ratio Passed
Compresses a 4 KiB pseudo-random payload via xz -v -c capturing stderr to a tempfile, then asserts the stderr capture is non-empty (xz emits a single-file progress/summary line in verbose mode) while the captured stdout is a valid .xz that decompresses back to the original SHA-256.
xz --version output mentions liblzma Port / liblzma / usage-libarchive-tools-r20-xz-version-reports-liblzma Passed
Runs xz --version and asserts the output contains the substring "liblzma", pinning that the xz CLI advertises its underlying decompression library in the version banner on Ubuntu 24.04.
bsdtar tar.xz and tar.lzma archives carry distinct file-format magic prefixes Port / liblzma / usage-libarchive-tools-r21-bsdtar-cf-zstd-vs-xz-distinct-magic Passed
Creates the same tar contents with --xz then with --lzma via bsdtar and asserts the first 6 bytes differ between formats (xz: FD 37 7A 58 5A 00; lzma: header begins with 5D 00 00), pinning that liblzma emits format-distinct stream prefixes.
bsdtar --use-compress-program lzma round-trips a small archive Port / liblzma / usage-libarchive-tools-r21-bsdtar-use-compress-program-lzma Passed
Builds a small tree, archives it via bsdtar --use-compress-program=lzma, lists the resulting archive with the same compressor program, and asserts the listing reproduces the original entry names, pinning the external-compressor pipeline through liblzma.
xz --block-size produces a multi-block .xz that decompresses round-trip Port / liblzma / usage-libarchive-tools-r21-xz-block-size-multiple-streams Passed
Builds a 64 KiB payload, compresses with --block-size=8KiB to force multiple internal blocks, decompresses, and asserts the result matches the original; verifies xz robot list reports multiple blocks via the totals row.
xz delta filter chained with lzma2 round-trips a small payload Port / liblzma / usage-libarchive-tools-r21-xz-delta-filter-roundtrip Passed
Compresses a payload with --delta=dist=1 chained to --lzma2=preset=6 and decompresses it back via xz -d, asserting the recovered SHA matches the original input, pinning the delta-then-lzma2 filter-chain support in the liblzma CLI.
xz format=lzip flag rejects xz-format input as expected Port / liblzma / usage-libarchive-tools-r21-xz-ignore-check-decodes-corrupted-crc Passed
Compresses a payload as xz then invokes xz -d --format=lzip on the .xz file and asserts the command fails (exit nonzero), pinning that liblzma's strict format gating refuses to decode xz streams under the lzip format selector.
xz --no-sparse decompression yields identical bytes to plain decompression Port / liblzma / usage-libarchive-tools-r21-xz-info-aliases-list Passed
Compresses a small payload then decompresses with --no-sparse and asserts the result matches the original byte-for-byte, pinning that suppressing sparse-file creation does not alter the liblzma-decoded byte stream contents.
xz --format=raw --lzma1 raw filter chain round-trips a small payload Port / liblzma / usage-libarchive-tools-r21-xz-lzma1-filter-raw-roundtrip Failed
Compresses a payload using xz --format=raw --lzma1=preset=6, decompresses with the same raw filter chain, and asserts the SHA of the recovered bytes matches the original, pinning the raw-format custom-filter encode/decode path in the liblzma CLI.
xz --memlimit-decompress=0 falls back to the default limit and decodes successfully Port / liblzma / usage-libarchive-tools-r21-xz-memlimit-decompress-zero-default Passed
Compresses a small payload then decompresses with --memlimit-decompress=0 (which xz documents as "use defaults") and asserts the round-trip matches the original payload SHA, pinning the documented "0 means default" memlimit semantics in the liblzma-driven decoder.
xzdiff between two xz-compressed text files reports the changed line Port / liblzma / usage-libarchive-tools-r21-xzdiff-shows-content-diff Passed
Compresses two text files (differing in one line) with xz and runs xzdiff, asserting that the diff output mentions the differing token, pinning xzdiff's liblzma-backed transparent decode-then-diff pipeline.
xzgrep finds a literal pattern inside a .xz-compressed text file Port / liblzma / usage-libarchive-tools-r21-xzgrep-matches-pattern Passed
Compresses a small text file with xz and uses xzgrep to find a substring pattern in the compressed file, asserting the matching line is returned, pinning the xzgrep helper's liblzma-backed transparent decompression.
libarchive-tools xz extract in cwd Port / liblzma / usage-libarchive-tools-xz-batch10-cwd-extract Passed
Extracts an xz archive from the current working directory without -C and verifies the file lands relative to cwd.
libarchive-tools xz deep nested extract Port / liblzma / usage-libarchive-tools-xz-batch10-deep-nested-extract Passed
Round-trips a five-level nested file through an xz tar and verifies the leaf path and payload survive extraction.
libarchive-tools xz multiple exclude patterns Port / liblzma / usage-libarchive-tools-xz-batch10-exclude-multi Passed
Builds an xz tar with two --exclude patterns and verifies only the unmatched member appears in the listing.
libarchive-tools xz extract two members to stdout Port / liblzma / usage-libarchive-tools-xz-batch10-extract-multi-stdout Passed
Uses bsdtar -xOf to print two named members from an xz archive and verifies both payloads appear on stdout.
libarchive-tools xz extract from stdin pipe Port / liblzma / usage-libarchive-tools-xz-batch10-extract-stdin-piped Passed
Pipes an xz tar into bsdtar -xf - via redirection and verifies a deeply nested member is extracted with its payload.
libarchive-tools xz mixed listing exact count Port / liblzma / usage-libarchive-tools-xz-batch10-mixed-format-list Passed
Adds three members including a spaced filename to an xz tar and verifies the listing reports exactly three entries.
libarchive-tools xz two archives separately Port / liblzma / usage-libarchive-tools-xz-batch10-multi-archive-list Passed
libarchive-tools xz nested member checksum Port / liblzma / usage-libarchive-tools-xz-batch10-roundtrip-checksum Passed
Round-trips a nested file through an xz tar archive and verifies the SHA-256 of the extracted file matches the source.
libarchive-tools xz archive to stdout Port / liblzma / usage-libarchive-tools-xz-batch10-stream-stdout-archive Passed
Streams an xz-compressed tar to stdout via bsdtar -cJf - then lists the resulting archive and verifies both members appear.
libarchive-tools xz extract with explicit --xz Port / liblzma / usage-libarchive-tools-xz-batch10-xz-decompress-flag Passed
bsdtar xz empty directory Port / liblzma / usage-libarchive-tools-xz-batch11-empty-directory Passed
bsdtar xz exclude VCS Port / liblzma / usage-libarchive-tools-xz-batch11-exclude-vcs Passed
bsdtar xz file list create Port / liblzma / usage-libarchive-tools-xz-batch11-filelist-create Passed
bsdtar xz mode preserved Port / liblzma / usage-libarchive-tools-xz-batch11-mode-preserved Passed
bsdtar xz mtime preserved Port / liblzma / usage-libarchive-tools-xz-batch11-mtime-preserved Passed
bsdtar xz newer mtime filter Port / liblzma / usage-libarchive-tools-xz-batch11-newer-mtime Passed
bsdtar xz null file list Port / liblzma / usage-libarchive-tools-xz-batch11-null-filelist Passed
bsdtar xz owner labels Port / liblzma / usage-libarchive-tools-xz-batch11-owner-labels Passed
Writes custom owner labels into an xz-compressed tar archive and verifies verbose listing output.
bsdtar xz transform name Port / liblzma / usage-libarchive-tools-xz-batch11-transform-name Passed
bsdtar xz ustar format Port / liblzma / usage-libarchive-tools-xz-batch11-ustar-format Passed
bsdtar append into tar.xz rejected Port / liblzma / usage-libarchive-tools-xz-batch12-append-rejected Passed
Confirms bsdtar -rJf cannot append into an existing xz-compressed tarball and reports an error without corrupting the archive.
bsdcat reads xz file Port / liblzma / usage-libarchive-tools-xz-batch12-bsdcat-xz-file Passed
Compresses a deterministic payload with xz(1) and confirms bsdcat decompresses it byte-identically through liblzma.
bsdcpio xz output stream Port / liblzma / usage-libarchive-tools-xz-batch12-bsdcpio-xz-stream Passed
Pipes a file list through bsdcpio with --xz and confirms the resulting cpio stream carries the .xz magic and round-trips.
bsdtar xz level 9 magic check Port / liblzma / usage-libarchive-tools-xz-batch12-create-level9-magic Passed
bsdtar reads tar produced by xz pipe Port / liblzma / usage-libarchive-tools-xz-batch12-gnu-tar-interop Passed
Builds a tarball with GNU tar piped through xz then extracts with bsdtar to confirm liblzma decompresses the GNU-produced stream.
bsdtar list xz tarball members Port / liblzma / usage-libarchive-tools-xz-batch12-list-xz-tarball Passed
Creates a tar.xz with multiple members and verifies bsdtar -t lists each expected member name exactly once.
bsdtar lzma filter level 6 Port / liblzma / usage-libarchive-tools-xz-batch12-lzma-filter-level6 Passed
Creates a tar.lzma with bsdtar using --lzma at compression-level=6 and verifies legacy LZMA magic plus byte-equal round-trip.
bsdtar xz compression-level 1 Port / liblzma / usage-libarchive-tools-xz-batch12-options-xz-level1 Passed
Builds an xz tarball with --options xz:compression-level=1, verifies the .xz magic, and round-trips the content with sha256 equality.
bsdtar xz preserves mtime and perm Port / liblzma / usage-libarchive-tools-xz-batch12-roundtrip-mtime-perm Passed
Round-trips a file through tar.xz with bsdtar -p and confirms mode bits and mtime survive compression and extraction.
bsdtar xz uid gid zero override Port / liblzma / usage-libarchive-tools-xz-batch12-uid-gid-zero Passed
Creates an xz tarball with --uid 0 --gid 0 overrides and confirms bsdtar -tv reports the rewritten owner identifiers.
bsdtar xz strips leading slash by default Port / liblzma / usage-libarchive-tools-xz-batch13-absolute-paths-stripped Passed
Archives a file by absolute path through tar.xz; bsdtar must strip the leading slash by default and -tf must not list any path beginning with /.
bsdcpio -i extracts xz cpio Port / liblzma / usage-libarchive-tools-xz-batch13-bsdcpio-extract-xz Passed
Builds a newc cpio compressed with xz(1) and confirms bsdcpio -idum decodes it via liblzma producing byte-identical files.
bsdtar reads tar.xz from /dev/stdin Port / liblzma / usage-libarchive-tools-xz-batch13-dev-stdin Passed
Streams a tar.xz through bsdtar -xf /dev/stdin and verifies extracted content sha256-matches the source.
bsdtar -X exclude file with xz Port / liblzma / usage-libarchive-tools-xz-batch13-exclude-from-file Passed
Creates a tar.xz with bsdtar -X pointing at an exclude-pattern file and verifies excluded entries are absent while kept entries round-trip.
bsdtar -x --keep-newer-files xz Port / liblzma / usage-libarchive-tools-xz-batch13-keep-newer-files Passed
Extracts a tar.xz over an existing newer file with --keep-newer-files; the on-disk newer file must survive while a missing peer is created.
bsdtar mtree piped through xz Port / liblzma / usage-libarchive-tools-xz-batch13-mtree-pipe-xz Passed
Emits an mtree manifest with bsdtar, compresses through xz(1), then re-reads the .xz mtree with bsdtar -tf to confirm the listed entries match.
bsdtar xz threads=1 single-threaded Port / liblzma / usage-libarchive-tools-xz-batch13-options-xz-threads Passed
Encodes a tar.xz with --options xz:threads=1 and verifies the .xz magic plus byte-identical sha256 round-trip.
bsdcat reads raw xz file Port / liblzma / usage-libarchive-tools-xz-batch13-raw-xz-bsdcat Passed
Compresses a deterministic payload with xz(1) into a standalone .xz (no tar) and confirms bsdcat decodes it byte-identically through liblzma.
bsdtar -tv lists xz tar perms Port / liblzma / usage-libarchive-tools-xz-batch13-tv-verbose-perms Passed
Builds a tar.xz with two files of distinct mode bits and confirms bsdtar -tv prints perm strings that match the source modes.
bsdtar ustar piped through xz Port / liblzma / usage-libarchive-tools-xz-batch13-ustar-pipe-xz Passed
Builds a uncompressed ustar tar via bsdtar -c --format=ustar then pipes through xz(1) into a tar.xz; bsdtar then extracts and verifies sha256.
bsdtar xz -P preserves absolute paths Port / liblzma / usage-libarchive-tools-xz-batch14-absolute-paths-keep Passed
Archives an absolute path into tar.xz with -P; bsdtar must keep the leading slash in the listing and the listed entry must equal the absolute path.
bsdtar xz --files-from stdin pipe Port / liblzma / usage-libarchive-tools-xz-batch14-files-from-pipe Passed
Pipes a newline-delimited file list into bsdtar via --files-from=- and verifies the resulting tar.xz contains exactly the listed members.
bsdtar xz hardlink count after extract Port / liblzma / usage-libarchive-tools-xz-batch14-hardlink-count Passed
Builds a tar.xz containing two hardlinked entries, extracts via liblzma, verifies file count is 2 and that both paths share the same inode.
xz -k -d decompress then bsdtar reads Port / liblzma / usage-libarchive-tools-xz-batch14-keep-decompress-readback Passed
Builds tar.xz, runs xz -k -d to decompress while keeping the .xz copy, then has bsdtar read the resulting plain tar; verifies both paths produce byte-identical extracts.
bsdtar xz long filename round-trip Port / liblzma / usage-libarchive-tools-xz-batch14-long-filename Passed
Archives a file whose name is longer than 200 characters into tar.xz, then extracts and verifies the long name and content survive a liblzma round-trip.
bsdtar xz extract --no-fflags Port / liblzma / usage-libarchive-tools-xz-batch14-no-fflags-extract Passed
Builds a tar.xz, extracts with --no-fflags (file flags suppressed) and confirms content integrity through liblzma.
bsdtar xz compression-level 0 Port / liblzma / usage-libarchive-tools-xz-batch14-options-level0 Passed
Builds a tar.xz with --options xz:compression-level=0, verifies the .xz magic, and round-trips content byte-for-byte through liblzma.
bsdtar xz compression-level 4 Port / liblzma / usage-libarchive-tools-xz-batch14-options-preset4 Passed
Builds a tar.xz using --options xz:compression-level=4 (the libarchive-supported option name) and confirms .xz magic plus sha256 round-trip equality.
bsdtar xz compression-level 6 round-trip Port / liblzma / usage-libarchive-tools-xz-batch14-options-preset6e Passed
Builds a tar.xz using --options xz:compression-level=6 (the libarchive-supported xz option spelling) and verifies .xz magic and sha256 round-trip equality.
bsdtar xz utf-8 filename preserved Port / liblzma / usage-libarchive-tools-xz-batch14-utf8-filename Passed
Archives a file whose name contains non-ASCII UTF-8 characters into tar.xz and verifies the name and contents are preserved through a liblzma round-trip.
bsdtar xz default refuses absolute-path escape on extract Port / liblzma / usage-libarchive-tools-xz-batch15-absolute-default-extract Passed
Hand-builds a tar with a -P absolute-path entry, compresses it to xz, then extracts without -P; bsdtar must default to stripping the leading slash so the file lands under the destination directory and never escapes to the real absolute path.
bsdtar reads tar.xz built by GNU tar -cJf Port / liblzma / usage-libarchive-tools-xz-batch15-gnu-tar-cjf-interop Passed
GNU tar invokes its xz auto-compressor via -J to build the archive directly (no pipe); bsdtar then extracts via liblzma and round-trip checksums must match.
bsdtar xz preserves mtime exactly across two distinct files Port / liblzma / usage-libarchive-tools-xz-batch15-mtime-exact-roundtrip Passed
Stamps two files with two distinct deterministic mtimes, round-trips them through tar.xz, and verifies bsdtar -p restores both mtimes byte-identically.
bsdtar xz compression-level=2 round-trip Port / liblzma / usage-libarchive-tools-xz-batch15-options-level2-roundtrip Passed
Compresses a payload with --options xz:compression-level=2, confirms the output is a well-formed xz stream smaller than the source, and round-trips byte-identical content back through bsdtar.
bsdtar xz with pax extended headers Port / liblzma / usage-libarchive-tools-xz-batch15-pax-format-headers Passed
Forces --format=pax on a tar.xz, confirms the listing carries pax extended headers, and verifies content extracts back identically through liblzma.
bsdtar xz selective extract by member name Port / liblzma / usage-libarchive-tools-xz-batch15-selective-extract-by-name Passed
Builds a tar.xz with three members and extracts only one by passing the member name as a positional argument; the other two must be skipped while liblzma still streams the whole archive.
bsdtar xz to /dev/stdout with sha verification Port / liblzma / usage-libarchive-tools-xz-batch15-stdout-archive-sha-verify Passed
Streams a tar.xz to /dev/stdout (redirected to a file), confirms .xz magic on the captured stream, then extracts it and verifies the sha256 of every input survives the round-trip.
bsdtar xz --strip-components=2 across multi-leaf tree Port / liblzma / usage-libarchive-tools-xz-batch15-strip-components-multi-leaf Passed
Builds a tar.xz with several leaves under a common two-level prefix and verifies --strip-components=2 collapses every entry while preserving content.
bsdtar xz -s substitution renames during extract Port / liblzma / usage-libarchive-tools-xz-batch15-substitution-extract-rename Passed
Builds a tar.xz with original names then extracts through bsdtar -s 's|old|new|' so files land under the substituted names while contents stay byte-identical.
bsdtar -tvJf prints perm strings on tar.xz Port / liblzma / usage-libarchive-tools-xz-batch15-tvjf-perm-strings Passed
Builds a tar.xz with three files of distinct mode bits and verifies bsdtar -tvJf surfaces matching perm strings for each entry, exercising the explicit -J flag on the verbose listing path.
bsdtar reads concatenated xz tarballs Port / liblzma / usage-libarchive-tools-xz-batch16-concat-tarballs Passed
Concatenates two independently xz-compressed tarballs and verifies bsdtar reads members from both via liblzma multi-stream support.
xz -F lzma legacy then bsdtar reads Port / liblzma / usage-libarchive-tools-xz-batch16-format-lzma-legacy Passed
Creates a tar stream, compresses with xz -F lzma (legacy .lzma format), and confirms bsdtar can list and extract through liblzma.
xz --keep --force overwrites target Port / liblzma / usage-libarchive-tools-xz-batch16-keep-force-overwrite Passed
Verifies xz --keep --force overwrites an existing .xz target and the resulting archive still round-trips through bsdcat.
bsdtar -tf 100 entries Port / liblzma / usage-libarchive-tools-xz-batch16-list-100-entries Passed
Builds an xz tarball with exactly 100 file entries and confirms bsdtar -tf lists exactly 100 names.
bsdtar xz mixed permission tree Port / liblzma / usage-libarchive-tools-xz-batch16-mixed-perm-tree Passed
Round-trips a directory tree with mixed 755/644/600 permissions through an xz-compressed tar archive and verifies modes are preserved.
bsdtar --options xz:compression-level=3 Port / liblzma / usage-libarchive-tools-xz-batch16-options-level3 Passed
Creates an xz tarball using bsdtar --options 'xz:compression-level=3' and verifies the archive round-trips with sha256 equality.
xz -t fails on truncated stream Port / liblzma / usage-libarchive-tools-xz-batch16-test-truncated Passed
Truncates a valid .xz file mid-stream and confirms xz -t (test mode) rejects it with non-zero status, while a complete copy still verifies clean.
xz --threads=1 forced single-thread Port / liblzma / usage-libarchive-tools-xz-batch16-threads-single Passed
Compresses a payload with xz --threads=1 to force single-thread encoding, then round-trips it through bsdcat.
bsdtar -tvJf shows user/group Port / liblzma / usage-libarchive-tools-xz-batch16-tvjf-user-group Passed
Creates an xz tarball as the current user, then runs bsdtar -tvJf and confirms the listing includes the expected user/group fields.
bsdtar ustar piped through xz Port / liblzma / usage-libarchive-tools-xz-batch16-ustar-pipe-xz Passed
Pipes a bsdtar --format=ustar stream through xz, then re-reads it with bsdtar to verify member round-trip.
xz -c piped into bsdcat Port / liblzma / usage-libarchive-tools-xz-batch16-xz-c-pipe-bsdcat Passed
Pipes xz -c output directly into bsdcat through a FIFO of bytes and verifies sha256 round-trip equality.
bsdtar xz compression-level 4 Port / liblzma / usage-libarchive-tools-xz-batch17-options-level4 Passed
Builds a tar.xz archive with --options xz:compression-level=4, validates the .xz magic, and round-trips the payload to confirm liblzma decodes the mid-low level losslessly.
bsdtar --strip-components on tar.xz Port / liblzma / usage-libarchive-tools-xz-batch17-strip-components Passed
Extracts a tar.xz archive with --strip-components=1 and verifies the leading directory is removed while inner files land at the expected destination.
bsdtar -tf preserves creation order Port / liblzma / usage-libarchive-tools-xz-batch17-tf-creation-order Passed
Adds files to a tar.xz archive in a specific argv order and asserts bsdtar -tf lists them in that exact order, confirming liblzma decoding does not reorder entries.
bsdtar --xz over file with UTF-8 BOM Port / liblzma / usage-libarchive-tools-xz-batch17-utf8-bom-payload Passed
Archives a file whose contents start with a UTF-8 BOM through tar.xz with bsdtar --xz and confirms the BOM bytes survive round-trip via liblzma.
bsdtar --format=v7 piped through xz Port / liblzma / usage-libarchive-tools-xz-batch17-v7-format-pipe-xz Passed
Creates a v7 (legacy pre-POSIX) tar with bsdtar --format=v7, pipes through xz, and confirms bsdtar reads it back through liblzma with byte-identical contents.
xz --check=none disables checksum Port / liblzma / usage-libarchive-tools-xz-batch17-xz-check-none Passed
Compresses a payload with xz --check=none, confirms xz --list reports a None integrity check, and round-trips through bsdtar to ensure liblzma accepts a checksum-free stream.
xz --check=sha256 integrity check Port / liblzma / usage-libarchive-tools-xz-batch17-xz-check-sha256 Passed
Compresses a payload with xz --check=sha256, confirms xz --list reports the SHA-256 integrity check, and verifies bsdtar can decompress and round-trip the contents.
xz -d preserves source mtime Port / liblzma / usage-libarchive-tools-xz-batch17-xz-d-preserve-mtime Passed
Compresses a fixture with xz, captures the source mtime, decompresses with xz -d, and confirms the decompressed file's mtime matches the original (xz preserves timestamps by default).
xz -F lzma decompress legacy stream Port / liblzma / usage-libarchive-tools-xz-batch17-xz-format-lzma-decompress Passed
Compresses a tar with xz -F lzma, then decompresses with xz -F lzma -d -c on the legacy .lzma stream and confirms bsdtar reads members through liblzma.
xz -z explicit compress mode Port / liblzma / usage-libarchive-tools-xz-batch17-xz-z-explicit-compress Passed
Drives the xz CLI in explicit compress mode (-z) on a fixture, validates the .xz magic of the output, and confirms bsdtar can read the resulting stream through liblzma.
bsdcpio newc format piped through xz Port / liblzma / usage-libarchive-tools-xz-batch18-bsdcpio-newc-xz Passed
Pipes a file list into bsdcpio -o -H newc and through xz -z to produce a newc.cpio.xz, then validates xz magic, decompresses with xz -d, and re-reads via bsdcpio -i -t to confirm member names survive round-trip.
bsdcpio odc format piped through xz Port / liblzma / usage-libarchive-tools-xz-batch18-bsdcpio-odc-xz Passed
Streams a file list into bsdcpio -o -H odc piped to xz -z, asserts the resulting blob carries .xz magic, decompresses to a portable POSIX cpio (070707 header), and lists members back through bsdcpio.
bsdcpio -tv verbose listing of xz cpio Port / liblzma / usage-libarchive-tools-xz-batch18-bsdcpio-tv-verbose-xz Passed
Builds a newc cpio compressed with xz, then runs bsdcpio -i -tv on the decompressed stream and asserts verbose mode prints permission columns alongside both member names.
bsdtar xz roundtrip preserves hardlink pair Port / liblzma / usage-libarchive-tools-xz-batch18-hardlink-roundtrip Passed
Stores a hardlinked file pair into a tar.xz, extracts elsewhere, and asserts the two extracted files share the same inode number so the hardlink relationship survives compression through liblzma.
bsdtar -n no-recursion with xz compression Port / liblzma / usage-libarchive-tools-xz-batch18-no-recursion-flag Passed
Builds an xz-compressed tar with bsdtar -n so a directory argument is recorded without descent, then asserts the listing contains the directory entry alone and not its children.
bsdtar --options xz:compression-level=7 Port / liblzma / usage-libarchive-tools-xz-batch18-options-compression-level7 Passed
Creates a tar.xz with bsdtar --options xz:compression-level=7, validates the .xz magic, and round-trips a small payload to confirm the explicit per-filter level reaches liblzma.
bsdtar xz roundtrip on a sparse file Port / liblzma / usage-libarchive-tools-xz-batch18-sparse-file-roundtrip Passed
Creates a sparse file with a hole between two byte regions, stores it in a tar.xz, extracts elsewhere, and confirms the apparent size and SHA-256 match while the file body is preserved through liblzma.
bsdtar -s substitution adds prefix in xz tar Port / liblzma / usage-libarchive-tools-xz-batch18-transform-prefix Passed
Builds a tar.xz where bsdtar -s ',^,renamed/,' rewrites entry names with a prefix, then verifies the listing shows the transformed paths and extraction restores byte-identical content under the new prefix.
bsdtar --uname/--gname override in xz tar Port / liblzma / usage-libarchive-tools-xz-batch18-uname-gname-override Passed
Creates a tar.xz with bsdtar --uname=valuser --gname=valgrp and confirms verbose listing of the xz-compressed archive shows the override owner labels for every entry.
xz --list --robot machine-readable output Port / liblzma / usage-libarchive-tools-xz-batch18-xz-list-robot Passed
Compresses a bsdtar-produced tar with xz, runs xz --list --robot on it, and validates the machine-readable output begins with a totals/file/stream record set covering exactly one stream and one block.
bsdcat reads legacy .lzma file Port / liblzma / usage-libarchive-tools-xz-batch19-bsdcat-lzma-legacy Passed
Compresses a deterministic payload with xz -F lzma to produce a legacy .lzma stream and verifies bsdcat decodes it byte-identically through liblzma's legacy LZMA reader.
bsdtar -caf .tar.lzma legacy filter Port / liblzma / usage-libarchive-tools-xz-batch19-bsdtar-caf-tar-lzma Passed
Creates a .tar.lzma archive via bsdtar -caf auto-filter selection, validates the legacy LZMA1 magic, and round-trips the contents through liblzma's legacy reader.
bsdtar -cJf - piped to bsdcat then bsdtar -t Port / liblzma / usage-libarchive-tools-xz-batch19-bsdtar-pipe-bsdcat Passed
Streams a tar.xz from bsdtar -cJf - into bsdcat to produce the inner uncompressed tar bytes, then lists those bytes with bsdtar -tf - and confirms member names round-trip through liblzma's decoder.
bsdtar -kxJf preserves existing target file Port / liblzma / usage-libarchive-tools-xz-batch19-keep-old-files-extract Passed
Pre-populates the extract directory with a sentinel file, then extracts a .tar.xz that contains a same-named entry with bsdtar -k and confirms the existing file is preserved while other entries are decompressed via liblzma.
bsdtar -tvJf reads multi-stream xz Port / liblzma / usage-libarchive-tools-xz-batch19-multistream-tv-listing Passed
Concatenates two independent .xz streams of a single tarball into a multi-stream xz file and confirms bsdtar -tvJf prints all member rows by walking each stream through liblzma.
bsdtar --options xz:threads=2 round-trip Port / liblzma / usage-libarchive-tools-xz-batch19-options-threads-2 Passed
Encodes a tar.xz with bsdtar --options xz:threads=2 to request liblzma's multi-threaded encoder and verifies the result has a valid xz header and round-trips byte-identically.
bsdtar xz smaller than gzip on repetitive input Port / liblzma / usage-libarchive-tools-xz-batch19-size-delta-xz-vs-gz Passed
Builds a deterministic repetitive payload, compresses it both as .tar.xz and .tar.gz with bsdtar, and asserts the xz output is strictly smaller and round-trips byte-identically through liblzma.
bsdtar -tvJf shows directory and file rows Port / liblzma / usage-libarchive-tools-xz-batch19-tv-directory-entry Passed
Builds a tar.xz containing a directory plus enclosed files and confirms bsdtar -tvJf prints both a leading 'd' row for the directory and '-' rows for the files, exercising the verbose listing path on top of liblzma decompression.
bsdtar --use-compress-program xz round-trip Port / liblzma / usage-libarchive-tools-xz-batch19-use-compress-program-xz Passed
Creates a tar archive piped through xz via bsdtar --use-compress-program=xz and confirms bsdtar reads it back natively through liblzma's auto-detection.
bsdcat decodes concatenated raw .xz streams Port / liblzma / usage-libarchive-tools-xz-batch19-xz-cat-multistream-bsdcat Passed
Compresses two distinct payloads to separate .xz streams, concatenates them into one multi-stream .xz file, and confirms bsdcat emits the two original payloads back-to-back via liblzma's multi-stream support.
libarchive-tools xz checksum compare Port / liblzma / usage-libarchive-tools-xz-checksum-compare Passed
libarchive-tools xz copy mode Port / liblzma / usage-libarchive-tools-xz-copy-mode Passed
libarchive-tools xz directory only Port / liblzma / usage-libarchive-tools-xz-directory-only Passed
libarchive-tools xz dotdir entry Port / liblzma / usage-libarchive-tools-xz-dotdir-entry Passed
Archives a hidden directory tree with xz compression and verifies hidden nested files extract correctly.
libarchive-tools xz dotdir subtree Port / liblzma / usage-libarchive-tools-xz-dotdir-subtree Passed
Archives a hidden subtree under xz compression and verifies the nested member path appears in the archive listing.
libarchive-tools xz dotfile stdout Port / liblzma / usage-libarchive-tools-xz-dotfile-stdout Passed
Streams a hidden file member from an xz-compressed tar archive with bsdtar -xOf and verifies the extracted payload.
libarchive tools xz dotfile stream extract Port / liblzma / usage-libarchive-tools-xz-dotfile-stream-extract Passed
libarchive-tools xz dotfile Port / liblzma / usage-libarchive-tools-xz-dotfile Passed
libarchive-tools xz double strip components Port / liblzma / usage-libarchive-tools-xz-double-strip-components Passed
Extracts a deeply nested member from an xz-compressed tar with multiple stripped path components.
libarchive-tools xz empty dir Port / liblzma / usage-libarchive-tools-xz-empty-dir Passed
libarchive-tools xz empty file size Port / liblzma / usage-libarchive-tools-xz-empty-file-size Passed
Lists an xz-compressed tar archive verbosely and verifies that an empty member is reported with zero size.
libarchive-tools xz empty file Port / liblzma / usage-libarchive-tools-xz-empty-file Passed
libarchive tools xz empty subdirectory extract Port / liblzma / usage-libarchive-tools-xz-empty-subdir-extract Passed
Exercises libarchive tools xz empty subdirectory extract through a dependent-client usage scenario.
libarchive-tools xz exclude pattern Port / liblzma / usage-libarchive-tools-xz-exclude-pattern Passed
libarchive-tools xz extract dotfile Port / liblzma / usage-libarchive-tools-xz-extract-dotfile Passed
Extracts only a hidden file from an xz-compressed archive and verifies nonselected members are left out.
libarchive-tools xz extract specific member Port / liblzma / usage-libarchive-tools-xz-extract-specific-member Passed
Extracts a single named member from an xz-compressed tar archive and verifies the restored file payload.
libarchive-tools xz extract to stdout Port / liblzma / usage-libarchive-tools-xz-extract-stdout Passed
libarchive-tools xz extract two members Port / liblzma / usage-libarchive-tools-xz-extract-two-members Passed
Extracts two selected members from an xz-compressed tar and verifies only the requested files are restored.
libarchive-tools xz filelist dotfile Port / liblzma / usage-libarchive-tools-xz-filelist-dotfile Passed
Builds an xz-compressed tar from a file list containing a dotfile and verifies both listed members are present.
libarchive-tools xz file list input Port / liblzma / usage-libarchive-tools-xz-filelist-input Passed
libarchive tools xz file list spaced name Port / liblzma / usage-libarchive-tools-xz-filelist-space-name Passed
libarchive-tools xz file list stdin Port / liblzma / usage-libarchive-tools-xz-filelist-stdin Passed
Feeds a bsdtar file list over stdin while creating an xz-compressed archive and verifies the selected members.
libarchive-tools xz filter auto Port / liblzma / usage-libarchive-tools-xz-filter-auto Passed
libarchive tools xz hardlink extract compare Port / liblzma / usage-libarchive-tools-xz-hardlink-extract-compare Passed
Exercises libarchive tools xz hardlink extract compare through a dependent-client usage scenario.
libarchive-tools xz hardlink listing Port / liblzma / usage-libarchive-tools-xz-hardlink-listing Passed
Lists an xz-compressed archive containing a hard link and verifies the linked member appears in verbose output.
libarchive-tools xz hardlink pair Port / liblzma / usage-libarchive-tools-xz-hardlink-pair Passed
libarchive-tools xz hidden and visible list Port / liblzma / usage-libarchive-tools-xz-hidden-and-visible-list Passed
Archives a hidden file and a visible file together in an xz-compressed tar and verifies both entries appear in the listing.
libarchive tools xz hidden visible list Port / liblzma / usage-libarchive-tools-xz-hidden-visible-list Passed
libarchive-tools xz large file Port / liblzma / usage-libarchive-tools-xz-large-file Passed
libarchive-tools xz leading dash filename Port / liblzma / usage-libarchive-tools-xz-leading-dash Passed
libarchive-tools xz member count three plus Port / liblzma / usage-libarchive-tools-xz-member-count-three-plus Passed
Lists an xz-compressed tar archive and verifies that the archive contains multiple members beyond a minimal threshold.
libarchive-tools xz member order Port / liblzma / usage-libarchive-tools-xz-member-order Passed
Creates an xz-compressed archive with a specific member order and verifies bsdtar list mode preserves that order.
libarchive-tools xz metadata list Port / liblzma / usage-libarchive-tools-xz-metadata-list Passed
libarchive-tools xz multiple empty files Port / liblzma / usage-libarchive-tools-xz-multi-empty-files Passed
Archives multiple empty files under xz compression and verifies both extracted files remain zero bytes.
libarchive-tools xz multi-file Port / liblzma / usage-libarchive-tools-xz-multi-file Passed
libarchive-tools xz nested extract Port / liblzma / usage-libarchive-tools-xz-nested-extract Passed
libarchive-tools xz nested spaced file Port / liblzma / usage-libarchive-tools-xz-nested-space-file Passed
Archives and extracts a nested filename containing spaces in an xz-compressed tar and verifies the restored payload.
libarchive-tools xz overwrite existing Port / liblzma / usage-libarchive-tools-xz-overwrite-existing Passed
Extracts an xz-compressed tar archive over an existing file and verifies the archived content wins.
libarchive-tools xz preserve permissions Port / liblzma / usage-libarchive-tools-xz-preserve-permissions Passed
xz -9e extreme preset round-trip Port / liblzma / usage-libarchive-tools-xz-r10-9e-extreme-roundtrip Passed
Encodes a tarball with xz -9e (extreme preset 9), reads it back through bsdtar, and verifies byte-equal payload along with the .xz magic and a non-empty xz --list totals row.
bsdtar -xOf single member from xz archive Port / liblzma / usage-libarchive-tools-xz-r10-bsdtar-extract-stdout Passed
Builds a multi-member tar.xz with bsdtar, then extracts a single named member through the liblzma decoder via bsdtar -xOf and asserts the captured stdout matches that member byte-for-byte.
xz --check=crc32 integrity check Port / liblzma / usage-libarchive-tools-xz-r10-check-crc32 Passed
Compresses a payload with xz --check=crc32 and confirms xz --robot --list reports CRC32 in the integrity-check column, then round-trips via bsdtar to ensure liblzma decodes a CRC32-checked stream.
xz -d streams stdin to stdout Port / liblzma / usage-libarchive-tools-xz-r10-decompress-stdin-stdout Passed
Pipes a .xz stream into xz -d on stdin and asserts the decoded stdout exactly matches the original payload, exercising liblzma's stream decoder.
bsdtar empty tarball xz round-trip Port / liblzma / usage-libarchive-tools-xz-r10-empty-tar-xz Passed
Builds an empty tar (no members) via bsdtar -T /dev/null, compresses it with xz, and confirms .xz magic plus that bsdtar -tvJf prints zero entries through the liblzma stream.
xz --force overwrites existing target Port / liblzma / usage-libarchive-tools-xz-r10-force-overwrite Passed
Pre-creates a stale .xz file then re-encodes the source with xz --force, confirming the target is overwritten and decoding produces the new payload.
xz --keep --decompress preserves .xz file Port / liblzma / usage-libarchive-tools-xz-r10-keep-decompress-source Passed
Decompresses a .xz with xz --keep --decompress and asserts both the original .xz and the new plaintext file remain on disk and the decompressed bytes match the source.
xz --suffix custom output extension Port / liblzma / usage-libarchive-tools-xz-r10-suffix-custom Passed
Encodes a payload with xz --suffix=.xzfoo to override the default .xz extension, then decodes it back via xz --suffix=.xzfoo and verifies the bytes match.
xz -t verifies xz file integrity Port / liblzma / usage-libarchive-tools-xz-r10-test-integrity-flag Passed
Encodes a tarball with xz, runs xz -t to verify the integrity check passes for the well-formed stream, then truncates the file and asserts xz -t fails on the corrupted stream.
xz -T0 auto-threaded encode round-trip Port / liblzma / usage-libarchive-tools-xz-r10-threads-zero-auto Passed
Encodes a tarball with xz -T0 (auto thread count) and round-trips it through bsdtar, asserting byte-identical content and a non-trivial xz --robot --list summary row.
bsdcpio --format=newc with xz compression round-trips a regular file Port / liblzma / usage-libarchive-tools-xz-r11-bsdcpio-newc-xz-roundtrip Passed
Pipes a single regular file through bsdcpio -o --format=newc | xz -c, then decodes the .xz stream and pipes it back through bsdcpio -i --no-absolute-filenames, verifying the extracted byte-equal payload and that bsdcpio -t lists the original entry name.
bsdtar reads only the first .xz stream from a concatenated tarball Port / liblzma / usage-libarchive-tools-xz-r11-bsdtar-only-first-stream Passed
Concatenates two independently xz-compressed tarballs into one file and verifies bsdtar -tf lists only the first archive's entries while "xz -dc | bsdtar -tf -" still lists only the first (matching documented bsdtar single-stream behavior).
bsdtar --options xz:compression-level=3 produces a valid xz tarball Port / liblzma / usage-libarchive-tools-xz-r11-bsdtar-options-compression-level Passed
Creates a tar.xz archive with bsdtar's explicit --options xz:compression-level=3 modifier and verifies xz --robot --list reports one stream/block while bsdtar -tf lists the original entry names.
xz --check=none records None integrity in the .xz stream Port / liblzma / usage-libarchive-tools-xz-r11-check-none-integrity Passed
Compresses a payload with --check=none and verifies "xz --robot --list" reports the integrity-check column as "None" while the round-trip still decompresses to byte-equal output.
xz --check=sha256 records SHA-256 integrity in the .xz stream Port / liblzma / usage-libarchive-tools-xz-r11-check-sha256-integrity Passed
Compresses a payload with --check=sha256 and verifies "xz --robot --list" reports the integrity-check column as "SHA-256" while the round-trip decompresses to byte-equal output.
xz -F lzma legacy format encodes and decodes raw LZMA streams Port / liblzma / usage-libarchive-tools-xz-r11-format-lzma-legacy-roundtrip Passed
Compresses a payload with -F lzma to produce a legacy LZMA stream (no .xz framing), confirms the file magic byte 0x5d, and round-trips back to byte-equal content via xz -F lzma -dc.
xz -F lzma --keep on a .lzma input preserves the source while emitting plain output Port / liblzma / usage-libarchive-tools-xz-r11-lzma-keep-source Passed
Round-trips a payload through legacy LZMA: encodes with -F lzma to .lzma, then decodes with --keep --decompress and verifies the original .lzma file remains and the decoded payload matches the source bytes.
xz --lzma2=preset=3 explicit filter syntax round-trips payload Port / liblzma / usage-libarchive-tools-xz-r11-lzma2-preset-modifier Passed
Builds a stream using the explicit "--lzma2=preset=3" filter modifier and verifies xz -dc decodes it back to byte-equal content while xz --robot --list reports a single stream with one block.
xz -d concatenates multiple .xz streams in one decode Port / liblzma / usage-libarchive-tools-xz-r11-multi-stream-decompress Passed
Concatenates two independently compressed .xz streams and verifies "xz -dc" emits both payloads in order while "xz --robot --list" reports a totals row with two streams and two blocks.
xz --robot --version emits both XZ_VERSION and LIBLZMA_VERSION fields Port / liblzma / usage-libarchive-tools-xz-r11-robot-version-shape Passed
Runs "xz --robot --version" and checks both XZ_VERSION=NNNNNNNN and LIBLZMA_VERSION=NNNNNNNN are emitted as eight-digit decimal-encoded version numbers, exercising the machine-readable version contract.
bsdtar --lzma create and extract roundtrips a tarball Port / liblzma / usage-libarchive-tools-xz-r12-bsdtar-lzma-format-roundtrip Passed
Builds a tar.lzma archive with "bsdtar --lzma -cf" against a directory of two files, verifies the on-disk magic byte 0x5d, and round-trips through "bsdtar -xf" auto-detection to recover both source files byte-for-byte.
bsdtar -tJf lists members of a tar.xz archive Port / liblzma / usage-libarchive-tools-xz-r12-bsdtar-tjf-list Passed
Creates a tar.xz with bsdtar -cJf containing two distinct entries and runs "bsdtar -tJf" to list them, asserting the listing contains both source filenames in lexicographic order after sort.
xz default --check is CRC64 on noble Port / liblzma / usage-libarchive-tools-xz-r12-check-crc64-default Passed
Compresses a payload with no explicit --check flag and verifies "xz --robot --list" reports CRC64 as the default integrity-check column, then round-trips back to byte-equal output via xz -dc.
xz -k preserves the source file alongside the .xz output Port / liblzma / usage-libarchive-tools-xz-r12-keep-source-after-compress Passed
Runs "xz -k" on a regular file and verifies both the original file and the new .xz sibling are present afterward, with the .xz file decompressing back to the source's bytes.
xz --list --verbose reports compressed and uncompressed byte sizes Port / liblzma / usage-libarchive-tools-xz-r12-list-verbose-shows-bytes Passed
Compresses a deterministic payload and runs "xz --list --verbose" on the output, asserting the human-readable listing contains the source filename and the column headers "Streams" and "Blocks" used by the verbose listing.
lzcat decodes a legacy .lzma stream Port / liblzma / usage-libarchive-tools-xz-r12-lzcat-decodes-legacy Passed
Encodes a payload with "xz -F lzma -c" to produce a legacy LZMA stream and verifies "lzcat" decodes that file to byte-equal stdout, exercising the lzma alias interface.
xz -d reads xz stream from stdin redirection Port / liblzma / usage-libarchive-tools-xz-r12-stdin-stream-decompress Passed
Compresses a payload to a .xz file, then runs "xz -d -c" with stdin redirected from the .xz file (no positional argument) and asserts the stdout matches the source bytes via sha256.
xz -t integrity check exits zero on a valid stream Port / liblzma / usage-libarchive-tools-xz-r12-test-flag-passes-good Passed
Compresses a payload, runs "xz -t" on the .xz file, and asserts exit zero with no stdout output (integrity check passes for unmodified stream).
unxz round-trip restores original payload and removes the .xz file Port / liblzma / usage-libarchive-tools-xz-r12-unxz-roundtrip Passed
Compresses a payload via xz, then runs "unxz" on the .xz file (no --keep) and verifies the .xz file is removed, the decompressed file is restored at the original path, and its bytes match the source.
xzcat with two .xz file arguments concatenates decoded output Port / liblzma / usage-libarchive-tools-xz-r12-xzcat-multi-file-concat Passed
Compresses two distinct payloads to separate .xz files and runs "xzcat a.xz b.xz", asserting the stdout output is the in-order concatenation of both source payloads.
bsdtar -cJf xz tarball roundtrip with three entries Port / liblzma / usage-libarchive-tools-xz-r13-bsdtar-capj-create-roundtrip Passed
Builds a tar.xz archive with "bsdtar -cJf" against a directory of three files, asserts the .xz magic, lists members via "bsdtar -tf" matching the input set, and extracts to a fresh tree confirming each file's sha256 matches its source.
xz --check=none and --check=sha256 both roundtrip the same payload Port / liblzma / usage-libarchive-tools-xz-r13-check-none-then-sha256 Passed
Compresses one payload twice, once with --check=none and once with --check=sha256, asserts both archives have the .xz magic bytes, both pass "xz -t" integrity, and both decode byte-equal to the source.
xz -e extreme flag roundtrips a compressible payload Port / liblzma / usage-libarchive-tools-xz-r13-extreme-flag-roundtrip Passed
Compresses a 64KB highly repetitive payload with "xz -e -c" (extreme flag), verifies the .xz magic, and decompresses back via "xz -d -c" asserting source sha256 matches the recovered output.
xz --files= reads filenames from a newline-delimited list file Port / liblzma / usage-libarchive-tools-xz-r13-files-arg-list Passed
Builds a list file containing two newline-separated source paths and runs "xz --files=list.txt --keep" so xz reads the targets from the file rather than argv. Asserts both .xz outputs are produced, both decode roundtrip, and skips an unlisted third file in the same directory.
xz --files0= reads NUL-separated filenames from a list file Port / liblzma / usage-libarchive-tools-xz-r13-files0-nul-list Passed
Constructs a NUL-delimited list of two source paths and runs "xz --files0=list" with --keep, asserting both .xz outputs are produced and both decode back to the original sha256, exercising the NUL-separated variant of --files= alongside the newline-separated case.
xz -F lzma legacy stream encodes and decodes via xz round-trip Port / liblzma / usage-libarchive-tools-xz-r13-format-lzma-roundtrip Passed
Encodes a payload with "xz -F lzma -c" to produce a legacy .lzma stream, verifies the leading 0x5d byte marker, then decodes it back via "xz -F lzma -d -c" and asserts the recovered bytes match the source via sha256.
xz --keep --force overwrites an existing .xz target Port / liblzma / usage-libarchive-tools-xz-r13-keep-force-overwrite Passed
Compresses a file once with --keep, then re-runs xz with --keep --force in place, verifies the second run succeeds (overwriting the existing .xz), the source file is preserved, and the new .xz decodes byte-equal to the source.
xz preset levels -1 and -9 each roundtrip identically and -9 is no larger Port / liblzma / usage-libarchive-tools-xz-r13-preset-levels-1-and-9 Passed
Compresses the same 256KB compressible payload at xz -1 and xz -9 separately, asserts both stream sha256 round-trip back to source, and that the level-9 archive is no larger than the level-1 archive on this compressible content.
xz --suffix=.foo writes and decodes with the custom suffix Port / liblzma / usage-libarchive-tools-xz-r13-suffix-foo-roundtrip Passed
Compresses a payload using xz --suffix=.foo --keep, verifies the output filename ends with .foo (not .xz), checks the .xz container magic bytes, and decompresses with the same --suffix to recover the source bytes via sha256.
xz --to-stdout long form writes compressed output to stdout Port / liblzma / usage-libarchive-tools-xz-r13-to-stdout-flag Passed
Runs "xz --to-stdout" with a positional input and asserts the input file remains untouched, the captured stdout starts with the .xz magic bytes, and decoding it back via xz -d -c yields the source content via sha256.
bsdtar -tJf lists three entries of a tar.xz including a nested path Port / liblzma / usage-libarchive-tools-xz-r14-bsdtar-tjf-list-three-entries Passed
Builds a tar.xz containing two top-level files plus a nested subdir/file via "bsdtar -cJf", runs "bsdtar -tJf" on it, sorts the listing, and asserts exactly three entries are reported in lexicographic order including the "sub/" prefixed path. Distinct from the r12 two-entry tjf list case.
bsdtar --xz --options compression-level=9 produces a valid tar.xz Port / liblzma / usage-libarchive-tools-xz-r14-bsdtar-xz-options-level9 Passed
Builds a tar.xz via "bsdtar --xz --options compression-level=9", asserts the .xz magic bytes are present, lists the archive via "bsdtar -tJf" matching the input filenames, and extracts to a fresh tree confirming each file's sha256 matches the source. Exercises the libarchive --options compression-level option.
xz --check=sha256 surfaces SHA-256 in the --robot --list totals column Port / liblzma / usage-libarchive-tools-xz-r14-check-sha256-list-column Passed
Compresses a payload with "xz --check=sha256 -c" and runs "xz --robot --list" on the result, asserting the totals row's check column equals SHA-256, complementing the r12 default-CRC64 case by pinning the explicit-sha256 path.
xz -d short flag and --decompress long flag both round-trip the same archive Port / liblzma / usage-libarchive-tools-xz-r14-decompress-short-flag-roundtrip Passed
Compresses a payload to .xz, decompresses one copy with "xz -d -c" and another with "xz --decompress -c", then asserts both decoded outputs match the source sha256 byte-for-byte, pinning that the short and long forms are equivalent.
lzcat decodes a .lzma legacy stream produced by lzma -c Port / liblzma / usage-libarchive-tools-xz-r14-lzcat-from-lzma-file Passed
Compresses a payload with "lzma -c" to a .lzma legacy stream, then runs "lzcat" on the resulting file and asserts stdout matches the source sha256 — exercising lzcat against a .lzma file (distinct from r12's lzcat-decodes-legacy which uses an xz-format-lzma archive).
lzma --keep then --decompress sequence preserves source and recovers payload Port / liblzma / usage-libarchive-tools-xz-r14-lzma-keep-then-decompress Passed
Compresses a payload via "lzma --keep" (legacy lzma format), asserts the .lzma file appears alongside an untouched source, then decompresses with "lzma --decompress -c" and verifies the recovered bytes match the source sha256.
xz --robot --info reports machine-readable file/stream/totals rows Port / liblzma / usage-libarchive-tools-xz-r14-robot-info-fields Passed
Compresses a payload, runs "xz --robot -vv --list" (machine-readable verbose info mode) and asserts the output contains the documented robot-mode rows: name, file, stream, block, summary, and totals.
unxz --keep preserves the .xz input and writes the decoded sibling Port / liblzma / usage-libarchive-tools-xz-r14-unxz-explicit-keep Passed
Compresses a payload to .xz, then runs "unxz --keep" against it and asserts both the .xz file and the decoded sibling exist, and the decoded contents match the original sha256 — confirming unxz honours --keep distinct from xz -dk and the existing unxz-roundtrip case.
xz -dc concatenates two .xz inputs to a single stdout stream Port / liblzma / usage-libarchive-tools-xz-r14-xz-multi-input-stdout-concat Passed
Compresses two distinct payloads into separate .xz files, then runs "xz -dc fileA.xz fileB.xz" with both files as positional args and asserts stdout equals the in-order byte concatenation of payloadA and payloadB, exercising xz's multi-file decompress-to-stdout concatenation.
xzcat streams an .xz from stdin via shell pipeline Port / liblzma / usage-libarchive-tools-xz-r14-xzcat-stdin-streaming Passed
Pipes "xz -c" output directly into "xzcat" with no positional file argument, exercising xzcat's stdin path through a shell pipe rather than a redirected file, and asserts the recovered bytes match the source via sha256.
bsdcpio odc cpio piped through xz then listed back with -tv shows mode columns Port / liblzma / usage-libarchive-tools-xz-r15-bsdcpio-odc-xz-tv-listing Passed
Pipes a file list into "bsdcpio -o -H odc | xz -z -c" producing an .odc.cpio.xz archive, asserts the .xz outer magic, decompresses with xz -dc and pipes through "bsdcpio -i -tv" (verbose listing) and asserts each member name is present along with a leading '-' file-type character on each verbose line — distinct from the existing batch18 odc-xz case which only checks plain "-i -t" listing.
bsdtar -xJf with --strip-components=3 extracts only the deepest leaf into the output root Port / liblzma / usage-libarchive-tools-xz-r15-bsdtar-j-strip-three Passed
Builds a tar.xz containing a single deeply-nested member at "root/dir/sub/leaf.txt" via "bsdtar -cJf", lists the archive to confirm the prefix path, then extracts with "--strip-components=3" against a fresh output directory and asserts only "leaf.txt" appears at the output root with the original sha256 — exercising a triple strip distinct from the existing single-strip and double-strip cases.
bsdtar --format pax with xz produces a pax-magic tar.xz round trip Port / liblzma / usage-libarchive-tools-xz-r15-bsdtar-pax-format-tar-xz Passed
Builds a tar.xz with "bsdtar --format pax -cJf" against three input files, asserts the .xz outer magic is fd 37 7a 58 5a 00, decompresses to a raw .tar and asserts the embedded ustar header at offset 257 contains the "ustar" magic (pax archives use ustar at the magic-bytes layer with extended headers as additional members). Lists the archive via "bsdtar -tJf" and confirms exactly three entries match. Distinct from the existing pax-format-headers case which only checks bsdtar listing.
bsdtar --xz --options compression-level=5 round trips a tar.xz archive Port / liblzma / usage-libarchive-tools-xz-r15-bsdtar-xz-options-level5 Passed
Builds a tar.xz with "bsdtar --xz --options compression-level=5" (the default-tier preset distinct from existing level0/1/2/3/4/9 cases), asserts the .xz magic, lists members via "bsdtar -tJf" matching the input filenames, and extracts to a fresh tree confirming each file's sha256 matches the source.
lzcat decodes a legacy .lzma stream piped from lzma -c on stdin Port / liblzma / usage-libarchive-tools-xz-r15-lzcat-pipe-from-lzma-stdin Passed
Pipes "lzma -c" output directly into "lzcat" (no intermediate file, no positional argument), exercising lzcat's stdin path against a legacy .lzma stream. Asserts the recovered bytes match the source sha256 — distinct from the r14 lzcat-from-lzma-file case which uses a file argument.
xz -fk forcibly overwrites an existing .xz target while preserving the source Port / liblzma / usage-libarchive-tools-xz-r15-xz-fk-overwrite-existing Passed
Compresses a payload to in.txt.xz, then changes the source contents and re-runs "xz -fk in.txt" — the -f flag forces overwrite of the existing .xz target while -k keeps the new source on disk. Asserts the .xz file now decompresses to the new payload (not the original), the source remains intact, and the round-trip sha256 matches the new payload. Distinct from r10/r13 force-overwrite cases by combining -f with -k against an existing on-disk target.
xz -F auto on decompress accepts both .xz and legacy .lzma inputs Port / liblzma / usage-libarchive-tools-xz-r15-xz-format-auto-default Passed
Builds two compressed payloads from the same source — one with "xz -c" producing a .xz (fd 37 7a 58 5a 00) and one with "lzma -c" producing a legacy .lzma (5d ...) — then decompresses both via "xz -F auto -dc" (the format-detection mode) and asserts the recovered bytes match the source sha256 in both directions, exercising the auto-format detection path explicitly.
xz --robot --list emits a "name" row whose second column is the input path Port / liblzma / usage-libarchive-tools-xz-r15-xz-list-name-row-shows-input Passed
Compresses a payload and runs "xz --robot --list" on the output, then asserts the line beginning with "name" reports the input filename in its tab-separated path field — pinning a different robot-mode column from the r14 robot-info-fields case (which only checks row presence) and the r14 sha256-list-column case (which only checks the totals row).
xz -q suppresses the verbose stats line that -v emits to stderr Port / liblzma / usage-libarchive-tools-xz-r15-xz-q-suppresses-verbose-line Passed
Compresses a payload to .xz, then runs two parallel verbose decompressions: "xz -d -v" (verbose stderr enabled) and "xz -d -v -q" (the -q flag overrides the verbosity bump). Asserts the verbose form prints non-empty stderr containing the input filename, while the -q form prints empty stderr, and both write the same correctly recovered payload back to disk matching the source sha256 — pinning the -q quietness flag against the -v verbose flag in tandem.
xzcat decodes three .xz inputs in one call and concatenates them to stdout Port / liblzma / usage-libarchive-tools-xz-r15-xzcat-three-files-stdout-concat Passed
Compresses three distinct payloads to .xz files, runs "xzcat a.xz b.xz c.xz" with all three files as positional arguments, and asserts stdout matches the sha256 of the in-order concatenation of the three sources — exercising the multi-file decompress-to-stdout path through xzcat (distinct from r14 xz-multi-input-stdout-concat which uses xz -dc with two files).
bsdtar -xJf with --strip-components 1 removes the top-level directory Port / liblzma / usage-libarchive-tools-xz-r16-bsdtar-extract-strip-1-from-tarxz Passed
Packs a top-level directory containing one file into a tar.xz, then extracts with bsdtar -xJf --strip-components 1 into an empty directory, and asserts the inner file appears at the extraction root (not under the original top-level prefix).
bsdtar -tjf on a tar.xz round-trip lists exactly the input filenames Port / liblzma / usage-libarchive-tools-xz-r16-bsdtar-tjf-emits-tar-listing Passed
Builds a 3-file tree, packs with bsdtar -cJf into a tar.xz, then lists with bsdtar -tjf and asserts the captured listing contains all 3 filenames and exactly 3 non-empty lines.
bsdtar --format=ustar through xz round-trip writes a ustar magic header Port / liblzma / usage-libarchive-tools-xz-r16-bsdtar-ustar-magic-bytes Passed
Builds a tar.xz with bsdtar --format=ustar -cJf, decompresses with xz -d, and asserts the resulting tar's first 512-byte header contains the literal "ustar" magic at offset 257 — confirming the format flag is honoured on a tar.xz round trip.
xz -l verbose listing prints a Streams field row Port / liblzma / usage-libarchive-tools-xz-r16-list-shows-streams-field Passed
Compresses a payload, runs xz -l --verbose on the output, and asserts the captured listing contains the literal "Streams" label, distinct from earlier rounds that pinned the Name row or the totals row only.
xz --decompress --keep preserves the .xz input alongside the new file Port / liblzma / usage-libarchive-tools-xz-r16-xz-decompress-keep-preserves-source Passed
Compresses a payload with xz -k, then runs xz --decompress --keep on the .xz file and asserts BOTH the .xz and the decompressed output exist afterwards with matching content via sha256sum on the decoded copy.
xz -z -d combined on the same invocation exits non-zero with an error message Port / liblzma / usage-libarchive-tools-xz-r16-xz-rejects-conflicting-flags Passed
Runs xz -z -d (asking to both compress AND decompress) and asserts the process exits with a non-zero status AND emits a diagnostic to stderr, pinning xz's argv conflict detection on Ubuntu 24.04.
xzcat concatenates output across two physically-concatenated xz streams Port / liblzma / usage-libarchive-tools-xz-r16-xzcat-concatenated-streams Passed
Compresses two payloads with xz -c into two .xz files, concatenates them via shell cat into a multi-stream .xz, and asserts xzcat on that concatenated archive emits BOTH payloads in order — exercising liblzma's stream-iteration decode path.
bsdtar -cJf creates a tar.xz containing three files Port / liblzma / usage-libarchive-tools-xz-r17-bsdtar-cjf-three-entry-tarxz Passed
Creates a tar.xz via bsdtar -cJf from a directory with three files and asserts bsdtar -tJf lists all three filenames, exercising the libarchive write-and-read xz path on a multi-entry archive.
bsdtar -tJf lists exactly three entries on a 3-file tar.xz Port / liblzma / usage-libarchive-tools-xz-r17-bsdtar-tjf-lists-three-entries Passed
Builds a 3-file tar.xz, lists its members with bsdtar -tJf, and asserts the listing has exactly three non-empty lines, pinning libarchive's xz-tar enumeration count.
bsdtar -tvJf shows user/group columns for entries written with --uname/--gname Port / liblzma / usage-libarchive-tools-xz-r17-bsdtar-tvjf-shows-user-group-columns Passed
Creates a tar.xz with bsdtar --uname=alpha --gname=beta and asserts that bsdtar -tvJf verbose listing includes both alpha and beta strings, exercising the libarchive name override round-trip on xz-compressed archives.
xz -e (extreme) accepts a tiny payload and round-trips bytes Port / liblzma / usage-libarchive-tools-xz-r17-xz-extreme-flag-accepted Passed
Compresses a small payload with xz -9 -e, decompresses, and asserts the round-tripped payload matches the original SHA — locking the --extreme flag's behavior on the lzma-utils CLI as installed.
xz -7 output size does not exceed xz -0 output size on a repetitive payload Port / liblzma / usage-libarchive-tools-xz-r17-xz-level7-not-larger-than-level0 Passed
Compresses the same repetitive payload at xz -0 and xz -7 and asserts the level-7 output is <= the level-0 output, exercising the preset compression-ratio monotonicity on a representative input.
xz --robot --list emits a totals row Port / liblzma / usage-libarchive-tools-xz-r17-xz-robot-list-totals-row Passed
Compresses a payload, runs xz --robot --list on it, and asserts the machine-readable robot listing includes a "totals" row, pinning the documented robot-mode listing schema.
xz | xz -d stdin pipe round-trip preserves payload SHA Port / liblzma / usage-libarchive-tools-xz-r17-xz-stdin-pipe-roundtrip-sha Passed
Pipes a payload through xz then xz -d back-to-back and asserts the final stdout sha matches the original, exercising the streaming compression/decompression pipeline through the lzma library.
xz -S .myxz writes the compressed file with the requested suffix Port / liblzma / usage-libarchive-tools-xz-r17-xz-suffix-myxz-output-name Passed
Runs xz -S .myxz on a payload file and asserts the resulting file is named "<input>.myxz" rather than the default ".xz", pinning the --suffix override behavior.
xz --threads=2 round-trip yields a byte-identical decompressed payload Port / liblzma / usage-libarchive-tools-xz-r17-xz-threads-2-roundtrip-sha Passed
Compresses a small payload with xz --threads=2, decompresses with xz -d, and asserts the SHA-256 of the round-tripped output matches the original — pinning that multi-threaded compression preserves payload bytes.
bsdtar pax format xz roundtrip Port / liblzma / usage-libarchive-tools-xz-r9-bsdcpio-pax-roundtrip Passed
Creates an xz-compressed pax-format tarball and verifies the extracted file content matches the original after decompression.
bsdtar xz reads tarball via stdin Port / liblzma / usage-libarchive-tools-xz-r9-bsdtar-from-stdin-pipe Passed
Pipes an xz-compressed tarball to bsdtar -tf - and verifies the listing contains the original entry name.
bsdtar xz --exclude pattern filter Port / liblzma / usage-libarchive-tools-xz-r9-exclude-pattern Passed
Builds an xz tarball with bsdtar --exclude '*.tmp' and verifies matching files are absent from the listing.
bsdtar xz extract with --include pattern Port / liblzma / usage-libarchive-tools-xz-r9-include-pattern Passed
Creates an xz tarball with mixed file extensions then extracts only entries matching --include '*.log' and confirms the other entries are not extracted.
bsdtar xz --keep-newer-files preserves newer Port / liblzma / usage-libarchive-tools-xz-r9-keep-newer-files Passed
Extracts an xz tarball over a destination whose existing file is newer and verifies bsdtar --keep-newer-files leaves the existing newer file untouched.
bsdtar xz multi-file listing count Port / liblzma / usage-libarchive-tools-xz-r9-multifile-listing-count Passed
bsdtar xz --newer-mtime selective add Port / liblzma / usage-libarchive-tools-xz-r9-newer-mtime-filter Passed
Creates two files with disparate mtimes and uses bsdtar -cJf --newer-mtime to include only the newer file in the resulting xz tarball.
bsdtar xz numeric-owner verbose listing Port / liblzma / usage-libarchive-tools-xz-r9-numeric-owner Passed
Creates an xz tarball and verifies bsdtar -tv --numeric-owner produces a listing whose owner field is numeric.
bsdtar xz preserves file permission mode Port / liblzma / usage-libarchive-tools-xz-r9-permission-mode Passed
Creates an xz tarball containing a file with mode 0750, extracts it with --preserve-permissions, and verifies the extracted file has mode 0750.
bsdtar xz uname override via --uname Port / liblzma / usage-libarchive-tools-xz-r9-uname-tag Passed
Creates an xz tarball with --uname=customuser --gname=customgrp and verifies the verbose listing surfaces those names.
libarchive tools xz root directory extract gamma Port / liblzma / usage-libarchive-tools-xz-rootdir-extract-gamma Passed
Exercises libarchive tools xz root directory extract gamma through a dependent-client usage scenario.
libarchive-tools xz root hidden file Port / liblzma / usage-libarchive-tools-xz-rootdir-hidden-file Passed
Archives and extracts a hidden file under a root directory in an xz-compressed tar and verifies the restored payload.
libarchive tools xz root directory list Port / liblzma / usage-libarchive-tools-xz-rootdir-list Passed
libarchive-tools xz single extract Port / liblzma / usage-libarchive-tools-xz-single-file-extract Passed
libarchive tools xz space directory list Port / liblzma / usage-libarchive-tools-xz-space-dir-list Passed
libarchive-tools xz spaced directory Port / liblzma / usage-libarchive-tools-xz-space-dir Passed
Archives a directory with spaces under xz compression and verifies the nested file extracts correctly.
libarchive-tools xz space file extract Port / liblzma / usage-libarchive-tools-xz-space-file-extract Passed
Extracts a spaced filename from an xz-compressed tar archive and verifies the restored file payload.
libarchive-tools xz space file stdout Port / liblzma / usage-libarchive-tools-xz-space-file-stdout Passed
Streams a spaced filename member from an xz-compressed tar archive with bsdtar -xOf and verifies the extracted payload.
libarchive-tools xz spaced root extract Port / liblzma / usage-libarchive-tools-xz-space-rootdir-extract Passed
libarchive-tools xz spaced root list Port / liblzma / usage-libarchive-tools-xz-space-rootdir-list Passed
Lists an xz-compressed tar whose top-level directory name contains spaces and verifies the nested path.
libarchive-tools xz spaced filename Port / liblzma / usage-libarchive-tools-xz-spaced-filename Passed
libarchive-tools xz stdout archive Port / liblzma / usage-libarchive-tools-xz-stdin-archive Passed
libarchive-tools xz stdin list members Port / liblzma / usage-libarchive-tools-xz-stdin-list-members Passed
Pipes an xz-compressed tar archive into bsdtar and verifies the listed member paths from stdin input.
libarchive-tools xz stdout member alpha Port / liblzma / usage-libarchive-tools-xz-stdout-member-alpha Passed
Streams a single member from an xz-compressed tar archive with bsdtar -xOf and verifies the extracted payload.
libarchive-tools xz stdout stream Port / liblzma / usage-libarchive-tools-xz-stdout-stream Passed
libarchive-tools xz stream extract Port / liblzma / usage-libarchive-tools-xz-stream-extract Passed
libarchive-tools xz stream list Port / liblzma / usage-libarchive-tools-xz-stream-list Passed
libarchive tools xz stream member stdout Port / liblzma / usage-libarchive-tools-xz-stream-member-stdout Passed
libarchive-tools xz stream subdir list Port / liblzma / usage-libarchive-tools-xz-stream-subdir-list Passed
Streams an xz-compressed tar through bsdtar and verifies a nested subdirectory member appears in the listing.
libarchive-tools xz strip components Port / liblzma / usage-libarchive-tools-xz-strip-components Passed
libarchive-tools xz subtree only Port / liblzma / usage-libarchive-tools-xz-subtree-only Passed
libarchive tools xz symlink extract target Port / liblzma / usage-libarchive-tools-xz-symlink-extract-target Passed
libarchive-tools xz symlink listing Port / liblzma / usage-libarchive-tools-xz-symlink-listing Passed
Lists an xz-compressed archive containing a symbolic link and verifies the link member appears in verbose output.
libarchive-tools xz symlink Port / liblzma / usage-libarchive-tools-xz-symlink Passed
libarchive-tools xz tar extract Port / liblzma / usage-libarchive-tools-xz-tar-extract Passed
libarchive-tools xz tar list Port / liblzma / usage-libarchive-tools-xz-tar-list Passed
libarchive-tools xz topdir strip one Port / liblzma / usage-libarchive-tools-xz-topdir-strip-one Passed
Archives a top-level directory under xz compression and extracts it with one stripped path component.
libarchive-tools xz two space files list Port / liblzma / usage-libarchive-tools-xz-two-space-files-list Passed
Lists an xz-compressed tar archive containing a spaced filename and verifies the member path is preserved.
libarchive-tools xz two topdirs list Port / liblzma / usage-libarchive-tools-xz-two-topdirs-list Passed
Creates an xz-compressed tar with two top-level directories and verifies both paths appear in the archive listing.
libarchive-tools xz verbose exec list Port / liblzma / usage-libarchive-tools-xz-verbose-exec-list Passed
Lists an xz-compressed tar archive verbosely and verifies executable permission metadata for a script member.
libarchive-tools xz verbose list Port / liblzma / usage-libarchive-tools-xz-verbose-list Passed
CVE-2024-3094 liblzma regression Port / liblzma / cve-2024-3094 Passed
Asserts that the installed liblzma.so.5 does not expose any of the XZ Utils 5.6.0/5.6.1 backdoor resolver symbols (e.g. _get_cpuid, crc32_resolve, crc64_resolve) and that an easy_buffer_encode/stream_buffer_decode round trip preserves the payload byte-for-byte.