Improve 'Running tests manually' section

This commit is contained in:
Lucas Kent 2021-11-27 16:28:44 +11:00 committed by Joshua Nelson
parent a7abb26bfe
commit 9074afb8da
2 changed files with 9 additions and 2 deletions

View File

@ -212,6 +212,11 @@ host: x86_64-unknown-linux-gnu
release: 1.48.0-dev release: 1.48.0-dev
LLVM version: 11.0 LLVM version: 11.0
``` ```
The rustup toolchain points to the specified toolchain compiled in your `build` directory,
so the rustup toolchain will be updated whenever `x.py build` or `x.py test` are run for
that toolchain/stage.
## Other `x.py` commands ## Other `x.py` commands
Here are a few other useful `x.py` commands. We'll cover some of them in detail Here are a few other useful `x.py` commands. We'll cover some of them in detail

View File

@ -200,8 +200,10 @@ however compare-modes must be manually run individually via the `--compare-mode`
## Running tests manually ## Running tests manually
Sometimes it's easier and faster to just run the test by hand. Most tests are Sometimes it's easier and faster to just run the test by hand.
just `rs` files, so you can do something like Most tests are just `rs` files, so after
[creating a rustup toolchain](/building/how-to-build-and-run.html#creating-a-rustup-toolchain),
you can do something like:
```bash ```bash
rustc +stage1 src/test/ui/issue-1234.rs rustc +stage1 src/test/ui/issue-1234.rs