Skip to content

Make it possible to use cargo test, not just x.py test #95854

Closed as not planned
Closed as not planned
@jyn514

Description

@jyn514

This sounds harder than it actually is, I think. We already have default-members = ["bootstrap"] in the root Cargo.toml, so we can implement this by adding an integration test in src/bootstrap/tests which calls builder.ensure(test::X) for all possible values of X; ideally we would reuse the logic from x.py test exactly so that cargo test runs all tests, cargo test src/test/ui runs UI tests, etc.

cc #95253 (comment), #94829
@rustbot label +A-rustbuild +C-enhancement

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.E-help-wantedCall for participation: Help is requested to fix this issue.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions