about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2019-07-12 11:44:03 +0900
committerWho? Me?! <mark-i-m@users.noreply.github.com>2019-07-17 10:33:16 -0500
commit72ef7f9094f0652798c729f760baf278500198cc (patch)
treebb8c2320ad73ebb0a85a385dd12247996c3c8fd0 /src/doc/rustc-dev-guide
parentbbcbfc70625f8cdea13b1e74978e98513fc60066 (diff)
Document `--pass $mode`
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/tests/running.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/doc/rustc-dev-guide/src/tests/running.md b/src/doc/rustc-dev-guide/src/tests/running.md
index 5a05c156f92..01d308f0b92 100644
--- a/src/doc/rustc-dev-guide/src/tests/running.md
+++ b/src/doc/rustc-dev-guide/src/tests/running.md
@@ -108,6 +108,23 @@ Under the hood, the test runner invokes the standard rust test runner
 filtering for tests that include "issue-1234" in the name. (Thus
 `--test-args` is a good way to run a collection of related tests.)
 
+## Passing `--pass $mode`
+
+Pass UI tests now have three modes, `check-pass`, `build-pass` and
+`run-pass`. When `--pass $mode` is passed, these tests will be forced
+to run under the given `$mode` unless the directive `// ignore-pass`
+exists in the test file. For example, you can run all the tests in
+`src/test/run-pass` as `check-pass`:
+
+```bash
+> ./x.py test --stage 1 src/test/run-pass --pass check
+```
+
+By passing `--pass $mode`, you can reduce the testing time. For each
+mode, please see [here][mode].
+
+[mode]: https://rust-lang.github.io/rustc-guide/tests/adding.html#tests-that-do-not-result-in-compile-errors
+
 ## Using incremental compilation
 
 You can further enable the `--incremental` flag to save additional