Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 5fb644f

Browse files
committed
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.
1 parent 5dea7fc commit 5fb644f

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

ci/run.sh

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,14 @@ if [ "${BUILD_ONLY:-}" = "1" ]; then
7575
else
7676
cmd="cargo test --all --target $target $extra_flags"
7777

78-
# Test without intrinsics
78+
# Test once without intrinsics, once with intrinsics enabled
7979
$cmd
80-
$cmd --release
81-
82-
# Test with intrinsic use
8380
$cmd --features unstable-intrinsics
81+
$cmd --features unstable-intrinsics --benches
82+
83+
# Test the same in release mode, which also increases coverage.
84+
$cmd --release
8485
$cmd --release --features unstable-intrinsics
85-
86-
# Make sure benchmarks have correct results
87-
$cmd --benches
88-
$cmd --benches --release
86+
$cmd --release --features unstable-intrinsics --benches
8987
fi
9088

0 commit comments

Comments
 (0)