Skip to content

Commit fc18a79

Browse files
JohnTitormark-i-m
authored andcommitted
Document --pass $mode
1 parent 596e952 commit fc18a79

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/tests/running.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,23 @@ Under the hood, the test runner invokes the standard rust test runner
108108
filtering for tests that include "issue-1234" in the name. (Thus
109109
`--test-args` is a good way to run a collection of related tests.)
110110

111+
## Passing `--pass $mode`
112+
113+
Pass UI tests now have three modes, `check-pass`, `build-pass` and
114+
`run-pass`. When `--pass $mode` is passed, these tests will be forced
115+
to run under the given `$mode` unless the directive `// ignore-pass`
116+
exists in the test file. For example, you can run all the tests in
117+
`src/test/run-pass` as `check-pass`:
118+
119+
```bash
120+
> ./x.py test --stage 1 src/test/run-pass --pass check
121+
```
122+
123+
By passing `--pass $mode`, you can reduce the testing time. For each
124+
mode, please see [here][mode].
125+
126+
[mode]: https://rust-lang.github.io/rustc-guide/tests/adding.html#tests-that-do-not-result-in-compile-errors
127+
111128
## Using incremental compilation
112129

113130
You can further enable the `--incremental` flag to save additional

0 commit comments

Comments
 (0)