File tree Expand file tree Collapse file tree 6 files changed +679
-620
lines changed Expand file tree Collapse file tree 6 files changed +679
-620
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ jobs:
266266 - name : Sanity check fuzz targets on Rust ${{ env.TOOLCHAIN }}
267267 run : |
268268 cd fuzz
269- RUSTFLAGS="--cfg=fuzzing --cfg=secp256k1_fuzz --cfg=hashes_fuzz" cargo test --verbose --color always
269+ RUSTFLAGS="--cfg=fuzzing --cfg=secp256k1_fuzz --cfg=hashes_fuzz" cargo test --verbose --color always --lib --bins
270270 cargo clean
271271 - name : Run fuzzers
272272 run : cd fuzz && ./ci-fuzz.sh && cd ..
Original file line number Diff line number Diff line change @@ -13,10 +13,17 @@ rm *_target.rs
1313[ " $( git diff) " != " " ] && exit 1
1414popd
1515
16+ export RUSTFLAGS=" --cfg=secp256k1_fuzz --cfg=hashes_fuzz"
17+
18+ mkdir -p hongfuzz_workspace/full_stack_target/inputs
19+ pushd write-seeds
20+ RUSTFLAGS=" $RUSTFLAGS --cfg=fuzzing" cargo run ../hongfuzz_workspace/full_stack_target/inputs
21+ popd
22+
1623cargo install --color always --force honggfuzz --no-default-features
1724sed -i ' s/lto = true//' Cargo.toml
25+ sed -i ' s/codegen-units = 1//' Cargo.toml
1826
19- export RUSTFLAGS=" --cfg=secp256k1_fuzz --cfg=hashes_fuzz"
2027export HFUZZ_BUILD_ARGS=" --features honggfuzz_fuzz"
2128
2229cargo --color always hfuzz build
You can’t perform that action at this time.
0 commit comments