Skip to content

Commit eb7ea4c

Browse files
committed
Auto merge of rust-lang#2387 - RalfJung:ui-readme, r=oli-obk
update ui_test readme I forgot to do that when changing the ignore/only syntax.
2 parents 220df5f + 04b66ce commit eb7ea4c

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

ui_test/README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@ In order to change how a single test is tested, you can add various `//@` commen
2323
Any other comments will be ignored, and all `//@` comments must be formatted precisely as
2424
their command specifies, or the test will fail without even being run.
2525

26-
* `//@ignore-XXX` avoids running the test on targets whose triple contains `XXX`
27-
* `XXX` can also be one of `64bit`, `32bit` or `16bit`
28-
* `XXX` can also be `on-host`, which will only run the test during cross compilation testing.
29-
* `//@only-XXX` avoids running the test on targets whose triple **does not** contain `XXX`
30-
* `XXX` can also be one of `64bit`, `32bit` or `16bit`
31-
* `XXX` can also be `on-host`, which will not run the test during cross compilation testing
26+
* `//@ignore-C` avoids running the test when condition `C` is met.
27+
* `C` can be `target-XXX`, which checks whether the target triple contains `XXX`.
28+
* `C` can also be one of `64bit`, `32bit` or `16bit`.
29+
* `C` can also be `on-host`, which will only run the test during cross compilation testing.
30+
* `//@only-C` **only** runs the test when condition `C` is met. The conditions are the same as with `ignore`.
3231
* `//@stderr-per-bitwidth` produces one stderr file per bitwidth, as they may differ significantly sometimes
3332
* `//@error-pattern: XXX` make sure the stderr output contains `XXX`
3433
* `//@revisions: XXX YYY` runs the test once for each space separated name in the list
@@ -46,5 +45,5 @@ their command specifies, or the test will fail without even being run.
4645

4746
## Significant differences to compiletest-rs
4847

49-
* `ignore-*` and `only-*` opereate solely on the triple, instead of supporting things like `macos`
48+
* `ignore-target-*` and `only-target-*` opereate solely on the triple, instead of supporting things like `macos`
5049
* only `//~` comments can be individualized per revision

0 commit comments

Comments
 (0)