File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,23 @@ Under the hood, the test runner invokes the standard rust test runner
108108filtering 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
113130You can further enable the ` --incremental ` flag to save additional
You can’t perform that action at this time.
0 commit comments