Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 17234d6

Browse files
committed
Only run system tests for musl
1 parent c3afab4 commit 17234d6

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

ci/run.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ set -ex
99

1010
TARGET=$1
1111

12-
CMD="cargo test \
12+
CMD_="cargo test \
1313
--manifest-path=crates/libm-test/Cargo.toml --all \
14-
--no-default-features \
15-
--target $TARGET "
14+
--no-default-features "
15+
16+
CMD="${CMD} --target ${TARGET}"
1617

1718
$CMD
1819
$CMD --release
@@ -22,8 +23,8 @@ $CMD --release --features 'stable'
2223

2324
if [ "$TARGET" = "x86_64-unknown-linux-gnu" ]; then
2425
export TARGET=x86_64-unknown-linux-musl
25-
26-
$CMD --features 'stable checked system_libm'
27-
$CMD --release --features 'stable checked system_libm'
26+
27+
$CMD_ --target $TARGET --features 'stable checked system_libm'
28+
$CMD_ --target $TARGET --release --features 'stable checked system_libm'
2829
fi
2930

crates/libm-test/tests/system_libm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Compare the results of the `libm` implementation against the system's libm.
22
#![cfg(test)]
3-
//#![cfg(feature = "system_libm")]
3+
#![cfg(feature = "system_libm")]
44

55
use libm_test::WithinUlps;
66

0 commit comments

Comments
 (0)