Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: scripts maintenance #620

Merged
merged 2 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions scripts/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ set -e
# We want the code to panic if there is an integer overflow
export RUSTFLAGS="-C overflow-checks=on"

cargo test --release -p jf-utils #-- -Zunstable-options --report-time
cargo test --release -p jf-plonk --lib --bins #-- -Zunstable-options --report-time
cargo test --release -p jf-merkle-tree --features gadgets #-- -Zunstable-options --report-time
cargo test --release -p jf-pcs --features test-srs #-- -Zunstable-options --report-time
cargo test --release -p jf-rescue --features gadgets #-- -Zunstable-options --report-time
cargo test --release -p jf-signature --features "bls, schnorr, gadgets" #-- -Zunstable-options --report-time
cargo test --release -p jf-vdf #-- -Zunstable-options --report-time
cargo test --release -p jf-vid --features test-srs #-- -Zunstable-options --report-time
cargo test --release -p jf-aead #-- -Zunstable-options --report-time
cargo test --release -p jf-elgamal --features gadgets #-- -Zunstable-options --report-time
cargo test --release -p jf-vrf #-- -Zunstable-options --report-time
cargo test --release -p jf-prf #-- -Zunstable-options --report-time
cargo test --release -p jf-crhf #-- -Zunstable-options --report-time
cargo test --release -p jf-commitment #-- -Zunstable-options --report-time
cargo +nightly test --release -p jf-utils -- -Zunstable-options --report-time
cargo +nightly test --release -p jf-plonk --lib --bins -- -Zunstable-options --report-time
cargo +nightly test --release -p jf-merkle-tree --features gadgets -- -Zunstable-options --report-time
cargo +nightly test --release -p jf-pcs --features test-srs -- -Zunstable-options --report-time
cargo +nightly test --release -p jf-rescue --features gadgets -- -Zunstable-options --report-time
cargo +nightly test --release -p jf-signature --features "bls, schnorr, gadgets" -- -Zunstable-options --report-time
cargo +nightly test --release -p jf-vdf -- -Zunstable-options --report-time
cargo +nightly test --release -p jf-vid --features test-srs -- -Zunstable-options --report-time
cargo +nightly test --release -p jf-aead -- -Zunstable-options --report-time
cargo +nightly test --release -p jf-elgamal --features gadgets -- -Zunstable-options --report-time
cargo +nightly test --release -p jf-vrf -- -Zunstable-options --report-time
cargo +nightly test --release -p jf-prf -- -Zunstable-options --report-time
cargo +nightly test --release -p jf-crhf -- -Zunstable-options --report-time
cargo +nightly test --release -p jf-commitment -- -Zunstable-options --report-time
7 changes: 3 additions & 4 deletions scripts/test_coverage.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env nix-shell
#!nix-shell ../nix/nightly.nix -i bash
#!/usr/bin/env bash
set -e
set -o xtrace
IGNORED_FILES="--ignore **/errors.rs\
Expand All @@ -11,7 +10,7 @@ export CARGO_INCREMENTAL=0
export RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Copt-level=3 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests"
export RUSTDOCFLAGS=""
rm -vf ./target/**/*.gcda
cargo build --features "test-srs, gadgets, bls, schnorr"
cargo test --lib --features "test-srs, gadgets, bls, schnorr"
cargo +nightly build --features "test-srs, gadgets, bls, schnorr"
cargo +nightly test --lib --features "test-srs, gadgets, bls, schnorr"
grcov . -s . --binary-path ./target/debug/ -t html --branch --ignore-not-existing $IGNORED_FILES -o ./target/debug/coverage/
echo "Coverage report available at target/debug/coverage/index.html."
Loading