Fixes #141
This commit is contained in:
parent
a819c74358
commit
4412b726d2
|
|
@ -266,13 +266,16 @@ you can even run the resulting program. Just add one of the following
|
||||||
### Editing and updating the reference files
|
### Editing and updating the reference files
|
||||||
|
|
||||||
If you have changed the compiler's output intentionally, or you are
|
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
|
making a new test, you can pass `--bless` to the test subcommand. E.g.
|
||||||
update the references. When you run the test framework, it will report
|
if some tests in `src/test/ui` are failing, you can run
|
||||||
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
|
./x.py test --stage 1 src/test/ui --bless
|
||||||
also just run `ui/update-all-references.sh`. In both cases, you can run
|
```
|
||||||
the script with `--help` to get a help message.
|
|
||||||
|
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
|
### Normalization
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue