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 7
7
in ` src/lib.rs ` .
8
8
- Write some simple tests in your module (using ` #[test] ` )
9
9
- 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
11
11
implementation against musl's
12
12
- Send us a pull request! Make sure to run ` cargo fmt ` on your code before
13
13
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
88
88
itself, you'll need to be on a Linux system and then you can execute:
89
89
90
90
```
91
- cargo test --features musl-reference-tests
91
+ cargo test --features libm-test/ musl-reference-tests
92
92
```
93
93
94
94
Note 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 = []
19
19
# that it should activate any useful Nightly things accordingly.
20
20
unstable = []
21
21
22
- # Generate tests which are random inputs and the outputs are calculated with
23
- # musl libc.
24
- musl-reference-tests = [' rand' ]
25
-
26
22
# Used to prevent using any intrinsics or arch-specific code.
27
23
force-soft-floats = []
28
24
29
25
[workspace ]
30
26
members = [
31
27
" crates/compiler-builtins-smoke-test" ,
32
28
" crates/libm-bench" ,
29
+ " crates/libm-test" ,
30
+ ]
31
+ default-members = [
32
+ " ." ,
33
+ " crates/libm-test" ,
33
34
]
34
35
35
36
[dev-dependencies ]
36
37
no-panic = " 0.1.8"
37
38
38
- [build-dependencies ]
39
- rand = { version = " 0.6.5" , optional = true }
40
39
41
40
# This is needed for no-panic to correctly detect the lack of panics
42
41
[profile .release ]
You can’t perform that action at this time.
0 commit comments