8 [ "$(git diff)" != "" ] && exit 1
13 [ "$(git diff)" != "" ] && exit 1
16 cargo install --color always --force honggfuzz
17 sed -i 's/lto = true//' Cargo.toml
18 HFUZZ_BUILD_ARGS="--features honggfuzz_fuzz" cargo --color always hfuzz build
19 for TARGET in src/bin/*.rs; do
20 FILENAME=$(basename $TARGET)
22 HFUZZ_RUN_ARGS="--exit_upon_crash -v -n2"
23 if [ "$FILE" = "chanmon_consistency_target" ]; then
24 HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -F 64 -N100000"
25 elif [ "$FILE" = "full_stack_target" ]; then
26 HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -t0 -N1000000"
28 HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -N1000000"
31 HFUZZ_BUILD_ARGS="--features honggfuzz_fuzz" cargo --color always hfuzz run $FILE
32 if [ -f hfuzz_workspace/$FILE/HONGGFUZZ.REPORT.TXT ]; then
33 cat hfuzz_workspace/$FILE/HONGGFUZZ.REPORT.TXT
34 for CASE in hfuzz_workspace/$FILE/SIG*; do