ci: Fix extensive tests
Move this to a script and ensure only `libm-test` gets built to avoid default feature issues with `compiler-builtins`.
This commit is contained in:
parent
913796c1c5
commit
13b94cf89f
2 changed files with 25 additions and 16 deletions
|
|
@ -318,22 +318,7 @@ jobs:
|
|||
rustup default nightly
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Run extensive tests
|
||||
run: |
|
||||
echo "Tests to run: '$TO_TEST'"
|
||||
if [ -z "$TO_TEST" ]; then
|
||||
echo "No tests to run, exiting."
|
||||
exit
|
||||
fi
|
||||
|
||||
set -x
|
||||
|
||||
# Run the non-extensive tests first to catch any easy failures
|
||||
cargo t --profile release-checked -- "$TO_TEST"
|
||||
|
||||
LIBM_EXTENSIVE_TESTS="$TO_TEST" cargo test \
|
||||
--features build-mpfr,unstable,force-soft-floats \
|
||||
--profile release-checked \
|
||||
-- extensive
|
||||
run: ./ci/run-extensive.sh
|
||||
- name: Print test logs if available
|
||||
run: if [ -f "target/test-log.txt" ]; then cat target/test-log.txt; fi
|
||||
shell: bash
|
||||
|
|
|
|||
24
library/compiler-builtins/ci/run-extensive.sh
Executable file
24
library/compiler-builtins/ci/run-extensive.sh
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
echo "Tests to run: '$TO_TEST'"
|
||||
|
||||
if [ -z "$TO_TEST" ]; then
|
||||
echo "No tests to run, exiting."
|
||||
exit
|
||||
fi
|
||||
|
||||
set -x
|
||||
|
||||
test_cmd=(
|
||||
cargo test
|
||||
--package libm-test
|
||||
--features "build-mpfr,libm/unstable,libm/force-soft-floats"
|
||||
--profile release-checked
|
||||
)
|
||||
|
||||
# Run the non-extensive tests first to catch any easy failures
|
||||
"${test_cmd[@]}" -- "$TO_TEST"
|
||||
|
||||
LIBM_EXTENSIVE_TESTS="$TO_TEST" "${test_cmd[@]}" -- extensive
|
||||
Loading…
Add table
Add a link
Reference in a new issue