Skip to content

Integrate stdarch tests for aarch64#1667

Open
CathalMullan wants to merge 1 commit into
rust-lang:mainfrom
CathalMullan:stdarch
Open

Integrate stdarch tests for aarch64#1667
CathalMullan wants to merge 1 commit into
rust-lang:mainfrom
CathalMullan:stdarch

Conversation

@CathalMullan

Copy link
Copy Markdown
Contributor

Had a go at wiring up stdarch. Runs the core_arch and intrinsic-test test suites.

Looked into x86 as well. It had more hard errors to resolve up front, so opted to stick with aarch64 for now.

The skip mechanism for these may be a little cumbersome to maintain.
Maybe making the tests opt-in rather than opt-out would be the better approach?

Comment thread build_system/tests.rs Outdated
@bjorn3

bjorn3 commented Jun 23, 2026

Copy link
Copy Markdown
Member

Maybe making the tests opt-in rather than opt-out would be the better approach?

Yeah, I think that would work better. Aside from currently being a shorter list, it also avoids mistakenly thinking a new failing test got added that can be disabled just fine rather than an existing test now failing.

@rustbot

rustbot commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@CathalMullan

Copy link
Copy Markdown
Contributor Author

Now uses rust-src for the stdarch tests.

Switching from opt-out to opt-in will require some upstream work in stdarch. It only supports STDARCH_TEST_SKIP_FUNCTION / --skip, no mechanism to only run a subset of tests.

The opt-in lists would likely be longer than the existing skip lists fwiw.

Comment thread build_system/tests.rs Outdated
Comment thread build_system/tests.rs
Comment on lines +374 to +377
let mut lockfile_cmd = Command::new(&runner.target_compiler.cargo);
lockfile_cmd.arg("generate-lockfile");
lockfile_cmd.arg("--manifest-path").arg(STDARCH_RUST_PROGRAMS.manifest_path(&runner.dirs));
spawn_and_wait(lockfile_cmd);

@bjorn3 bjorn3 Jul 2, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please instead put the lockfile in the patches directory of this repo and copy it over.

View changes since the review

@CathalMullan CathalMullan Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the lockfile of the generated workspace, which I assumed would change too often. Maybe it's stable enough to manage via a patch.

Mentions generated packages like:

[[package]]
name = "mod_9"
version = "0.1.0"
dependencies = [
 "cc",
 "core_arch",
]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rustbot

rustbot commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

☔ The latest upstream changes (possibly #1666) made this pull request unmergeable. Please resolve the merge conflicts.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants