projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix parameter name incorrectly changed in 4ebe64fafd2ca0e17aab31fb0
[rust-lightning]
/
fuzz
/
travis-fuzz.sh
diff --git
a/fuzz/travis-fuzz.sh
b/fuzz/travis-fuzz.sh
index e602e9518f7f1d6f16f4aa2b6d1359833944072c..5ec431d7ef1818ffccde8700fb23142bb9345a9e 100755
(executable)
--- a/
fuzz/travis-fuzz.sh
+++ b/
fuzz/travis-fuzz.sh
@@
-1,18
+1,24
@@
#!/bin/bash
set -e
#!/bin/bash
set -e
-pushd fuzz_targets/msg_targets
+pushd src/msg_targets
+rm msg_*.rs
+./gen_target.sh
+[ "$(git diff)" != "" ] && exit 1
+popd
+pushd src/bin
rm *_target.rs
./gen_target.sh
[ "$(git diff)" != "" ] && exit 1
popd
cargo install --force honggfuzz
rm *_target.rs
./gen_target.sh
[ "$(git diff)" != "" ] && exit 1
popd
cargo install --force honggfuzz
-for TARGET in fuzz_targets/*.rs fuzz_targets/msg_targets/*_target.rs; do
+HFUZZ_BUILD_ARGS="--features honggfuzz_fuzz" cargo hfuzz build
+for TARGET in src/bin/*.rs; do
FILENAME=$(basename $TARGET)
FILE="${FILENAME%.*}"
HFUZZ_RUN_ARGS="--exit_upon_crash -v -n2"
FILENAME=$(basename $TARGET)
FILE="${FILENAME%.*}"
HFUZZ_RUN_ARGS="--exit_upon_crash -v -n2"
- if [ "$FILE" = "chanmon_
fail_consistency
" ]; then
+ if [ "$FILE" = "chanmon_
consistency_target
" ]; then
HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -F 64 -N100000"
else
HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -N1000000"
HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -F 64 -N100000"
else
HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -N1000000"