projects
/
rust-lightning
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
764e6e7
)
Include color when building fuzz targets in CI
2020-04-more-cleanups
author
Matt Corallo
<git@bluematt.me>
Fri, 24 Apr 2020 21:35:18 +0000
(17:35 -0400)
committer
Matt Corallo
<git@bluematt.me>
Fri, 24 Apr 2020 21:35:18 +0000
(17:35 -0400)
fuzz/ci-fuzz.sh
patch
|
blob
|
history
diff --git
a/fuzz/ci-fuzz.sh
b/fuzz/ci-fuzz.sh
index d1355deec39f314a553e1237806750c654f5a8a5..9894178458da6afdac246500474ef70014588f23 100755
(executable)
--- a/
fuzz/ci-fuzz.sh
+++ b/
fuzz/ci-fuzz.sh
@@
-12,9
+12,9
@@
rm *_target.rs
[ "$(git diff)" != "" ] && exit 1
popd
[ "$(git diff)" != "" ] && exit 1
popd
-cargo install --force honggfuzz
+cargo install --
color always --
force honggfuzz
sed -i 's/lto = true//' Cargo.toml
sed -i 's/lto = true//' Cargo.toml
-HFUZZ_BUILD_ARGS="--features honggfuzz_fuzz" cargo hfuzz build
+HFUZZ_BUILD_ARGS="--features honggfuzz_fuzz" cargo
--color always
hfuzz build
for TARGET in src/bin/*.rs; do
FILENAME=$(basename $TARGET)
FILE="${FILENAME%.*}"
for TARGET in src/bin/*.rs; do
FILENAME=$(basename $TARGET)
FILE="${FILENAME%.*}"
@@
-27,7
+27,7
@@
for TARGET in src/bin/*.rs; do
HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -N1000000"
fi
export HFUZZ_RUN_ARGS
HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -N1000000"
fi
export HFUZZ_RUN_ARGS
- HFUZZ_BUILD_ARGS="--features honggfuzz_fuzz" cargo hfuzz run $FILE
+ HFUZZ_BUILD_ARGS="--features honggfuzz_fuzz" cargo
--color always
hfuzz run $FILE
if [ -f hfuzz_workspace/$FILE/HONGGFUZZ.REPORT.TXT ]; then
cat hfuzz_workspace/$FILE/HONGGFUZZ.REPORT.TXT
for CASE in hfuzz_workspace/$FILE/SIG*; do
if [ -f hfuzz_workspace/$FILE/HONGGFUZZ.REPORT.TXT ]; then
cat hfuzz_workspace/$FILE/HONGGFUZZ.REPORT.TXT
for CASE in hfuzz_workspace/$FILE/SIG*; do