diff options
| author | Oliver Schneider <oli-obk@users.noreply.github.com> | 2018-05-23 11:55:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-23 11:55:16 +0200 |
| commit | 03a905fa14b26c6590d7d86a8ff97660c064badd (patch) | |
| tree | 31623c4b934c9867beb94f7d79b00e71460c3dfe /src/doc/rustc-dev-guide | |
| parent | d6df2a2f92b17a367d771ff3f89592250663023f (diff) | |
| download | rust-03a905fa14b26c6590d7d86a8ff97660c064badd.tar.gz rust-03a905fa14b26c6590d7d86a8ff97660c064badd.zip | |
Fixes #141
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/tests/adding.md | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/doc/rustc-dev-guide/src/tests/adding.md b/src/doc/rustc-dev-guide/src/tests/adding.md index 96fc0cf846d..16e4982b087 100644 --- a/src/doc/rustc-dev-guide/src/tests/adding.md +++ b/src/doc/rustc-dev-guide/src/tests/adding.md @@ -266,13 +266,16 @@ you can even run the resulting program. Just add one of the following ### Editing and updating the reference files If you have changed the compiler's output intentionally, or you are -making a new test, you can use the script `ui/update-references.sh` to -update the references. When you run the test framework, it will report -various errors: in those errors is a command you can use to run the -`ui/update-references.sh` script, which will then copy over the files -from the build directory and use them as the new reference. You can -also just run `ui/update-all-references.sh`. In both cases, you can run -the script with `--help` to get a help message. +making a new test, you can pass `--bless` to the test subcommand. E.g. +if some tests in `src/test/ui` are failing, you can run + +``` +./x.py test --stage 1 src/test/ui --bless +``` + +to automatically adjust the `.stderr`, `.stdout` or `.fixed` files of +all tests. Of course you can also target just specific tests with the +`--test-args your_test_name` flag, just like when running the tests. ### Normalization |
