run_all_tests 928 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. # cd into the directory containing this script (from the bash faq 028)
  3. if [[ $BASH_SOURCE = */* ]]; then
  4. cd -- "${BASH_SOURCE%/*}/" || exit
  5. fi
  6. # All of the crates and workspaces
  7. CRATES="spongefish spongefish/spongefish sigma-proofs
  8. sigma-compiler sigma-compiler/sigma-compiler-derive
  9. sigma-compiler/sigma-compiler-core cmz cmz/cmz-derive cmz/cmz-core
  10. application-ooni"
  11. cd ..
  12. for c in $CRATES; do
  13. (cd $c && cargo test --release) || exit 1
  14. done
  15. # The Lox tests need extra feature flags
  16. (cd application-lox/crates/lox-distributor && cargo test --release --features=test-branch) || exit 1
  17. (cd application-lox-zkp/crates/lox-distributor && cargo test --release --features=test-branch) || exit 1
  18. (cd application-lox/crates/lox-extensions && cargo test --release --features=bridgeauth,test) || exit 1
  19. (cd application-lox-zkp/crates/lox-library && cargo test --release --features=bridgeauth) || exit 1