]> git.bitcoin.ninja Git - dnssec-prover/commitdiff
Test fuzzers build and release build in test.sh
authorMatt Corallo <git@bluematt.me>
Mon, 4 Mar 2024 02:30:11 +0000 (02:30 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 3 Apr 2024 09:14:24 +0000 (09:14 +0000)
fuzz/src/parse_stream_validate.rs
test.sh

index 48fc259b2a2cdb714d274fdc1335886f932716cd..301a50cf4822b1b7b609c176184ebf7b83e587e4 100644 (file)
@@ -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 dc1245c35e13d5ec3297671b8db68bf840ab3011..0da6120ccb329c6ea0b5491fa397e59554d0e3e9 100755 (executable)
--- 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