Skip to content

Commit

Permalink
Improve 'Running tests manually' section
Browse files Browse the repository at this point in the history
  • Loading branch information
rukai authored and jyn514 committed Nov 27, 2021
1 parent c4776cb commit 2cee5a9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/building/how-to-build-and-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@ host: x86_64-unknown-linux-gnu
release: 1.48.0-dev
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

Here are a few other useful `x.py` commands. We'll cover some of them in detail
Expand Down
6 changes: 4 additions & 2 deletions src/tests/running.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,10 @@ however compare-modes must be manually run individually via the `--compare-mode`

## Running tests manually

Sometimes it's easier and faster to just run the test by hand. Most tests are
just `rs` files, so you can do something like
Sometimes it's easier and faster to just run the test by hand.
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
rustc +stage1 src/test/ui/issue-1234.rs
Expand Down

0 comments on commit 2cee5a9

Please sign in to comment.