]> git.bitcoin.ninja Git - dnssec-prover/commitdiff
Fix fuzz test build
authorMatt Corallo <git@bluematt.me>
Tue, 9 Jul 2024 21:01:36 +0000 (21:01 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 9 Jul 2024 21:11:12 +0000 (21:11 +0000)
fuzz/src/parse_stream_validate.rs
test.sh

index 301a50cf4822b1b7b609c176184ebf7b83e587e4..f0a1083e02ef81ab35c403d6ae6981d513499792 100644 (file)
@@ -67,7 +67,7 @@ fn run_test_cases() {
                        let path = test.unwrap().path();
                        fs::File::open(&path).unwrap().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 e2f7039b35c139f44588c3778ca12545544d68d4..0ffe7052727ccd41aa962a1cdd8a5eab654db34c 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -24,5 +24,6 @@ cargo build --bin http_proof_gen --features build_server
 cargo doc --features std,tokio,validation
 cd fuzz
 RUSTFLAGS="$RUSTFLAGS --cfg=fuzzing" RUSTC_BOOTSTRAP=1 cargo build --features stdin_fuzz
+RUSTFLAGS="$RUSTFLAGS --cfg=fuzzing" RUSTC_BOOTSTRAP=1 cargo test
 cd ../bench
 RUSTFLAGS="$RUSTFLAGS --cfg=dnssec_validate_bench" cargo bench