Skip to content

Commit 89b5291

Browse files
committed
Auto merge of #116508 - RalfJung:miri, r=RalfJung
Miri subtree update r? `@ghost`
2 parents c7e27e3 + b02a8a9 commit 89b5291

File tree

88 files changed

+2341
-1803
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+2341
-1803
lines changed

CONTRIBUTING.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,12 @@ and you can (cross-)run the entire test suite using:
7171
MIRI_TEST_TARGET=i686-unknown-linux-gnu ./miri test
7272
```
7373

74-
If your target doesn't support libstd, you can run miri with
74+
If your target doesn't support libstd that should usually just work. However, if you are using a
75+
custom target file, you might have to set `MIRI_NO_STD=1`.
7576

76-
```
77-
MIRI_NO_STD=1 MIRI_TEST_TARGET=thumbv7em-none-eabihf ./miri test tests/fail/alloc/no_global_allocator.rs
78-
MIRI_NO_STD=1 ./miri run tests/pass/no_std.rs --target thumbv7em-none-eabihf
79-
```
80-
81-
to avoid attempting (and failing) to build libstd. Note that almost no tests will pass
82-
this way, but you can run individual tests.
83-
84-
`./miri test FILTER` only runs those tests that contain `FILTER` in their
85-
filename (including the base directory, e.g. `./miri test fail` will run all
86-
compile-fail tests).
77+
`./miri test FILTER` only runs those tests that contain `FILTER` in their filename (including the
78+
base directory, e.g. `./miri test fail` will run all compile-fail tests). These filters are passed
79+
to `cargo test`, so for multiple filers you need to use `./miri test -- FILTER1 FILTER2`.
8780

8881
You can get a trace of which MIR statements are being executed by setting the
8982
`MIRI_LOG` environment variable. For example:

0 commit comments

Comments
 (0)