about summary refs log tree commit diff
path: root/tests/ui/compiletest-self-test
AgeCommit message (Collapse)AuthorLines
2025-10-02Forbid `//@ compile-flags: -Cincremental=` in testsZalathar-0/+17
Tests should not try to manually enable incremental compilation with `-Cincremental`, because that typically results in stray directories being created in the repository root. Instead, use the `//@ incremental` directive, which instructs compiletest to handle the details of passing `-Cincremental` with a fresh directory.
2025-09-19Fix test suite in iOS/tvOS/watchOS/visionOS simulatorMads Marquart-0/+1
2025-07-28feat: Right align line numbersScott Schafer-1/+1
2025-06-30Rollup merge of #143118 - Kivooeo:tf15, r=tgross35dianqk-0/+9
`tests/ui`: A New Order [15/N] > [!NOTE] > > Intermediate commits are intended to help review, but will be squashed prior to merge. Some `tests/ui/` housekeeping, to trim down number of tests directly under `tests/ui/`. Part of rust-lang/rust#133895. r? `@jieyouxu`
2025-06-30cleaned up some testsKivooeo-3/+6
2025-06-28Move some UI tests to more apropriate directoriesTrevor Gross-0/+6
Prepare for rework done in the rest of [PR143118]. [PR143118]: https://www.github.com/rust-lang/rust/pull/143118 Co-authored-by: Kivooeo <Kivooeo123@gmail.com>
2025-06-23compiletest: Improve diagnostics for line annotation mismatchesVadim Petrochenkov-0/+103
2025-05-04compiletest: Support matching on non-json lines in compiler outputVadim Petrochenkov-1/+2
and migrate most of remaining `error-pattern`s to it.
2025-04-24Unify the format of rustc cli flagsxizheyin-1/+1
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-04-08compiletest: Trim whitespace from environment variable namesZalathar-0/+23
2024-12-28compiletest: Self-test for `normalize-*` with revisionsZalathar-0/+24
2024-10-31tests/ui: add `minicore` compiletest self-test许杰友 Jieyou Xu (Joe)-0/+20
2024-08-11Update expectationsGeorge Bateman-0/+3
2024-04-07compiletest: properly handle revisioned run-rustfix tests许杰友 Jieyou Xu (Joe)-0/+32
2024-03-25test-aux-bin.rs: Clarify that it is aux-bin that blocks cross-compile run-passMartin Nordholts-1/+1
2024-03-19compiletest: Add support for `//@ aux-bin: foo.rs`Martin Nordholts-0/+12
Which enables ui tests to use auxiliary binaries. See the added self-test for an example.
2024-02-21compiletest: support auxiliaries with auxiliariesDavid Wood-0/+21
To test behaviour that depends on the extern options of intermediate crates, compiletest auxiliaries must have their own auxiliaries. Auxiliary compilation previously did not trigger compilation of any auxiliaries in the auxiliary's headers. In addition, those auxiliaries would need to be in an `auxiliary/auxiliary` directory, which is unnecessary and makes some crate graphs harder to write tests for, such as when A depends on B and C, and B depends on C. For a test `tests/ui/$path/root.rs`, with the following crate graph: ``` root |-- grandparent `-- parent `-- grandparent ``` then the intermediate outputs from compiletest will be: ``` build/$target/test/ui/$path/ |-- auxiliary | |-- libgrandparent.dylib | |-- libparent.dylib | |-- grandparent | | |-- grandparent.err | | `-- grandparent.out | `-- parent | |-- parent.err | `-- parent.out |-- libroot.rmeta |-- root.err `-- root.out ``` Signed-off-by: David Wood <david@davidtw.co>
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-3/+3
2023-01-11Move /src/test to /testsAlbert Larsan-0/+130