Skip to content

compiletest: Support aux-bin with cross compilation #124361

Open
@Enselic

Description

@Enselic

Step-by-step

  1. src/ci/docker/run.sh --dev armhf-gnu
  2. ../x test --target arm-unknown-linux-gnueabihf tests/ui/compiletest-self-test/test-aux-bin.rs

(Watch out for the problem fixed in #124359.)

Expected

The test is run through the existing remote-test-client / remote-test-server mechanism and passes.

Actual

It is ignored because aux-bin does not work for this case yet:

running 1 tests
test [ui] tests/ui/compiletest-self-test/test-aux-bin.rs ... ignored, ignored when cross-compiling (because aux-bin does not yet support it)

The problem

The problem is simply that the existing remote-test-client / remote-test-server mechanism has not been taught how to deal with aux-bin files.

Compare with

If you run the test without cross compilation it works:

$ ./x test tests/ui/compiletest-self-test/test-aux-bin.rs
running 1 tests
test [ui] tests/ui/compiletest-self-test/test-aux-bin.rs ... ok

Other info

I was asked here to file this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-compiletestArea: The compiletest test runnerA-crossArea: Cross compilationA-testsuiteArea: The testsuite used to check the correctness of rustcC-enhancementCategory: An issue proposing an enhancement or a PR with one.E-hardCall for participation: Hard difficulty. Experience needed to fix: A lot.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions