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

Adapt alg_comp test to different zlib (#142) #143

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

tuliom
Copy link
Contributor

@tuliom tuliom commented Dec 6, 2023

Different zlib implementations such as zlib-ng, QATzip and libnxz provide API and ABI compatibility with madler's zlib. However, they do not guarantee identical output.
This makes it very hard to compare the length or binary output of a compressed stream.

Instead of doing that, this patch aims to compare the input against the output of a compression and decompression cycle.

Fixes #142.

tests/alg_comp.c Outdated Show resolved Hide resolved
Different zlib implementations such as zlib-ng, QATzip and libnxz
provide API and ABI compatibility with madler's zlib. However, they do
not guarantee identical output.
This makes it very hard to compare the length or binary output of a
compressed stream.

Instead of doing that, this patch aims to compare the input against the
output of a compression and decompression cycle.

Fixes latchset#142.
Copy link
Collaborator

@sergio-correia sergio-correia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

@sergio-correia sergio-correia merged commit 4878253 into latchset:master Dec 18, 2023
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test alg_comp fails when using a different zlib implementation
2 participants