X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=fuzz%2Fci-fuzz.sh;h=5a5a8f7f803f8b73c9d96135a3ba1d2a5a5380e9;hb=65efd92c4a931b3b3622c84c6055bc015152fde0;hp=969505ca88d1bf1e227fd1eeee73c26c13dea741;hpb=00f08c910ff87fecc580750df33d3ebf5ac1fceb;p=rust-lightning diff --git a/fuzz/ci-fuzz.sh b/fuzz/ci-fuzz.sh index 969505ca..5a5a8f7f 100755 --- a/fuzz/ci-fuzz.sh +++ b/fuzz/ci-fuzz.sh @@ -15,7 +15,11 @@ popd cargo install --color always --force honggfuzz --no-default-features sed -i 's/lto = true//' Cargo.toml -HFUZZ_BUILD_ARGS="--features honggfuzz_fuzz" cargo --color always hfuzz build + +export RUSTFLAGS="--cfg=secp256k1_fuzz --cfg=hashes_fuzz" +export HFUZZ_BUILD_ARGS="--features honggfuzz_fuzz" + +cargo --color always hfuzz build for TARGET in src/bin/*.rs; do FILENAME=$(basename $TARGET) FILE="${FILENAME%.*}" @@ -28,7 +32,7 @@ for TARGET in src/bin/*.rs; do HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -N1000000" fi export HFUZZ_RUN_ARGS - HFUZZ_BUILD_ARGS="--features honggfuzz_fuzz" cargo --color always hfuzz run $FILE + 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