@@ -10,31 +10,31 @@ if [ -f Cargo.toml ]; then
1010 " $dir /pre-commit"
1111
1212 # Ensure that the public API works.
13- cargo test -r - -doc
13+ cargo test --doc
1414
1515 # Ensure that no_std build succeeds.
1616 # Build for a target that has no std available.
1717 if command -v rustup > /dev/null; then
1818 rustup target add thumbv7m-none-eabi
19- (cd tests/ensure_no_std; cargo build -r --target thumbv7m-none-eabi --no-default-features --features opa-no-std )
19+ (cd tests/ensure_no_std; cargo build -r --target thumbv7m-none-eabi)
2020 fi
2121
2222 # Ensure that we can build with only std.
23- cargo build -r - -example regorus --no-default-features --features std
23+ cargo build --example regorus --no-default-features --features std
2424
2525 # Ensure that we can build with all features.
26- cargo build -r - -all-features
26+ cargo build --all-features
2727
2828 # Ensure that all tests pass.
29- cargo test -r
30- cargo test -r - -test aci
31- cargo test -r - -test kata
29+ cargo test
30+ cargo test --test aci
31+ cargo test --test kata
3232
3333 # Ensure that all tests pass with extensions
34- cargo test -r - -features rego-extensions
35- cargo test -r - -test aci --features rego-extensions
36- cargo test -r - -test kata --features rego-extensions
34+ cargo test --features rego-extensions
35+ cargo test --test aci --features rego-extensions
36+ cargo test --test kata --features rego-extensions
3737
3838 # Ensure that OPA conformance tests don't regress.
39- cargo test -r - -features opa-testutil,serde_json/arbitrary_precision,rego-extensions --test opa -- $( tr ' \n' ' ' < tests/opa.passing)
39+ cargo test --features opa-testutil,serde_json/arbitrary_precision,rego-extensions --test opa -- $( tr ' \n' ' ' < tests/opa.passing)
4040fi
0 commit comments