From 0cb8542f64a3935f8670fd1651e03643f69b9283 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 4 Mar 2024 02:30:11 +0000 Subject: [PATCH] Test fuzzers build and release build in test.sh --- fuzz/src/parse_stream_validate.rs | 2 +- test.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.5