compiletest: don't require -- to pass our specific flags. (#523)

* docs: removed outdated `cargo compiletest -- --clean` instructions.

* compiletest: don't require `--` to pass our specific flags.
This commit is contained in:
Eduard-Mihai Burtescu 2021-03-22 16:37:55 +02:00 committed by GitHub
parent 872e06257f
commit b3c04e5951
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 14 deletions

View File

@ -4,4 +4,4 @@
rustflags = "-C prefer-dynamic"
[alias]
compiletest = "run --release -p compiletests"
compiletest = "run --release -p compiletests --"

View File

@ -21,19 +21,9 @@ You will occassionally need to "bless" the output from UI tests to update the
normalised output, you can do this by passing a `--bless` flag to
`cargo compiletest`.
``
cargo compiletest -- --bless
``
### Caching Tests
`cargo compiletest` by default caches the build output for dependencies of test
cases such as `spirv-std` and `glam`. If you need to compile from a fresh source
you can pass the `--clean` flag to build from scratch.
``
cargo compiletest -- --clean
``
```bash
cargo compiletest --bless
```
[`compiletest`]: https://github.com/laumann/compiletest-rs
[rustc-dev-guide]: https://rustc-dev-guide.rust-lang.org/tests/intro.html