Skip to content

Commit

Permalink
Move musl-reference-tests to a new libm-test crate
Browse files Browse the repository at this point in the history
There isn't any reason for this feature to be exposed or part of the
build script. Move it to a separate crate.

We will also want more tests that require some support functions; this
will create a place for them.
  • Loading branch information
tgross35 committed Oct 5, 2024
1 parent 9c2dee9 commit aa5c309
Show file tree
Hide file tree
Showing 8 changed files with 491 additions and 469 deletions.
11 changes: 5 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,23 @@ default = []
# that it should activate any useful Nightly things accordingly.
unstable = []

# Generate tests which are random inputs and the outputs are calculated with
# musl libc.
musl-reference-tests = ['rand']

# Used to prevent using any intrinsics or arch-specific code.
force-soft-floats = []

[workspace]
members = [
"crates/compiler-builtins-smoke-test",
"crates/libm-bench",
"crates/libm-test",
]
default-members = [
".",
"crates/libm-test",
]

[dev-dependencies]
no-panic = "0.1.8"

[build-dependencies]
rand = { version = "0.6.5", optional = true }

# This is needed for no-panic to correctly detect the lack of panics
[profile.release]
Expand Down
Loading

0 comments on commit aa5c309

Please sign in to comment.