Skip to content

Commit

Permalink
only run tests once
Browse files Browse the repository at this point in the history
  • Loading branch information
lemunozm committed Jul 6, 2023
1 parent 1ee1210 commit 7c3289f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions scripts/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,27 @@ do
fi

cargo_action check $crate
cargo_action test $crate
cargo_action test $crate --no-run

if [[ "$crate" == "proofs" ]]; then
# proofs does not have either try-runtime or runtime-benchmarks features
continue
fi

cargo_action check $crate "-F runtime-benchmarks"
cargo_action test $crate "-F runtime-benchmarks"
cargo_action test $crate "-F runtime-benchmarks" --no-run

if [[ "$crate" == "runtime-integration-test" ]]; then
# runtime-integration-test does not have try-runtime feature
continue
fi

cargo_action check $crate "-F try-runtime"
cargo_action test $crate "-F try-runtime"
cargo_action test $crate "-F try-runtime" --no-run

cargo_action check $crate "-F runtime-benchmarks,try-runtime"
cargo_action test $crate "-F runtime-benchmarks,try-runtime"
cargo_action test $crate "-F runtime-benchmarks,try-runtime" --no-run
done

# Run all tests all
cargo test -w -F runtime-benchmarks,try-runtime

0 comments on commit 7c3289f

Please sign in to comment.