Skip to content

Commit 620bf34

Browse files
committed
Update documentation for miri-script test changes
1 parent 6e564ed commit 620bf34

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/tools/miri/CONTRIBUTING.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,13 @@ For example:
7272

7373
You can (cross-)run the entire test suite using:
7474

75-
```
76-
./miri test
77-
MIRI_TEST_TARGET=i686-unknown-linux-gnu ./miri test
75+
```sh
76+
./miri test --target i686-unknown-linux-gnu
7877
```
7978

8079
`./miri test FILTER` only runs those tests that contain `FILTER` in their filename (including the
81-
base directory, e.g. `./miri test fail` will run all compile-fail tests). These filters are passed
82-
to `cargo test`, so for multiple filters you need to use `./miri test -- FILTER1 FILTER2`.
80+
base directory, e.g. `./miri test fail` will run all compile-fail tests). Multiple filters
81+
are supported: `./miri test FILTER1 FILTER2`.
8382

8483
#### Fine grained logging
8584

src/tools/miri/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ by all intended entry points, i.e. `cargo miri` and `./miri {test,run}`):
464464
setup -- only set this if you do not want to use the automatically created sysroot. When invoking
465465
`cargo miri setup`, this indicates where the sysroot will be put.
466466
* `MIRI_TEST_TARGET` (recognized by `./miri {test,run}`) indicates which target
467-
architecture to test against. `miri` and `cargo miri` accept the `--target` flag for the same
467+
architecture to test against. The `--target` flag may be used for the same
468468
purpose.
469469
* `MIRI_TEST_THREADS` (recognized by `./miri test`): set the number of threads to use for running tests.
470470
By default, the number of cores is used.

0 commit comments

Comments
 (0)