-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Make cargo test work for bootstrap self test #146595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
bors
merged 20 commits into
rust-lang:master
from
Shourya742:make-cargo-test-work-for-self-test
Sep 26, 2025
Merged
Changes from 14 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
1bc1993
make cargo test work for bootstrap self test
Shourya742 a12969e
walk up the ancestors
Shourya742 6c79f54
add an API in ConfigBuilder to point to config file for toml parsing
Shourya742 d488d33
let verify method run in test settings
Shourya742 ce4604e
remove using default toml config for test in get_toml, we handle it v…
Shourya742 24ed1a0
allow symlinking during test
Shourya742 05131bd
move most of the test to new testCtx
Shourya742 a29474d
this is dicy, whether we have a method to explicitly enable_llvm_over…
Shourya742 0c68c82
rename config_toml to with_default_toml_config
Shourya742 9189bf7
remove create_config_without_ci_llvm_override duplication
Shourya742 671aabd
add dry_run flag in config builder and remove runtime test hacks
Shourya742 afe380d
initialize out with CARGO_TARGET_DIR and then go for manifest and the…
Shourya742 a48cd76
add explicit config assignment when running the test, as the src is a…
Shourya742 33e262e
remove prepare_test_specific_dir and update tests accordingly
Shourya742 6adbb3a
remove explicit target assignment in config during rustc initialization
Shourya742 8a0e380
add check for toml file
Shourya742 83b784f
add comment explaining the test_build_dir
Shourya742 aaa82ae
move config check logic from get_toml to parse_inner
Shourya742 079addf
Ensure that `--build-dir` is always specified in tests
Kobzol 191c7ed
Make `cargo test` work again
Kobzol File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: does https://github.com/rust-lang/rust/tree/master/src/bootstrap#testing need to be updated?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, the documentation needs a lot of updates. Shourya is actually gonna work on that next :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am currently working on this, separate from this PR, I hope to open a PR by next week.