Skip to content

add support for "test revisions" into ui tester #48878

Closed
@nikomatsakis

Description

@nikomatsakis

ui tests do not current support revisions. This blocks our goals to migrate entirely over to unit tests. We should fix it!

I imagine it working like this:

  • For each test T with revisions R1..Rn, we would expect N stderr files:
    • T.Ri.stderr, where Ri is the current revision
  • Comments on lines work as normal (//[Ri]~ ERROR)

However, it might be useful to permit tests to have a "fallback" T.stderr file, in which case the output is supposed to be the same for all revisions. I am of mixed minds about this though: I don't know how often it would be useful, and I fear "dead stderr files" that are not used. Probably best not to have it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testsuiteArea: The testsuite used to check the correctness of rustcE-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions