Reorder tests in run.sh
I do not believe Cargo separately caches crates with different sets of features enabled. So, ensuring that tests run with `unstable-intrinsics` are always grouped should slightly reduce runtime. As an added benefit, all the debug mode tests run first so initial feedback is available faster.
This commit is contained in:
parent
beb34db83d
commit
5e13eeca01
1 changed files with 6 additions and 8 deletions
|
|
@ -75,16 +75,14 @@ if [ "${BUILD_ONLY:-}" = "1" ]; then
|
|||
else
|
||||
cmd="cargo test --all --target $target $extra_flags"
|
||||
|
||||
# Test without intrinsics
|
||||
# Test once without intrinsics, once with intrinsics enabled
|
||||
$cmd
|
||||
$cmd --release
|
||||
|
||||
# Test with intrinsic use
|
||||
$cmd --features unstable-intrinsics
|
||||
$cmd --features unstable-intrinsics --benches
|
||||
|
||||
# Test the same in release mode, which also increases coverage.
|
||||
$cmd --release
|
||||
$cmd --release --features unstable-intrinsics
|
||||
|
||||
# Make sure benchmarks have correct results
|
||||
$cmd --benches
|
||||
$cmd --benches --release
|
||||
$cmd --release --features unstable-intrinsics --benches
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue