Include color when building fuzz targets in CI
[rust-lightning] / fuzz / ci-fuzz.sh
index 57e326472886e654af93503c88b5611f7a9e2e2a..9894178458da6afdac246500474ef70014588f23 100755 (executable)
@@ -12,20 +12,22 @@ rm *_target.rs
 [ "$(git diff)" != "" ] && exit 1
 popd
 
-cargo install --force honggfuzz
+cargo install --color always --force honggfuzz
 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%.*}"
        HFUZZ_RUN_ARGS="--exit_upon_crash -v -n2"
        if [ "$FILE" = "chanmon_consistency_target" ]; then
                HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -F 64 -N100000"
+       elif [ "$FILE" = "full_stack_target" ]; then
+               HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -t0 -N1000000"
        else
                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