7 [ "$(git diff)" != "" ] && exit 1
12 [ "$(git diff)" != "" ] && exit 1
15 cargo install --force honggfuzz
16 sed -i 's/lto = true//' Cargo.toml
17 HFUZZ_BUILD_ARGS="--features honggfuzz_fuzz" cargo hfuzz build
18 for TARGET in src/bin/*.rs; do
19 FILENAME=$(basename $TARGET)
21 HFUZZ_RUN_ARGS="--exit_upon_crash -v -n2"
22 if [ "$FILE" = "chanmon_consistency_target" ]; then
23 HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -F 64 -N100000"
25 HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -N1000000"
28 HFUZZ_BUILD_ARGS="--features honggfuzz_fuzz" cargo hfuzz run $FILE
29 if [ -f hfuzz_workspace/$FILE/HONGGFUZZ.REPORT.TXT ]; then
30 cat hfuzz_workspace/$FILE/HONGGFUZZ.REPORT.TXT
31 for CASE in hfuzz_workspace/$FILE/SIG*; do