Skip to content

Allow bootstrap to use custom test runner commands #110537

Closed

Description

@adamgemmell

Currently it's quite involved to run x.py test for a target other than the host - often you're forced to use the remote-test-server running in the specified environment. This is sometimes required to bless platform-specific UI tests.

This workflow could be made easier for contributors with a feature similar to cargo's runner option which runs executables with the specified command. For example, in order to execute aarch64-only tests, the workflow for x86-unknown-linux-gnu developers could simply be:

  • Install qemu and a cross-compilation system package
  • Set this option to qemu-aarch64 -L /usr/aarch64-linux-gnu (or another libc location)
  • Run x.py test --target aarch64-unknown-linux-gnu

More discussion here

Activity

  1. added
    T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
    on Apr 19, 2023
  2. added
    A-testsuiteArea: The testsuite used to check the correctness of rustc
    C-enhancementCategory: An issue proposing an enhancement or a PR with one.
    A-crossArea: Cross compilation
    A-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to Rust
    on Apr 20, 2023
  3. self-assigned this
    on Nov 8, 2023
  4. adamgemmell commented on Sep 24, 2026

    @adamgemmell
    ContributorAuthor

    Done in #122108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to RustA-crossArea: Cross compilationA-testsuiteArea: The testsuite used to check the correctness of rustcC-enhancementCategory: An issue proposing an enhancement or a PR with one.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