Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 1 addition & 16 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 24 additions & 0 deletions ci/run-extensive.sh
Original file line number Diff line number Diff line change
@@ -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