From: Matt Corallo Date: Mon, 4 Mar 2024 02:30:11 +0000 (+0000) Subject: Test fuzzers build and release build in test.sh X-Git-Tag: v0.5.4~33 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=0cb8542f64a3935f8670fd1651e03643f69b9283;p=dnssec-prover Test fuzzers build and release build in test.sh --- diff --git a/fuzz/src/parse_stream_validate.rs b/fuzz/src/parse_stream_validate.rs index 48fc259..301a50c 100644 --- a/fuzz/src/parse_stream_validate.rs +++ b/fuzz/src/parse_stream_validate.rs @@ -52,7 +52,7 @@ fn main() { let mut data = Vec::with_capacity(8192); std::io::stdin().read_to_end(&mut data).unwrap(); - let _ = parse_rr_stream(data).as_ref() + let _ = parse_rr_stream(&data).as_ref() .map(|rrs| verify_rr_stream(rrs)); } diff --git a/test.sh b/test.sh index dc1245c..0da6120 100755 --- a/test.sh +++ b/test.sh @@ -12,5 +12,8 @@ cargo build --lib --features std cargo build --lib --features tokio cargo build --lib --features validation cargo build --lib --features std,tokio,validation +cargo build --lib --features std,tokio,validation --release cargo build --bin http_proof_gen --features build_server cargo doc --features std,tokio,validation +cd fuzz +RUSTFLAGS=--cfg=fuzzing RUSTC_BOOTSTRAP=1 cargo build --features stdin_fuzz