-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Improve fuzzer logging #7281
Improve fuzzer logging #7281
Conversation
e63f6e9
to
910c67a
Compare
GNU testsuite comparison:
|
Seems that you have unrelated changes in your pr |
Indeed, I pushed my dev environment :') |
it looks great :) |
d07797e
to
046af8f
Compare
046af8f
to
e94e077
Compare
GNU testsuite comparison:
|
@sylvestre I'll let you merge if you're happy with the changes ! |
sorry, i didn't noticed that you cleaned it |
fuzz/fuzz_targets/fuzz_cksum.rs
Outdated
}; | ||
use rand::Rng; | ||
use std::env::temp_dir; | ||
use std::fs::{self, File}; | ||
use std::io::Write; | ||
use std::process::Command; | ||
|
||
static CMD_PATH: &str = "cksum"; | ||
static CMD_PATH: &str = "../gnu/src/cksum"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It means that you need gnu + build it
Currently it is using the bin from the system
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On my system, coreutils version is 9.5, so I am missing the recently added crc32b
algorithm, which leads to many errors. IMO, it's better to fuzz against the same version of the GNU coreutils as the one we test against, but that's not a strong requirement for me, if it's too much work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense but should be done in a different pr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do 👍
…remove false positives, improve logging
e94e077
to
6afa515
Compare
GNU testsuite comparison:
|
While fuzzing, I had a hard time understanding the output, because of the number of tests and the lack of uniformity in the output.
This PR adds colored output to the logging (like for the diffs, for the test result, etc...)
Here is an example (sorry for the accessibility, but a screenshot is the only way to show the colored output)
Note: I have made little modifications to
fuzz_cksum
to fix some false positives and to further improve logs' readability, because it's the tool I am the most familiar with.