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

t9394: Mask compressed size for comparison. #615

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

sebastianas
Copy link
Contributor

Instead of trying to expect a static difference of the compressed content between zlib and zlib-ng mask the compressed size and ignore it while comparing.

Fixes: #614

Copy link
Owner

@newren newren left a comment

Choose a reason for hiding this comment

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

Ah, don't even try to compare packed sizes at all? That's kind of a big hammer, I was thinking of putting in some kind of relative tolerance, but it's certainly easier this way. Maybe that's good enough.

Two things that we'd need fixed, though:

@sebastianas
Copy link
Contributor Author

sebastianas commented Dec 1, 2024 via email

@newren
Copy link
Owner

newren commented Dec 2, 2024

You have cmp in there and I was nore sure how to add something that accepts a range of values in a specific column. Also the compressed values are larger than the original - not something one expects :)

Oh, there's no builtin tooling for trying to do range or tolerance comparison. It'd very much be a case of writing something a script or something for the testsuite specifically for that purpose.

Fixed both.

Thanks. Unfortunately, it appears the tests fail on mac, I believe due to the use of \s being passed to sed (see https://unix.stackexchange.com/questions/13711/differences-between-sed-on-mac-osx-and-other-standard-sed).

Instead of trying to expect a static difference of the compressed
content between zlib and zlib-ng mask the compressed size and ignore it
while comparing.

Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
@sebastianas
Copy link
Contributor Author

sebastianas commented Dec 3, 2024 via email

@newren newren merged commit bcbe570 into newren:main Dec 4, 2024
4 checks passed
@newren
Copy link
Owner

newren commented Dec 4, 2024

Thanks!

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 fails with zlibng (t9394-filter-repo-sanity-checks-and-bigger-repo-setup.sh)
2 participants