You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will run the test suite of the standard library of your current toolchain.
18
-
`--lib --tests` means that doc tests are skipped; those should use separate Miri flags as there are some (expected) memory leaks.
19
-
Use `--doc` to run only doc tests.
23
+
It will probably take 1-2h, so if you have specific parts of the standard library you want to test, use the usual `cargo test` filter mechanisms to narrow this down:
24
+
all arguments are passed to `cargo test`, so arguments after `--` are passed to the test runner as usual.
25
+
Doc tests have to be run separately as there are some (expected) memory leaks.
20
26
For `std`, we cannot run *all* tests since they will use networking and file system APIs that we do not support.
21
27
22
28
If you are working on the standard library and want to check that the tests pass with your modifications, set `MIRI_LIB_SRC` to the `library` folder of the checkout you are working in:
@@ -30,12 +36,5 @@ Then the test suite will be compiled from the standard library in that directory
30
36
Make sure that is as close to your rustup default toolchain as possible, as the toolchain will still be used to build that standard library and its test suite.
31
37
If you are getting strange build errors, `cargo clean` can often fix that.
32
38
33
-
`run-test` also accepts parameters that are passed to `cargo test` and the test runner,
34
-
and `MIRIFLAGS` can be used as usual to pass parameters to Miri:
0 commit comments