2023-04-20 23:51:17 -07:00
|
|
|
#!/usr/bin/env bash
|
2023-08-21 13:18:53 -07:00
|
|
|
set -eo pipefail
|
2023-04-20 23:51:17 -07:00
|
|
|
|
|
|
|
here="$(dirname "$0")"
|
|
|
|
|
|
|
|
#shellcheck source=ci/common/shared-functions.sh
|
|
|
|
source "$here"/../common/shared-functions.sh
|
|
|
|
|
|
|
|
#shellcheck source=ci/common/limit-threads.sh
|
|
|
|
source "$here"/../common/limit-threads.sh
|
|
|
|
|
|
|
|
#shellcheck source=ci/stable/common.sh
|
|
|
|
source "$here"/common.sh
|
|
|
|
|
|
|
|
if need_to_generate_test_result; then
|
|
|
|
_ cargo test --jobs "$JOBS" --workspace --tests --verbose -- -Z unstable-options --format json --report-time | tee results.json
|
|
|
|
else
|
|
|
|
_ ci/intercept.sh cargo test --jobs "$JOBS" --workspace --tests --verbose -- --nocapture
|
|
|
|
fi
|