Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test against the XZ test suite #33

Open
Shnatsel opened this issue Apr 15, 2020 · 4 comments
Open

Test against the XZ test suite #33

Shnatsel opened this issue Apr 15, 2020 · 4 comments

Comments

@Shnatsel
Copy link
Contributor

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
Copy link
Contributor Author

See also #20

@Shnatsel
Copy link
Contributor Author

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

@gendx gendx added the testing label Apr 16, 2020
@gendx
Copy link
Owner

gendx commented Apr 16, 2020

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

@gendx
Copy link
Owner

gendx commented Apr 16, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants