Provide sources for the EC math and use a faster double algorithm
[dnssec-prover] / test.sh
diff --git a/test.sh b/test.sh
index dc1245c35e13d5ec3297671b8db68bf840ab3011..b55143a235e749f0de5e0269aaceb7981668c194 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -1,5 +1,12 @@
 #!/bin/sh
 set -eox
+
+RUSTC_MINOR_VERSION=$(rustc --version | awk '{ split($2,a,"."); print a[2] }')
+if [ "$RUSTC_MINOR_VERSION" = 63 ]; then
+       export RUSTC_BOOTSTRAP=1
+       export RUSTFLAGS=--cfg=rust_1_63
+fi
+
 cargo test --no-default-features
 cargo test
 cargo test --no-default-features --features std
@@ -12,5 +19,10 @@ 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
+cd ../bench
+RUSTFLAGS="--cfg=dnssec_validate_bench" cargo bench