lzma-rs icon indicating copy to clipboard operation
lzma-rs copied to clipboard

Test against the XZ test suite

Open Shnatsel opened this issue 4 years ago • 4 comments

The XZ utils source distribution at https://tukaani.org/xz/ contains 63 small files exercising various features of the format. The test files are placed in the public domain and there is a description of the expected behavior for each one.

It would be nice to test lzma-rs against those files - it would have caught #32, for example.

Shnatsel avatar Apr 15 '20 19:04 Shnatsel

See also #20

Shnatsel avatar Apr 16 '20 01:04 Shnatsel

xz2 crate already does this, its test harness can be used as reference: https://github.com/alexcrichton/xz2-rs/blob/master/tests/xz.rs

Shnatsel avatar Apr 16 '20 11:04 Shnatsel

Good idea! Note that only the basic filters are implemented for now, so some of the "good" files will currently be rejected.

gendx avatar Apr 16 '20 20:04 gendx

Note: these files can also be found in https://github.com/xz-mirror/xz/tree/master/tests/files.

gendx avatar Apr 16 '20 21:04 gendx