rust-lang / rust-lang/rust

compiletest: Support aux-bin with cross compilation

Open
#124,361 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

A-compiletest A-cross A-testsuite C-enhancement E-hard T-bootstrap
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

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 https://github.com/rust-lang/rust/pull/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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/ci/docker/run.sh --dev armhf-gnu and reproduce the issue using ../x test --target arm-unknown-linux-gnueabihf tests/ui/compiletest-self-test/test-aux-bin.rs. Read the compiletest remote-test-client and remote-test-server handling alongside tests/ui/compiletest-self-test/test-aux-bin.rs. Done means the test runs through that mechanism and passes instead of being ignored during cross compilation.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.