From 4c321a41c482821aa3c4d64cdf886a6ed904d844 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Tue, 30 Sep 2008 17:43:55 +0300 Subject: Renamed the test files from .lzma suffix to .xz suffix. --- tests/files/README | 128 ++++++++++++------------- tests/files/bad-0-backward_size.lzma | Bin 32 -> 0 bytes tests/files/bad-0-backward_size.xz | Bin 0 -> 32 bytes tests/files/bad-0-empty-truncated.lzma | Bin 31 -> 0 bytes tests/files/bad-0-empty-truncated.xz | Bin 0 -> 31 bytes tests/files/bad-0-footer_magic.lzma | Bin 32 -> 0 bytes tests/files/bad-0-footer_magic.xz | Bin 0 -> 32 bytes tests/files/bad-0-header_magic.lzma | Bin 32 -> 0 bytes tests/files/bad-0-header_magic.xz | Bin 0 -> 32 bytes tests/files/bad-0-nonempty_index.lzma | Bin 32 -> 0 bytes tests/files/bad-0-nonempty_index.xz | Bin 0 -> 32 bytes tests/files/bad-0cat-alone.lzma | Bin 55 -> 0 bytes tests/files/bad-0cat-alone.xz | Bin 0 -> 55 bytes tests/files/bad-0cat-header_magic.lzma | Bin 64 -> 0 bytes tests/files/bad-0cat-header_magic.xz | Bin 0 -> 64 bytes tests/files/bad-0catpad-empty.lzma | Bin 69 -> 0 bytes tests/files/bad-0catpad-empty.xz | Bin 0 -> 69 bytes tests/files/bad-0pad-empty.lzma | Bin 37 -> 0 bytes tests/files/bad-0pad-empty.xz | Bin 0 -> 37 bytes tests/files/bad-1-block_header-1.lzma | Bin 64 -> 0 bytes tests/files/bad-1-block_header-1.xz | Bin 0 -> 64 bytes tests/files/bad-1-block_header-2.lzma | Bin 64 -> 0 bytes tests/files/bad-1-block_header-2.xz | Bin 0 -> 64 bytes tests/files/bad-1-block_header-3.lzma | Bin 68 -> 0 bytes tests/files/bad-1-block_header-3.xz | Bin 0 -> 68 bytes tests/files/bad-1-block_header-4.lzma | Bin 72 -> 0 bytes tests/files/bad-1-block_header-4.xz | Bin 0 -> 72 bytes tests/files/bad-1-check-crc32.lzma | Bin 68 -> 0 bytes tests/files/bad-1-check-crc32.xz | Bin 0 -> 68 bytes tests/files/bad-1-check-crc64.lzma | Bin 72 -> 0 bytes tests/files/bad-1-check-crc64.xz | Bin 0 -> 72 bytes tests/files/bad-1-check-sha256.lzma | Bin 96 -> 0 bytes tests/files/bad-1-check-sha256.xz | Bin 0 -> 96 bytes tests/files/bad-1-lzma2-1.lzma | Bin 64 -> 0 bytes tests/files/bad-1-lzma2-1.xz | Bin 0 -> 64 bytes tests/files/bad-1-lzma2-2.lzma | Bin 424 -> 0 bytes tests/files/bad-1-lzma2-2.xz | Bin 0 -> 424 bytes tests/files/bad-1-lzma2-3.lzma | Bin 424 -> 0 bytes tests/files/bad-1-lzma2-3.xz | Bin 0 -> 424 bytes tests/files/bad-1-lzma2-4.lzma | Bin 408 -> 0 bytes tests/files/bad-1-lzma2-4.xz | Bin 0 -> 408 bytes tests/files/bad-1-lzma2-5.lzma | Bin 408 -> 0 bytes tests/files/bad-1-lzma2-5.xz | Bin 0 -> 408 bytes tests/files/bad-1-lzma2-6.lzma | Bin 68 -> 0 bytes tests/files/bad-1-lzma2-6.xz | Bin 0 -> 68 bytes tests/files/bad-1-lzma2-7.lzma | Bin 408 -> 0 bytes tests/files/bad-1-lzma2-7.xz | Bin 0 -> 408 bytes tests/files/bad-1-stream_flags-1.lzma | Bin 68 -> 0 bytes tests/files/bad-1-stream_flags-1.xz | Bin 0 -> 68 bytes tests/files/bad-1-stream_flags-2.lzma | Bin 68 -> 0 bytes tests/files/bad-1-stream_flags-2.xz | Bin 0 -> 68 bytes tests/files/bad-1-stream_flags-3.lzma | Bin 68 -> 0 bytes tests/files/bad-1-stream_flags-3.xz | Bin 0 -> 68 bytes tests/files/bad-1-vli-1.lzma | Bin 72 -> 0 bytes tests/files/bad-1-vli-1.xz | Bin 0 -> 72 bytes tests/files/bad-1-vli-2.lzma | Bin 72 -> 0 bytes tests/files/bad-1-vli-2.xz | Bin 0 -> 72 bytes tests/files/bad-2-compressed_data_padding.lzma | Bin 92 -> 0 bytes tests/files/bad-2-compressed_data_padding.xz | Bin 0 -> 92 bytes tests/files/bad-2-index-1.lzma | Bin 92 -> 0 bytes tests/files/bad-2-index-1.xz | Bin 0 -> 92 bytes tests/files/bad-2-index-2.lzma | Bin 92 -> 0 bytes tests/files/bad-2-index-2.xz | Bin 0 -> 92 bytes tests/files/bad-2-index-3.lzma | Bin 92 -> 0 bytes tests/files/bad-2-index-3.xz | Bin 0 -> 92 bytes tests/files/bad-2-index-4.lzma | Bin 92 -> 0 bytes tests/files/bad-2-index-4.xz | Bin 0 -> 92 bytes tests/files/good-0-empty.lzma | Bin 32 -> 0 bytes tests/files/good-0-empty.xz | Bin 0 -> 32 bytes tests/files/good-0cat-empty.lzma | Bin 64 -> 0 bytes tests/files/good-0cat-empty.xz | Bin 0 -> 64 bytes tests/files/good-0catpad-empty.lzma | Bin 68 -> 0 bytes tests/files/good-0catpad-empty.xz | Bin 0 -> 68 bytes tests/files/good-0pad-empty.lzma | Bin 36 -> 0 bytes tests/files/good-0pad-empty.xz | Bin 0 -> 36 bytes tests/files/good-1-3delta-lzma2.lzma | Bin 528 -> 0 bytes tests/files/good-1-3delta-lzma2.xz | Bin 0 -> 528 bytes tests/files/good-1-block_header-1.lzma | Bin 72 -> 0 bytes tests/files/good-1-block_header-1.xz | Bin 0 -> 72 bytes tests/files/good-1-block_header-2.lzma | Bin 68 -> 0 bytes tests/files/good-1-block_header-2.xz | Bin 0 -> 68 bytes tests/files/good-1-block_header-3.lzma | Bin 68 -> 0 bytes tests/files/good-1-block_header-3.xz | Bin 0 -> 68 bytes tests/files/good-1-check-crc32.lzma | Bin 68 -> 0 bytes tests/files/good-1-check-crc32.xz | Bin 0 -> 68 bytes tests/files/good-1-check-crc64.lzma | Bin 72 -> 0 bytes tests/files/good-1-check-crc64.xz | Bin 0 -> 72 bytes tests/files/good-1-check-none.lzma | Bin 64 -> 0 bytes tests/files/good-1-check-none.xz | Bin 0 -> 64 bytes tests/files/good-1-check-sha256.lzma | Bin 96 -> 0 bytes tests/files/good-1-check-sha256.xz | Bin 0 -> 96 bytes tests/files/good-1-delta-lzma2.tiff.lzma | Bin 51312 -> 0 bytes tests/files/good-1-delta-lzma2.tiff.xz | Bin 0 -> 51312 bytes tests/files/good-1-lzma2-1.lzma | Bin 424 -> 0 bytes tests/files/good-1-lzma2-1.xz | Bin 0 -> 424 bytes tests/files/good-1-lzma2-2.lzma | Bin 424 -> 0 bytes tests/files/good-1-lzma2-2.xz | Bin 0 -> 424 bytes tests/files/good-1-lzma2-3.lzma | Bin 408 -> 0 bytes tests/files/good-1-lzma2-3.xz | Bin 0 -> 408 bytes tests/files/good-1-sparc-lzma2.lzma | Bin 2292 -> 0 bytes tests/files/good-1-sparc-lzma2.xz | Bin 0 -> 2292 bytes tests/files/good-1-x86-lzma2.lzma | Bin 1936 -> 0 bytes tests/files/good-1-x86-lzma2.xz | Bin 0 -> 1936 bytes tests/files/good-2-lzma2.lzma | Bin 92 -> 0 bytes tests/files/good-2-lzma2.xz | Bin 0 -> 92 bytes tests/files/unsupported-block_header.lzma | Bin 68 -> 0 bytes tests/files/unsupported-block_header.xz | Bin 0 -> 68 bytes tests/files/unsupported-check.lzma | Bin 68 -> 0 bytes tests/files/unsupported-check.xz | Bin 0 -> 68 bytes tests/files/unsupported-filter_flags-1.lzma | Bin 68 -> 0 bytes tests/files/unsupported-filter_flags-1.xz | Bin 0 -> 68 bytes tests/files/unsupported-filter_flags-2.lzma | Bin 68 -> 0 bytes tests/files/unsupported-filter_flags-2.xz | Bin 0 -> 68 bytes tests/files/unsupported-filter_flags-3.lzma | Bin 68 -> 0 bytes tests/files/unsupported-filter_flags-3.xz | Bin 0 -> 68 bytes tests/test_files.sh | 6 +- 116 files changed, 66 insertions(+), 68 deletions(-) delete mode 100644 tests/files/bad-0-backward_size.lzma create mode 100644 tests/files/bad-0-backward_size.xz delete mode 100644 tests/files/bad-0-empty-truncated.lzma create mode 100644 tests/files/bad-0-empty-truncated.xz delete mode 100644 tests/files/bad-0-footer_magic.lzma create mode 100644 tests/files/bad-0-footer_magic.xz delete mode 100644 tests/files/bad-0-header_magic.lzma create mode 100644 tests/files/bad-0-header_magic.xz delete mode 100644 tests/files/bad-0-nonempty_index.lzma create mode 100644 tests/files/bad-0-nonempty_index.xz delete mode 100644 tests/files/bad-0cat-alone.lzma create mode 100644 tests/files/bad-0cat-alone.xz delete mode 100644 tests/files/bad-0cat-header_magic.lzma create mode 100644 tests/files/bad-0cat-header_magic.xz delete mode 100644 tests/files/bad-0catpad-empty.lzma create mode 100644 tests/files/bad-0catpad-empty.xz delete mode 100644 tests/files/bad-0pad-empty.lzma create mode 100644 tests/files/bad-0pad-empty.xz delete mode 100644 tests/files/bad-1-block_header-1.lzma create mode 100644 tests/files/bad-1-block_header-1.xz delete mode 100644 tests/files/bad-1-block_header-2.lzma create mode 100644 tests/files/bad-1-block_header-2.xz delete mode 100644 tests/files/bad-1-block_header-3.lzma create mode 100644 tests/files/bad-1-block_header-3.xz delete mode 100644 tests/files/bad-1-block_header-4.lzma create mode 100644 tests/files/bad-1-block_header-4.xz delete mode 100644 tests/files/bad-1-check-crc32.lzma create mode 100644 tests/files/bad-1-check-crc32.xz delete mode 100644 tests/files/bad-1-check-crc64.lzma create mode 100644 tests/files/bad-1-check-crc64.xz delete mode 100644 tests/files/bad-1-check-sha256.lzma create mode 100644 tests/files/bad-1-check-sha256.xz delete mode 100644 tests/files/bad-1-lzma2-1.lzma create mode 100644 tests/files/bad-1-lzma2-1.xz delete mode 100644 tests/files/bad-1-lzma2-2.lzma create mode 100644 tests/files/bad-1-lzma2-2.xz delete mode 100644 tests/files/bad-1-lzma2-3.lzma create mode 100644 tests/files/bad-1-lzma2-3.xz delete mode 100644 tests/files/bad-1-lzma2-4.lzma create mode 100644 tests/files/bad-1-lzma2-4.xz delete mode 100644 tests/files/bad-1-lzma2-5.lzma create mode 100644 tests/files/bad-1-lzma2-5.xz delete mode 100644 tests/files/bad-1-lzma2-6.lzma create mode 100644 tests/files/bad-1-lzma2-6.xz delete mode 100644 tests/files/bad-1-lzma2-7.lzma create mode 100644 tests/files/bad-1-lzma2-7.xz delete mode 100644 tests/files/bad-1-stream_flags-1.lzma create mode 100644 tests/files/bad-1-stream_flags-1.xz delete mode 100644 tests/files/bad-1-stream_flags-2.lzma create mode 100644 tests/files/bad-1-stream_flags-2.xz delete mode 100644 tests/files/bad-1-stream_flags-3.lzma create mode 100644 tests/files/bad-1-stream_flags-3.xz delete mode 100644 tests/files/bad-1-vli-1.lzma create mode 100644 tests/files/bad-1-vli-1.xz delete mode 100644 tests/files/bad-1-vli-2.lzma create mode 100644 tests/files/bad-1-vli-2.xz delete mode 100644 tests/files/bad-2-compressed_data_padding.lzma create mode 100644 tests/files/bad-2-compressed_data_padding.xz delete mode 100644 tests/files/bad-2-index-1.lzma create mode 100644 tests/files/bad-2-index-1.xz delete mode 100644 tests/files/bad-2-index-2.lzma create mode 100644 tests/files/bad-2-index-2.xz delete mode 100644 tests/files/bad-2-index-3.lzma create mode 100644 tests/files/bad-2-index-3.xz delete mode 100644 tests/files/bad-2-index-4.lzma create mode 100644 tests/files/bad-2-index-4.xz delete mode 100644 tests/files/good-0-empty.lzma create mode 100644 tests/files/good-0-empty.xz delete mode 100644 tests/files/good-0cat-empty.lzma create mode 100644 tests/files/good-0cat-empty.xz delete mode 100644 tests/files/good-0catpad-empty.lzma create mode 100644 tests/files/good-0catpad-empty.xz delete mode 100644 tests/files/good-0pad-empty.lzma create mode 100644 tests/files/good-0pad-empty.xz delete mode 100644 tests/files/good-1-3delta-lzma2.lzma create mode 100644 tests/files/good-1-3delta-lzma2.xz delete mode 100644 tests/files/good-1-block_header-1.lzma create mode 100644 tests/files/good-1-block_header-1.xz delete mode 100644 tests/files/good-1-block_header-2.lzma create mode 100644 tests/files/good-1-block_header-2.xz delete mode 100644 tests/files/good-1-block_header-3.lzma create mode 100644 tests/files/good-1-block_header-3.xz delete mode 100644 tests/files/good-1-check-crc32.lzma create mode 100644 tests/files/good-1-check-crc32.xz delete mode 100644 tests/files/good-1-check-crc64.lzma create mode 100644 tests/files/good-1-check-crc64.xz delete mode 100644 tests/files/good-1-check-none.lzma create mode 100644 tests/files/good-1-check-none.xz delete mode 100644 tests/files/good-1-check-sha256.lzma create mode 100644 tests/files/good-1-check-sha256.xz delete mode 100644 tests/files/good-1-delta-lzma2.tiff.lzma create mode 100644 tests/files/good-1-delta-lzma2.tiff.xz delete mode 100644 tests/files/good-1-lzma2-1.lzma create mode 100644 tests/files/good-1-lzma2-1.xz delete mode 100644 tests/files/good-1-lzma2-2.lzma create mode 100644 tests/files/good-1-lzma2-2.xz delete mode 100644 tests/files/good-1-lzma2-3.lzma create mode 100644 tests/files/good-1-lzma2-3.xz delete mode 100644 tests/files/good-1-sparc-lzma2.lzma create mode 100644 tests/files/good-1-sparc-lzma2.xz delete mode 100644 tests/files/good-1-x86-lzma2.lzma create mode 100644 tests/files/good-1-x86-lzma2.xz delete mode 100644 tests/files/good-2-lzma2.lzma create mode 100644 tests/files/good-2-lzma2.xz delete mode 100644 tests/files/unsupported-block_header.lzma create mode 100644 tests/files/unsupported-block_header.xz delete mode 100644 tests/files/unsupported-check.lzma create mode 100644 tests/files/unsupported-check.xz delete mode 100644 tests/files/unsupported-filter_flags-1.lzma create mode 100644 tests/files/unsupported-filter_flags-1.xz delete mode 100644 tests/files/unsupported-filter_flags-2.lzma create mode 100644 tests/files/unsupported-filter_flags-2.xz delete mode 100644 tests/files/unsupported-filter_flags-3.lzma create mode 100644 tests/files/unsupported-filter_flags-3.xz (limited to 'tests') diff --git a/tests/files/README b/tests/files/README index 3599011e..9818d3f1 100644 --- a/tests/files/README +++ b/tests/files/README @@ -1,26 +1,26 @@ -.lzma Test Files +.xz Test Files ---------------- 0. Introduction - This directory contains bunch of files to test handling of .lzma files - in .lzma decoder implementations. Many of the files have been created + This directory contains bunch of files to test handling of .xz files + in .xz decoder implementations. Many of the files have been created by hand with a hex editor, thus there is no better "source code" than - the files themselves. All the test files (*.lzma) and this README have + the files themselves. All the test files (*.xz) and this README have been put into the public domain. 1. File Types - Good files (good-*.lzma) must decode successfully without requiring + Good files (good-*.xz) must decode successfully without requiring a lot of CPU time or RAM. - Unsupported files (unsupported-*.lzma) are good files, but headers + Unsupported files (unsupported-*.xz) are good files, but headers indicate features not supported by the current file format specification. - Bad files (bad-*.lzma) must cause the decoder to give an error. Like + Bad files (bad-*.xz) must cause the decoder to give an error. Like with the good files, these files must not require a lot of CPU time or RAM before they get detected to be broken. @@ -29,82 +29,82 @@ 2.1. Good Files - good-0-empty.lzma has one Stream with no Blocks. + good-0-empty.xz has one Stream with no Blocks. - good-0pad-empty.lzma has one Stream with no Blocks followed by + good-0pad-empty.xz has one Stream with no Blocks followed by four-byte Stream Padding. - good-0cat-empty.lzma has two zero-Block Streams concatenated without + good-0cat-empty.xz has two zero-Block Streams concatenated without Stream Padding. - good-0catpad-empty.lzma has two zero-Block Streams concatenated with + good-0catpad-empty.xz has two zero-Block Streams concatenated with four-byte Stream Padding between the Streams. - good-1-check-none.lzma has one Stream with one Block with two + good-1-check-none.xz has one Stream with one Block with two uncompressed LZMA2 chunks and no integrity check. - good-1-check-crc32.lzma has one Stream with one Block with two + good-1-check-crc32.xz has one Stream with one Block with two uncompressed LZMA2 chunks and CRC32 check. - good-1-check-crc64.lzma is like good-1-check-crc32.lzma but with CRC64. + good-1-check-crc64.xz is like good-1-check-crc32.xz but with CRC64. - good-1-check-sha256.lzma is like good-1-check-crc32.lzma but with + good-1-check-sha256.xz is like good-1-check-crc32.xz but with SHA256. - good-2-lzma2.lzma has one Stream with two Blocks with one uncompressed + good-2-lzma2.xz has one Stream with two Blocks with one uncompressed LZMA2 chunk in each Block. - good-1-block_header-1.lzma has both Compressed Size and Uncompressed + good-1-block_header-1.xz has both Compressed Size and Uncompressed Size in the Block Header. This has also four extra bytes of Header Padding. - good-1-block_header-2.lzma has known Compressed Size. + good-1-block_header-2.xz has known Compressed Size. - good-1-block_header-3.lzma has known Uncompressed Size. + good-1-block_header-3.xz has known Uncompressed Size. - good-1-delta-lzma2.tiff.lzma is an image file that compresses + good-1-delta-lzma2.tiff.xz is an image file that compresses better with Delta+LZMA2 than with plain LZMA2. - good-1-x86-lzma2.lzma uses the x86 filter (BCJ) and LZMA2. The + good-1-x86-lzma2.xz uses the x86 filter (BCJ) and LZMA2. The uncompressed file is compress_prepared_bcj_x86 found from the tests directory. - good-1-sparc-lzma2.lzma uses the SPARC filter and LZMA. The + good-1-sparc-lzma2.xz uses the SPARC filter and LZMA. The uncompressed file is compress_prepared_bcj_sparc found from the tests directory. - good-1-lzma2-1.lzma has two LZMA2 chunks, of which the second sets + good-1-lzma2-1.xz has two LZMA2 chunks, of which the second sets new properties. - good-1-lzma2-2.lzma has two LZMA2 chunks, of which the second resets + good-1-lzma2-2.xz has two LZMA2 chunks, of which the second resets the state without specifying new properties. - good-1-lzma2-3.lzma has two LZMA2 chunks, of which the first is + good-1-lzma2-3.xz has two LZMA2 chunks, of which the first is uncompressed and the second is LZMA. The first chunk resets dictionary and the second sets new properties. - good-1-3delta-lzma2.lzma has three Delta filters and LZMA2. + good-1-3delta-lzma2.xz has three Delta filters and LZMA2. 2.2. Unsupported Files - unsupported-check.lzma uses Check ID 0x02 which isn't supported by + unsupported-check.xz uses Check ID 0x02 which isn't supported by the current version of the file format. It is implementation-defined how this file handled (it may reject it, or decode it possibly with a warning). - unsupported-block_header.lzma has a non-nul byte in Header Padding, + unsupported-block_header.xz has a non-nul byte in Header Padding, which may indicate presence of a new unsupported field. - unsupported-filter_flags-1.lzma has unsupported Filter ID 0x7F. + unsupported-filter_flags-1.xz has unsupported Filter ID 0x7F. - unsupported-filter_flags-2.lzma specifies only Delta filter in the + unsupported-filter_flags-2.xz specifies only Delta filter in the List of Filter Flags, but Delta isn't allowed as the last filter in the chain. It could be a little more correct to detect this file as corrupt instead of unsupported, but saying it is unsupported is simpler in case of liblzma. - unsupported-filter_flags-3.lzma specifies two LZMA2 filters in the + unsupported-filter_flags-3.xz specifies two LZMA2 filters in the List of Filter Flags. LZMA2 is allowed only as the last filter in the chain. It could be a little more correct to detect this file as corrupt instead of unsupported, but saying it is unsupported is @@ -113,106 +113,106 @@ 2.3. Bad Files - bad-0pad-empty.lzma has one Stream with no Blocks followed by + bad-0pad-empty.xz has one Stream with no Blocks followed by five-byte Stream Padding. Stream Padding must be a multiple of four bytes, thus this file is corrupt. - bad-0catpad-empty.lzma has two zero-Block Streams concatenated with + bad-0catpad-empty.xz has two zero-Block Streams concatenated with five-byte Stream Padding between the Streams. - bad-0cat-alone.lzma is good-0-empty.lzma concatenated with an empty + bad-0cat-alone.xz is good-0-empty.xz concatenated with an empty LZMA_Alone file. - bad-0cat-header_magic.lzma is good-0cat-empty.lzma but with one byte + bad-0cat-header_magic.xz is good-0cat-empty.xz but with one byte wrong in the Header Magic Bytes field of the second Stream. liblzma gives LZMA_DATA_ERROR for this. (LZMA_FORMAT_ERROR is used only if the first Stream of a file has invalid Header Magic Bytes.) - bad-0-header_magic.lzma is good-0-empty.lzma but with one byte wrong + bad-0-header_magic.xz is good-0-empty.xz but with one byte wrong in the Header Magic Bytes field. liblzma gives LZMA_FORMAT_ERROR for this. - bad-0-footer_magic.lzma is good-0-empty.lzma but with one byte wrong + bad-0-footer_magic.xz is good-0-empty.xz but with one byte wrong in the Footer Magic Bytes field. liblzma gives LZMA_DATA_ERROR for this. - bad-0-empty-truncated.lzma is good-0-empty.lzma without the last byte + bad-0-empty-truncated.xz is good-0-empty.xz without the last byte of the file. - bad-0-nonempty_index.lzma has no Blocks but Index claims that there is + bad-0-nonempty_index.xz has no Blocks but Index claims that there is one Block. - bad-0-backward_size.lzma has wrong Backward Size in Stream Footer. + bad-0-backward_size.xz has wrong Backward Size in Stream Footer. - bad-1-stream_flags-1.lzma has different Stream Flags in Stream Header + bad-1-stream_flags-1.xz has different Stream Flags in Stream Header and Stream Footer. - bad-1-stream_flags-2.lzma has wrong CRC32 in Stream Header. + bad-1-stream_flags-2.xz has wrong CRC32 in Stream Header. - bad-1-stream_flags-3.lzma has wrong CRC32 in Stream Footer. + bad-1-stream_flags-3.xz has wrong CRC32 in Stream Footer. - bad-1-vli-1.lzma has two-byte variable-length integer in the + bad-1-vli-1.xz has two-byte variable-length integer in the Uncompressed Size field in Block Header while one-byte would be enough for that value. It's important that the file gets rejected due to too big integer encoding instead of due to Uncompressed Size not matching the value stored in the Block Header. That is, the decoder must not try to decode the Compressed Data field. - bad-1-vli-2.lzma has ten-byte variable-length integer as Uncompressed + bad-1-vli-2.xz has ten-byte variable-length integer as Uncompressed Size in Block Header. It's important that the file gets rejected due to too big integer encoding instead of due to Uncompressed Size not matching the value stored in the Block Header. That is, the decoder must not try to decode the Compressed Data field. - bad-1-block_header-1.lzma has Block Header that ends in the middle of + bad-1-block_header-1.xz has Block Header that ends in the middle of the Filter Flags field. - bad-1-block_header-2.lzma has Block Header that has Compressed Size and + bad-1-block_header-2.xz has Block Header that has Compressed Size and Uncompressed Size but no List of Filter Flags field. - bad-1-block_header-3.lzma has wrong CRC32 in Block Header. + bad-1-block_header-3.xz has wrong CRC32 in Block Header. - bad-1-block_header-4.lzma has too big Compressed Size (2^63 bytes while + bad-1-block_header-4.xz has too big Compressed Size (2^63 bytes while maximum is 2^63 - 4 bytes) in Block Header. It's important that the file gets rejected due to invalid Compressed Size value; the decoder must not try decoding the Compressed Data field. - bad-2-index-1.lzma has wrong Total Sizes in Index. + bad-2-index-1.xz has wrong Total Sizes in Index. - bad-2-index-2.lzma has wrong Uncompressed Sizes in Index. + bad-2-index-2.xz has wrong Uncompressed Sizes in Index. - bad-2-index-3.lzma has non-nul byte in Index Padding. + bad-2-index-3.xz has non-nul byte in Index Padding. - bad-2-index-4.lzma wrong CRC32 in Index. + bad-2-index-4.xz wrong CRC32 in Index. - bad-2-compressed_data_padding.lzma has non-nul byte in the padding of + bad-2-compressed_data_padding.xz has non-nul byte in the padding of the Compressed Data field of the first Block. - bad-1-check-crc32.lzma has wrong Check (CRC32). + bad-1-check-crc32.xz has wrong Check (CRC32). - bad-1-check-crc64.lzma has wrong Check (CRC64). + bad-1-check-crc64.xz has wrong Check (CRC64). - bad-1-check-sha256.lzma has wrong Check (SHA-256). + bad-1-check-sha256.xz has wrong Check (SHA-256). - bad-1-lzma2-1.lzma has LZMA2 stream whose first chunk (uncompressed) + bad-1-lzma2-1.xz has LZMA2 stream whose first chunk (uncompressed) doesn't reset the dictionary. - bad-1-lzma2-2.lzma has two LZMA2 chunks, of which the second chunk + bad-1-lzma2-2.xz has two LZMA2 chunks, of which the second chunk indicates dictionary reset, but the LZMA compressed data tries to repeat data from the previous chunk. - bad-1-lzma2-3.lzma sets new invalid properties (lc=8, lp=0, pb=0) in + bad-1-lzma2-3.xz sets new invalid properties (lc=8, lp=0, pb=0) in the middle of Block. - bad-1-lzma2-4.lzma has two LZMA2 chunks, of which the first is + bad-1-lzma2-4.xz has two LZMA2 chunks, of which the first is uncompressed and the second is LZMA. The first chunk resets dictionary as it should, but the second chunk tries to reset state without specifying properties for LZMA. - bad-1-lzma2-5.lzma is like bad-1-lzma2-4.lzma but doesn't try to reset + bad-1-lzma2-5.xz is like bad-1-lzma2-4.xz but doesn't try to reset anything in the header of the second chunk. - bad-1-lzma2-6.lzma has reserved LZMA2 control byte value (0x03). + bad-1-lzma2-6.xz has reserved LZMA2 control byte value (0x03). - bad-1-lzma2-7.lzma has EOPM at LZMA level. + bad-1-lzma2-7.xz has EOPM at LZMA level. diff --git a/tests/files/bad-0-backward_size.lzma b/tests/files/bad-0-backward_size.lzma deleted file mode 100644 index 2b46fa93..00000000 Binary files a/tests/files/bad-0-backward_size.lzma and /dev/null differ diff --git a/tests/files/bad-0-backward_size.xz b/tests/files/bad-0-backward_size.xz new file mode 100644 index 00000000..2b46fa93 Binary files /dev/null and b/tests/files/bad-0-backward_size.xz differ diff --git a/tests/files/bad-0-empty-truncated.lzma b/tests/files/bad-0-empty-truncated.lzma deleted file mode 100644 index f879af84..00000000 Binary files a/tests/files/bad-0-empty-truncated.lzma and /dev/null differ diff --git a/tests/files/bad-0-empty-truncated.xz b/tests/files/bad-0-empty-truncated.xz new file mode 100644 index 00000000..f879af84 Binary files /dev/null and b/tests/files/bad-0-empty-truncated.xz differ diff --git a/tests/files/bad-0-footer_magic.lzma b/tests/files/bad-0-footer_magic.lzma deleted file mode 100644 index 5d9e3894..00000000 Binary files a/tests/files/bad-0-footer_magic.lzma and /dev/null differ diff --git a/tests/files/bad-0-footer_magic.xz b/tests/files/bad-0-footer_magic.xz new file mode 100644 index 00000000..5d9e3894 Binary files /dev/null and b/tests/files/bad-0-footer_magic.xz differ diff --git a/tests/files/bad-0-header_magic.lzma b/tests/files/bad-0-header_magic.lzma deleted file mode 100644 index 5984a453..00000000 Binary files a/tests/files/bad-0-header_magic.lzma and /dev/null differ diff --git a/tests/files/bad-0-header_magic.xz b/tests/files/bad-0-header_magic.xz new file mode 100644 index 00000000..5984a453 Binary files /dev/null and b/tests/files/bad-0-header_magic.xz differ diff --git a/tests/files/bad-0-nonempty_index.lzma b/tests/files/bad-0-nonempty_index.lzma deleted file mode 100644 index ed6e81fa..00000000 Binary files a/tests/files/bad-0-nonempty_index.lzma and /dev/null differ diff --git a/tests/files/bad-0-nonempty_index.xz b/tests/files/bad-0-nonempty_index.xz new file mode 100644 index 00000000..ed6e81fa Binary files /dev/null and b/tests/files/bad-0-nonempty_index.xz differ diff --git a/tests/files/bad-0cat-alone.lzma b/tests/files/bad-0cat-alone.lzma deleted file mode 100644 index a915a3a1..00000000 Binary files a/tests/files/bad-0cat-alone.lzma and /dev/null differ diff --git a/tests/files/bad-0cat-alone.xz b/tests/files/bad-0cat-alone.xz new file mode 100644 index 00000000..a915a3a1 Binary files /dev/null and b/tests/files/bad-0cat-alone.xz differ diff --git a/tests/files/bad-0cat-header_magic.lzma b/tests/files/bad-0cat-header_magic.lzma deleted file mode 100644 index 426bf2d4..00000000 Binary files a/tests/files/bad-0cat-header_magic.lzma and /dev/null differ diff --git a/tests/files/bad-0cat-header_magic.xz b/tests/files/bad-0cat-header_magic.xz new file mode 100644 index 00000000..426bf2d4 Binary files /dev/null and b/tests/files/bad-0cat-header_magic.xz differ diff --git a/tests/files/bad-0catpad-empty.lzma b/tests/files/bad-0catpad-empty.lzma deleted file mode 100644 index 97c13302..00000000 Binary files a/tests/files/bad-0catpad-empty.lzma and /dev/null differ diff --git a/tests/files/bad-0catpad-empty.xz b/tests/files/bad-0catpad-empty.xz new file mode 100644 index 00000000..97c13302 Binary files /dev/null and b/tests/files/bad-0catpad-empty.xz differ diff --git a/tests/files/bad-0pad-empty.lzma b/tests/files/bad-0pad-empty.lzma deleted file mode 100644 index 45e00b74..00000000 Binary files a/tests/files/bad-0pad-empty.lzma and /dev/null differ diff --git a/tests/files/bad-0pad-empty.xz b/tests/files/bad-0pad-empty.xz new file mode 100644 index 00000000..45e00b74 Binary files /dev/null and b/tests/files/bad-0pad-empty.xz differ diff --git a/tests/files/bad-1-block_header-1.lzma b/tests/files/bad-1-block_header-1.lzma deleted file mode 100644 index e126a419..00000000 Binary files a/tests/files/bad-1-block_header-1.lzma and /dev/null differ diff --git a/tests/files/bad-1-block_header-1.xz b/tests/files/bad-1-block_header-1.xz new file mode 100644 index 00000000..e126a419 Binary files /dev/null and b/tests/files/bad-1-block_header-1.xz differ diff --git a/tests/files/bad-1-block_header-2.lzma b/tests/files/bad-1-block_header-2.lzma deleted file mode 100644 index e3e8166d..00000000 Binary files a/tests/files/bad-1-block_header-2.lzma and /dev/null differ diff --git a/tests/files/bad-1-block_header-2.xz b/tests/files/bad-1-block_header-2.xz new file mode 100644 index 00000000..e3e8166d Binary files /dev/null and b/tests/files/bad-1-block_header-2.xz differ diff --git a/tests/files/bad-1-block_header-3.lzma b/tests/files/bad-1-block_header-3.lzma deleted file mode 100644 index 17955038..00000000 Binary files a/tests/files/bad-1-block_header-3.lzma and /dev/null differ diff --git a/tests/files/bad-1-block_header-3.xz b/tests/files/bad-1-block_header-3.xz new file mode 100644 index 00000000..17955038 Binary files /dev/null and b/tests/files/bad-1-block_header-3.xz differ diff --git a/tests/files/bad-1-block_header-4.lzma b/tests/files/bad-1-block_header-4.lzma deleted file mode 100644 index be31ce04..00000000 Binary files a/tests/files/bad-1-block_header-4.lzma and /dev/null differ diff --git a/tests/files/bad-1-block_header-4.xz b/tests/files/bad-1-block_header-4.xz new file mode 100644 index 00000000..be31ce04 Binary files /dev/null and b/tests/files/bad-1-block_header-4.xz differ diff --git a/tests/files/bad-1-check-crc32.lzma b/tests/files/bad-1-check-crc32.lzma deleted file mode 100644 index f8ec7d61..00000000 Binary files a/tests/files/bad-1-check-crc32.lzma and /dev/null differ diff --git a/tests/files/bad-1-check-crc32.xz b/tests/files/bad-1-check-crc32.xz new file mode 100644 index 00000000..f8ec7d61 Binary files /dev/null and b/tests/files/bad-1-check-crc32.xz differ diff --git a/tests/files/bad-1-check-crc64.lzma b/tests/files/bad-1-check-crc64.lzma deleted file mode 100644 index eb406ce6..00000000 Binary files a/tests/files/bad-1-check-crc64.lzma and /dev/null differ diff --git a/tests/files/bad-1-check-crc64.xz b/tests/files/bad-1-check-crc64.xz new file mode 100644 index 00000000..eb406ce6 Binary files /dev/null and b/tests/files/bad-1-check-crc64.xz differ diff --git a/tests/files/bad-1-check-sha256.lzma b/tests/files/bad-1-check-sha256.lzma deleted file mode 100644 index e33cee80..00000000 Binary files a/tests/files/bad-1-check-sha256.lzma and /dev/null differ diff --git a/tests/files/bad-1-check-sha256.xz b/tests/files/bad-1-check-sha256.xz new file mode 100644 index 00000000..e33cee80 Binary files /dev/null and b/tests/files/bad-1-check-sha256.xz differ diff --git a/tests/files/bad-1-lzma2-1.lzma b/tests/files/bad-1-lzma2-1.lzma deleted file mode 100644 index f7ff6dd3..00000000 Binary files a/tests/files/bad-1-lzma2-1.lzma and /dev/null differ diff --git a/tests/files/bad-1-lzma2-1.xz b/tests/files/bad-1-lzma2-1.xz new file mode 100644 index 00000000..f7ff6dd3 Binary files /dev/null and b/tests/files/bad-1-lzma2-1.xz differ diff --git a/tests/files/bad-1-lzma2-2.lzma b/tests/files/bad-1-lzma2-2.lzma deleted file mode 100644 index 3b279195..00000000 Binary files a/tests/files/bad-1-lzma2-2.lzma and /dev/null differ diff --git a/tests/files/bad-1-lzma2-2.xz b/tests/files/bad-1-lzma2-2.xz new file mode 100644 index 00000000..3b279195 Binary files /dev/null and b/tests/files/bad-1-lzma2-2.xz differ diff --git a/tests/files/bad-1-lzma2-3.lzma b/tests/files/bad-1-lzma2-3.lzma deleted file mode 100644 index e1a20831..00000000 Binary files a/tests/files/bad-1-lzma2-3.lzma and /dev/null differ diff --git a/tests/files/bad-1-lzma2-3.xz b/tests/files/bad-1-lzma2-3.xz new file mode 100644 index 00000000..e1a20831 Binary files /dev/null and b/tests/files/bad-1-lzma2-3.xz differ diff --git a/tests/files/bad-1-lzma2-4.lzma b/tests/files/bad-1-lzma2-4.lzma deleted file mode 100644 index e0eb7aaa..00000000 Binary files a/tests/files/bad-1-lzma2-4.lzma and /dev/null differ diff --git a/tests/files/bad-1-lzma2-4.xz b/tests/files/bad-1-lzma2-4.xz new file mode 100644 index 00000000..e0eb7aaa Binary files /dev/null and b/tests/files/bad-1-lzma2-4.xz differ diff --git a/tests/files/bad-1-lzma2-5.lzma b/tests/files/bad-1-lzma2-5.lzma deleted file mode 100644 index 437aeed0..00000000 Binary files a/tests/files/bad-1-lzma2-5.lzma and /dev/null differ diff --git a/tests/files/bad-1-lzma2-5.xz b/tests/files/bad-1-lzma2-5.xz new file mode 100644 index 00000000..437aeed0 Binary files /dev/null and b/tests/files/bad-1-lzma2-5.xz differ diff --git a/tests/files/bad-1-lzma2-6.lzma b/tests/files/bad-1-lzma2-6.lzma deleted file mode 100644 index f87cab68..00000000 Binary files a/tests/files/bad-1-lzma2-6.lzma and /dev/null differ diff --git a/tests/files/bad-1-lzma2-6.xz b/tests/files/bad-1-lzma2-6.xz new file mode 100644 index 00000000..f87cab68 Binary files /dev/null and b/tests/files/bad-1-lzma2-6.xz differ diff --git a/tests/files/bad-1-lzma2-7.lzma b/tests/files/bad-1-lzma2-7.lzma deleted file mode 100644 index 1a487ca7..00000000 Binary files a/tests/files/bad-1-lzma2-7.lzma and /dev/null differ diff --git a/tests/files/bad-1-lzma2-7.xz b/tests/files/bad-1-lzma2-7.xz new file mode 100644 index 00000000..1a487ca7 Binary files /dev/null and b/tests/files/bad-1-lzma2-7.xz differ diff --git a/tests/files/bad-1-stream_flags-1.lzma b/tests/files/bad-1-stream_flags-1.lzma deleted file mode 100644 index fd77d474..00000000 Binary files a/tests/files/bad-1-stream_flags-1.lzma and /dev/null differ diff --git a/tests/files/bad-1-stream_flags-1.xz b/tests/files/bad-1-stream_flags-1.xz new file mode 100644 index 00000000..fd77d474 Binary files /dev/null and b/tests/files/bad-1-stream_flags-1.xz differ diff --git a/tests/files/bad-1-stream_flags-2.lzma b/tests/files/bad-1-stream_flags-2.lzma deleted file mode 100644 index a4a582ad..00000000 Binary files a/tests/files/bad-1-stream_flags-2.lzma and /dev/null differ diff --git a/tests/files/bad-1-stream_flags-2.xz b/tests/files/bad-1-stream_flags-2.xz new file mode 100644 index 00000000..a4a582ad Binary files /dev/null and b/tests/files/bad-1-stream_flags-2.xz differ diff --git a/tests/files/bad-1-stream_flags-3.lzma b/tests/files/bad-1-stream_flags-3.lzma deleted file mode 100644 index f10b8d00..00000000 Binary files a/tests/files/bad-1-stream_flags-3.lzma and /dev/null differ diff --git a/tests/files/bad-1-stream_flags-3.xz b/tests/files/bad-1-stream_flags-3.xz new file mode 100644 index 00000000..f10b8d00 Binary files /dev/null and b/tests/files/bad-1-stream_flags-3.xz differ diff --git a/tests/files/bad-1-vli-1.lzma b/tests/files/bad-1-vli-1.lzma deleted file mode 100644 index e2a08b9e..00000000 Binary files a/tests/files/bad-1-vli-1.lzma and /dev/null differ diff --git a/tests/files/bad-1-vli-1.xz b/tests/files/bad-1-vli-1.xz new file mode 100644 index 00000000..e2a08b9e Binary files /dev/null and b/tests/files/bad-1-vli-1.xz differ diff --git a/tests/files/bad-1-vli-2.lzma b/tests/files/bad-1-vli-2.lzma deleted file mode 100644 index 604e8186..00000000 Binary files a/tests/files/bad-1-vli-2.lzma and /dev/null differ diff --git a/tests/files/bad-1-vli-2.xz b/tests/files/bad-1-vli-2.xz new file mode 100644 index 00000000..604e8186 Binary files /dev/null and b/tests/files/bad-1-vli-2.xz differ diff --git a/tests/files/bad-2-compressed_data_padding.lzma b/tests/files/bad-2-compressed_data_padding.lzma deleted file mode 100644 index 1d0f58b7..00000000 Binary files a/tests/files/bad-2-compressed_data_padding.lzma and /dev/null differ diff --git a/tests/files/bad-2-compressed_data_padding.xz b/tests/files/bad-2-compressed_data_padding.xz new file mode 100644 index 00000000..1d0f58b7 Binary files /dev/null and b/tests/files/bad-2-compressed_data_padding.xz differ diff --git a/tests/files/bad-2-index-1.lzma b/tests/files/bad-2-index-1.lzma deleted file mode 100644 index 42efda0d..00000000 Binary files a/tests/files/bad-2-index-1.lzma and /dev/null differ diff --git a/tests/files/bad-2-index-1.xz b/tests/files/bad-2-index-1.xz new file mode 100644 index 00000000..42efda0d Binary files /dev/null and b/tests/files/bad-2-index-1.xz differ diff --git a/tests/files/bad-2-index-2.lzma b/tests/files/bad-2-index-2.lzma deleted file mode 100644 index ee5e89c2..00000000 Binary files a/tests/files/bad-2-index-2.lzma and /dev/null differ diff --git a/tests/files/bad-2-index-2.xz b/tests/files/bad-2-index-2.xz new file mode 100644 index 00000000..ee5e89c2 Binary files /dev/null and b/tests/files/bad-2-index-2.xz differ diff --git a/tests/files/bad-2-index-3.lzma b/tests/files/bad-2-index-3.lzma deleted file mode 100644 index f51eaad8..00000000 Binary files a/tests/files/bad-2-index-3.lzma and /dev/null differ diff --git a/tests/files/bad-2-index-3.xz b/tests/files/bad-2-index-3.xz new file mode 100644 index 00000000..f51eaad8 Binary files /dev/null and b/tests/files/bad-2-index-3.xz differ diff --git a/tests/files/bad-2-index-4.lzma b/tests/files/bad-2-index-4.lzma deleted file mode 100644 index 1b5b78e4..00000000 Binary files a/tests/files/bad-2-index-4.lzma and /dev/null differ diff --git a/tests/files/bad-2-index-4.xz b/tests/files/bad-2-index-4.xz new file mode 100644 index 00000000..1b5b78e4 Binary files /dev/null and b/tests/files/bad-2-index-4.xz differ diff --git a/tests/files/good-0-empty.lzma b/tests/files/good-0-empty.lzma deleted file mode 100644 index 83b95e05..00000000 Binary files a/tests/files/good-0-empty.lzma and /dev/null differ diff --git a/tests/files/good-0-empty.xz b/tests/files/good-0-empty.xz new file mode 100644 index 00000000..83b95e05 Binary files /dev/null and b/tests/files/good-0-empty.xz differ diff --git a/tests/files/good-0cat-empty.lzma b/tests/files/good-0cat-empty.lzma deleted file mode 100644 index e6fc3146..00000000 Binary files a/tests/files/good-0cat-empty.lzma and /dev/null differ diff --git a/tests/files/good-0cat-empty.xz b/tests/files/good-0cat-empty.xz new file mode 100644 index 00000000..e6fc3146 Binary files /dev/null and b/tests/files/good-0cat-empty.xz differ diff --git a/tests/files/good-0catpad-empty.lzma b/tests/files/good-0catpad-empty.lzma deleted file mode 100644 index 4f86b7d1..00000000 Binary files a/tests/files/good-0catpad-empty.lzma and /dev/null differ diff --git a/tests/files/good-0catpad-empty.xz b/tests/files/good-0catpad-empty.xz new file mode 100644 index 00000000..4f86b7d1 Binary files /dev/null and b/tests/files/good-0catpad-empty.xz differ diff --git a/tests/files/good-0pad-empty.lzma b/tests/files/good-0pad-empty.lzma deleted file mode 100644 index c51e3a69..00000000 Binary files a/tests/files/good-0pad-empty.lzma and /dev/null differ diff --git a/tests/files/good-0pad-empty.xz b/tests/files/good-0pad-empty.xz new file mode 100644 index 00000000..c51e3a69 Binary files /dev/null and b/tests/files/good-0pad-empty.xz differ diff --git a/tests/files/good-1-3delta-lzma2.lzma b/tests/files/good-1-3delta-lzma2.lzma deleted file mode 100644 index 3edb4805..00000000 Binary files a/tests/files/good-1-3delta-lzma2.lzma and /dev/null differ diff --git a/tests/files/good-1-3delta-lzma2.xz b/tests/files/good-1-3delta-lzma2.xz new file mode 100644 index 00000000..3edb4805 Binary files /dev/null and b/tests/files/good-1-3delta-lzma2.xz differ diff --git a/tests/files/good-1-block_header-1.lzma b/tests/files/good-1-block_header-1.lzma deleted file mode 100644 index c0cc7200..00000000 Binary files a/tests/files/good-1-block_header-1.lzma and /dev/null differ diff --git a/tests/files/good-1-block_header-1.xz b/tests/files/good-1-block_header-1.xz new file mode 100644 index 00000000..c0cc7200 Binary files /dev/null and b/tests/files/good-1-block_header-1.xz differ diff --git a/tests/files/good-1-block_header-2.lzma b/tests/files/good-1-block_header-2.lzma deleted file mode 100644 index 5eb8575c..00000000 Binary files a/tests/files/good-1-block_header-2.lzma and /dev/null differ diff --git a/tests/files/good-1-block_header-2.xz b/tests/files/good-1-block_header-2.xz new file mode 100644 index 00000000..5eb8575c Binary files /dev/null and b/tests/files/good-1-block_header-2.xz differ diff --git a/tests/files/good-1-block_header-3.lzma b/tests/files/good-1-block_header-3.lzma deleted file mode 100644 index 5e8dc78b..00000000 Binary files a/tests/files/good-1-block_header-3.lzma and /dev/null differ diff --git a/tests/files/good-1-block_header-3.xz b/tests/files/good-1-block_header-3.xz new file mode 100644 index 00000000..5e8dc78b Binary files /dev/null and b/tests/files/good-1-block_header-3.xz differ diff --git a/tests/files/good-1-check-crc32.lzma b/tests/files/good-1-check-crc32.lzma deleted file mode 100644 index 949a215d..00000000 Binary files a/tests/files/good-1-check-crc32.lzma and /dev/null differ diff --git a/tests/files/good-1-check-crc32.xz b/tests/files/good-1-check-crc32.xz new file mode 100644 index 00000000..949a215d Binary files /dev/null and b/tests/files/good-1-check-crc32.xz differ diff --git a/tests/files/good-1-check-crc64.lzma b/tests/files/good-1-check-crc64.lzma deleted file mode 100644 index 6102c945..00000000 Binary files a/tests/files/good-1-check-crc64.lzma and /dev/null differ diff --git a/tests/files/good-1-check-crc64.xz b/tests/files/good-1-check-crc64.xz new file mode 100644 index 00000000..6102c945 Binary files /dev/null and b/tests/files/good-1-check-crc64.xz differ diff --git a/tests/files/good-1-check-none.lzma b/tests/files/good-1-check-none.lzma deleted file mode 100644 index aab057d7..00000000 Binary files a/tests/files/good-1-check-none.lzma and /dev/null differ diff --git a/tests/files/good-1-check-none.xz b/tests/files/good-1-check-none.xz new file mode 100644 index 00000000..aab057d7 Binary files /dev/null and b/tests/files/good-1-check-none.xz differ diff --git a/tests/files/good-1-check-sha256.lzma b/tests/files/good-1-check-sha256.lzma deleted file mode 100644 index 141a4818..00000000 Binary files a/tests/files/good-1-check-sha256.lzma and /dev/null differ diff --git a/tests/files/good-1-check-sha256.xz b/tests/files/good-1-check-sha256.xz new file mode 100644 index 00000000..141a4818 Binary files /dev/null and b/tests/files/good-1-check-sha256.xz differ diff --git a/tests/files/good-1-delta-lzma2.tiff.lzma b/tests/files/good-1-delta-lzma2.tiff.lzma deleted file mode 100644 index 744fb8d1..00000000 Binary files a/tests/files/good-1-delta-lzma2.tiff.lzma and /dev/null differ diff --git a/tests/files/good-1-delta-lzma2.tiff.xz b/tests/files/good-1-delta-lzma2.tiff.xz new file mode 100644 index 00000000..744fb8d1 Binary files /dev/null and b/tests/files/good-1-delta-lzma2.tiff.xz differ diff --git a/tests/files/good-1-lzma2-1.lzma b/tests/files/good-1-lzma2-1.lzma deleted file mode 100644 index 96aff26e..00000000 Binary files a/tests/files/good-1-lzma2-1.lzma and /dev/null differ diff --git a/tests/files/good-1-lzma2-1.xz b/tests/files/good-1-lzma2-1.xz new file mode 100644 index 00000000..96aff26e Binary files /dev/null and b/tests/files/good-1-lzma2-1.xz differ diff --git a/tests/files/good-1-lzma2-2.lzma b/tests/files/good-1-lzma2-2.lzma deleted file mode 100644 index 19631d48..00000000 Binary files a/tests/files/good-1-lzma2-2.lzma and /dev/null differ diff --git a/tests/files/good-1-lzma2-2.xz b/tests/files/good-1-lzma2-2.xz new file mode 100644 index 00000000..19631d48 Binary files /dev/null and b/tests/files/good-1-lzma2-2.xz differ diff --git a/tests/files/good-1-lzma2-3.lzma b/tests/files/good-1-lzma2-3.lzma deleted file mode 100644 index 11c84ee6..00000000 Binary files a/tests/files/good-1-lzma2-3.lzma and /dev/null differ diff --git a/tests/files/good-1-lzma2-3.xz b/tests/files/good-1-lzma2-3.xz new file mode 100644 index 00000000..11c84ee6 Binary files /dev/null and b/tests/files/good-1-lzma2-3.xz differ diff --git a/tests/files/good-1-sparc-lzma2.lzma b/tests/files/good-1-sparc-lzma2.lzma deleted file mode 100644 index 9111e39b..00000000 Binary files a/tests/files/good-1-sparc-lzma2.lzma and /dev/null differ diff --git a/tests/files/good-1-sparc-lzma2.xz b/tests/files/good-1-sparc-lzma2.xz new file mode 100644 index 00000000..9111e39b Binary files /dev/null and b/tests/files/good-1-sparc-lzma2.xz differ diff --git a/tests/files/good-1-x86-lzma2.lzma b/tests/files/good-1-x86-lzma2.lzma deleted file mode 100644 index 4fbd0ee4..00000000 Binary files a/tests/files/good-1-x86-lzma2.lzma and /dev/null differ diff --git a/tests/files/good-1-x86-lzma2.xz b/tests/files/good-1-x86-lzma2.xz new file mode 100644 index 00000000..4fbd0ee4 Binary files /dev/null and b/tests/files/good-1-x86-lzma2.xz differ diff --git a/tests/files/good-2-lzma2.lzma b/tests/files/good-2-lzma2.lzma deleted file mode 100644 index dd34b66a..00000000 Binary files a/tests/files/good-2-lzma2.lzma and /dev/null differ diff --git a/tests/files/good-2-lzma2.xz b/tests/files/good-2-lzma2.xz new file mode 100644 index 00000000..dd34b66a Binary files /dev/null and b/tests/files/good-2-lzma2.xz differ diff --git a/tests/files/unsupported-block_header.lzma b/tests/files/unsupported-block_header.lzma deleted file mode 100644 index ee697e4d..00000000 Binary files a/tests/files/unsupported-block_header.lzma and /dev/null differ diff --git a/tests/files/unsupported-block_header.xz b/tests/files/unsupported-block_header.xz new file mode 100644 index 00000000..ee697e4d Binary files /dev/null and b/tests/files/unsupported-block_header.xz differ diff --git a/tests/files/unsupported-check.lzma b/tests/files/unsupported-check.lzma deleted file mode 100644 index e2fe486b..00000000 Binary files a/tests/files/unsupported-check.lzma and /dev/null differ diff --git a/tests/files/unsupported-check.xz b/tests/files/unsupported-check.xz new file mode 100644 index 00000000..e2fe486b Binary files /dev/null and b/tests/files/unsupported-check.xz differ diff --git a/tests/files/unsupported-filter_flags-1.lzma b/tests/files/unsupported-filter_flags-1.lzma deleted file mode 100644 index b4acab24..00000000 Binary files a/tests/files/unsupported-filter_flags-1.lzma and /dev/null differ diff --git a/tests/files/unsupported-filter_flags-1.xz b/tests/files/unsupported-filter_flags-1.xz new file mode 100644 index 00000000..b4acab24 Binary files /dev/null and b/tests/files/unsupported-filter_flags-1.xz differ diff --git a/tests/files/unsupported-filter_flags-2.lzma b/tests/files/unsupported-filter_flags-2.lzma deleted file mode 100644 index fa907dc2..00000000 Binary files a/tests/files/unsupported-filter_flags-2.lzma and /dev/null differ diff --git a/tests/files/unsupported-filter_flags-2.xz b/tests/files/unsupported-filter_flags-2.xz new file mode 100644 index 00000000..fa907dc2 Binary files /dev/null and b/tests/files/unsupported-filter_flags-2.xz differ diff --git a/tests/files/unsupported-filter_flags-3.lzma b/tests/files/unsupported-filter_flags-3.lzma deleted file mode 100644 index 939ab5fe..00000000 Binary files a/tests/files/unsupported-filter_flags-3.lzma and /dev/null differ diff --git a/tests/files/unsupported-filter_flags-3.xz b/tests/files/unsupported-filter_flags-3.xz new file mode 100644 index 00000000..939ab5fe Binary files /dev/null and b/tests/files/unsupported-filter_flags-3.xz differ diff --git a/tests/test_files.sh b/tests/test_files.sh index 71b43a0b..c670d728 100755 --- a/tests/test_files.sh +++ b/tests/test_files.sh @@ -16,7 +16,7 @@ # ############################################################################### -for I in "$srcdir"/files/good-*.lzma +for I in "$srcdir"/files/good-*.xz do if ../src/lzmadec/lzmadec "$I" > /dev/null 2> /dev/null ; then : @@ -27,7 +27,7 @@ do fi done -for I in "$srcdir"/files/bad-*.lzma +for I in "$srcdir"/files/bad-*.xz do if ../src/lzmadec/lzmadec "$I" > /dev/null 2> /dev/null ; then echo "Bad file succeeded: $I" @@ -36,7 +36,5 @@ do fi done -# TODO: Test malicious files too, but with care. - (exit 0) exit 0 -- cgit v1.2.3