+
Skip to content

cksum: add CRC32B algorithm added in GNU 9.6 #7169

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

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

RenjiSann
Copy link
Collaborator

This is still a draft, but I'll try to fix all the now failing tests of cksum

Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/cksum/cksum is no longer failing!
Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

@RenjiSann RenjiSann force-pushed the cksum-9.6-fixes branch 3 times, most recently from 3d9755d to f89eb8b Compare January 20, 2025 00:24
@RenjiSann
Copy link
Collaborator Author

I have added a dependency to crc32fast for handling the new algorithm. It is very popular (200M downloads on crates.io) so it is very unlikely that we will have to put effort into maintaining it.

@RenjiSann
Copy link
Collaborator Author

The other test (cksum/cksum-c.sh) will be less trivial to fix, as the test know reveals flaws in the way we handle CLI options.

Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)
Congrats! The gnu test tests/cksum/cksum is no longer failing!
Congrats! The gnu test tests/cksum/cksum-base64 is no longer failing!

@sylvestre
Copy link
Contributor

nice
we don't have to fix all the issues at once. maybe we can merge what you have done here

@RenjiSann
Copy link
Collaborator Author

fix format (diff)

@RenjiSann
Copy link
Collaborator Author

we don't have to fix all the issues at once. maybe we can merge what you have done here
Sure ! Let's merge this already :)

@RenjiSann RenjiSann changed the title Fix cksum for GNU 9.6 cksum: add CRC32B algorithm added in GNU 9.6 Jan 20, 2025
@@ -1706,6 +1715,7 @@ mod gnu_cksum_base64 {
let scene = make_scene();

for (algo, digest) in PAIRS {
log_info(format!("ALGORITHM"), algo);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
log_info(format!("ALGORITHM"), algo);
log_info("ALGORITHM".to_string());

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yup, missed this 👍

@RenjiSann
Copy link
Collaborator Author

rebase on main

Copy link

GNU testsuite comparison:

GNU test failed: tests/misc/stdbuf. tests/misc/stdbuf is passing on 'main'. Maybe you have to rebase?
Congrats! The gnu test tests/cksum/cksum is no longer failing!
Congrats! The gnu test tests/cksum/cksum-base64 is no longer failing!
Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

@sylvestre
Copy link
Contributor

Is it ready? Asking as it is still marked as draft

@RenjiSann RenjiSann marked this pull request as ready for review January 20, 2025 14:12
@RenjiSann
Copy link
Collaborator Author

Is it ready? Asking as it is still marked as draft

Yes, I was waiting for the tests to finish

@sylvestre sylvestre merged commit 3513ee6 into uutils:main Jan 20, 2025
64 of 65 checks passed
@RenjiSann RenjiSann deleted the cksum-9.6-fixes branch January 29, 2025 15:22
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.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载