-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a nextest compatibility check to GitHub Actions CI.
- Loading branch information
1 parent
326d476
commit 5bcec81
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
set -ex -o pipefail | ||
|
||
CARGO=${CARGO:-cargo} | ||
|
||
cd "$(git rev-parse --show-toplevel)" | ||
|
||
echo "Checking benches/bench_main..." | ||
|
||
$CARGO nextest list --benches --message-format json > target/nextest-list.json | ||
testcases_len=$(jq '."rust-suites"."criterion::bench/bench_main".testcases | length' target/nextest-list.json) | ||
if [ "$testcases_len" != "38" ]; then | ||
echo "Expected 38 testcases, got $testcases_len" | ||
exit 1 | ||
fi | ||
|
||
$CARGO nextest run --benches |