-
Notifications
You must be signed in to change notification settings - Fork 5
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
corpus_merge.sh: make macOS compatible #17
base: main
Are you sure you want to change the base?
Conversation
- xargs is needed to get rid of whitespace when getting the number of inputs - sed is used to strip non-numerical characters that appeared during the grep (notably the current working directory)
cc @morehouse |
@@ -103,7 +103,7 @@ mkdir "${CACHE_DIR}/${FUZZ_TARGET}" | |||
coverage=0 | |||
if [[ -n $(ls "${DEST_DIR}") ]]; then | |||
cp "${DEST_DIR}"/* "${CACHE_DIR}/${FUZZ_TARGET}/" | |||
coverage=$(measure_coverage) | |||
coverage=$(measure_coverage | sed 's/[^0-9]*//g') |
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.
What if the current directory has numbers in it?
Also, can we move the stripping of CWD into measure_coverage
itself?
@Crypt-iQ, remember to re-request review from reviewers when ready |
Closing due to inactivity |
2 similar comments
Closing due to inactivity |
Closing due to inactivity |
!lightninglabs-deploy mute |
Tried running
corpus_merge.sh
and ran into some issues due to quirks of macOS.wc -l
, it would include whitespace. Now it gets piped toxargs
to strip the whitespace.measure_coverage
, the current working directory was included along with the coverage bits.sed
is used to strip the non-numerical characters