projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor fuzzing to be a C-callable library plus rust binaries
[rust-lightning]
/
fuzz
/
travis-fuzz.sh
diff --git
a/fuzz/travis-fuzz.sh
b/fuzz/travis-fuzz.sh
index e602e9518f7f1d6f16f4aa2b6d1359833944072c..2c281d932c67d65d4db13c53de40e15a3328b285 100755
(executable)
--- a/
fuzz/travis-fuzz.sh
+++ b/
fuzz/travis-fuzz.sh
@@
-1,18
+1,23
@@
#!/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
+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"