This repository was archived by the owner on Apr 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +494
-471
lines changed Expand file tree Collapse file tree 9 files changed +494
-471
lines changed Original file line number Diff line number Diff line change 77 in ` src/lib.rs ` .
88- Write some simple tests in your module (using ` #[test] ` )
99- Run ` cargo test ` to make sure it works
10- - Run ` cargo test --features musl-reference-tests ` to compare your
10+ - Run ` cargo test --features libm-test/ musl-reference-tests ` to compare your
1111 implementation against musl's
1212- Send us a pull request! Make sure to run ` cargo fmt ` on your code before
1313 sending the PR. Also include "closes #42 " in the PR description to close the
@@ -88,7 +88,7 @@ If you'd like to run tests with randomized inputs that get compared against musl
8888itself, you'll need to be on a Linux system and then you can execute:
8989
9090```
91- cargo test --features musl-reference-tests
91+ cargo test --features libm-test/ musl-reference-tests
9292```
9393
9494Note that you may need to pass ` --release ` to Cargo if there are errors related
Original file line number Diff line number Diff line change @@ -19,24 +19,23 @@ default = []
1919# that it should activate any useful Nightly things accordingly.
2020unstable = []
2121
22- # Generate tests which are random inputs and the outputs are calculated with
23- # musl libc.
24- musl-reference-tests = [' rand' ]
25-
2622# Used to prevent using any intrinsics or arch-specific code.
2723force-soft-floats = []
2824
2925[workspace ]
3026members = [
3127 " crates/compiler-builtins-smoke-test" ,
3228 " crates/libm-bench" ,
29+ " crates/libm-test" ,
30+ ]
31+ default-members = [
32+ " ." ,
33+ " crates/libm-test" ,
3334]
3435
3536[dev-dependencies ]
3637no-panic = " 0.1.8"
3738
38- [build-dependencies ]
39- rand = { version = " 0.6.5" , optional = true }
4039
4140# This is needed for no-panic to correctly detect the lack of panics
4241[profile .release ]
You can’t perform that action at this time.
0 commit comments