-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
9 additions
and
2 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 |
---|---|---|
|
@@ -46,6 +46,11 @@ if [ "$CPU_OPT" = "1" ]; then | |
echo "Enable cpu optimization with host RUSTFLAGS" | ||
fi | ||
|
||
# install cargo-nextest if not installed | ||
if ! cargo nextest --version >/dev/null 2>&1; then | ||
cargo install [email protected] --locked | ||
fi | ||
|
||
# NATIVE | ||
if [ -z "$1" ] || [ "$1" == "native" ]; then | ||
if [ -n "${CLIPPY}" ]; then | ||
|
@@ -56,15 +61,15 @@ if [ -z "$1" ] || [ "$1" == "native" ]; then | |
cargo build ${FLAGS} -F $TASKDB | ||
else | ||
echo "Building native tests" | ||
cargo test ${FLAGS} --no-run -F $TASKDB | ||
cargo nextest run ${FLAGS} --no-run -F $TASKDB | ||
fi | ||
else | ||
if [ -z "${TEST}" ]; then | ||
echo "Running native prover" | ||
cargo run ${FLAGS} -F $TASKDB | ||
else | ||
echo "Running native tests" | ||
cargo test ${FLAGS} -F $TASKDB | ||
cargo nextest run ${FLAGS} -F $TASKDB | ||
fi | ||
fi | ||
fi | ||
|