Skip to content

./x test <path_to_test> does not work on msys2 #128328

Open
@jieyouxu

Description

@jieyouxu

Currently, the run-make test suite on windows still can only run in msys2.

When trying to use ./x test <path_to_specific_test> inside the MSYS2 MSYS program, the usual test path/filters that works on other platforms (including outside of msys2 but in powershell or cmd) does not work within MSYS2 MSYS. This is not specific to the run-make test suite, but run-make tests are mentioned because they caused the requirement of msys2 in the first place.

For example, for a test tests/run-make/CURRENT_RUSTC_VERSION:

Examples that doesn't work

These do work outside MSYS2 MSYS on windows (for backslash path separators) and on other platforms, but not within MSYS2 MSYS:

./x test tests/run-make/CURRENT_RUSTC_VERSION
./x test tests\\run-make\\CURRENT_RUSTC_VERSION

This doesn't work in MSYS2 MSYS either

./x test tests\run-make\CURRENT_RUSTC_VERSION

Examples that do work

This incantation does work, but it is annoying to type

./x test run-make --test-args="tests/run-make/CURRENT_RUSTC_VERSION"

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-compiletestArea: The compiletest test runnerA-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to RustC-bugCategory: This is a bug.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.E-needs-investigationCall for partcipation: This issues needs some investigation to determine current statusT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions