-
Notifications
You must be signed in to change notification settings - Fork 76
modifed y.sh to allow for running cargo tests. #669
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
base: master
Are you sure you want to change the base?
Conversation
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.
Good job!
Could you please update the doc and the CI to use this new command instead of cargo test
?
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 like how you add a lot of comments.
Thanks!
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.
This looks good!
@@ -42,7 +42,7 @@ fn get_runners() -> Runners { | |||
); | |||
runners.insert("--extended-regex-tests", ("Run extended regex tests", extended_regex_tests)); | |||
runners.insert("--mini-tests", ("Run mini tests", mini_tests)); | |||
|
|||
runners.insert("--cargo-tests", ("Run cargo tests", cargo_tests)); |
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.
As a reminder:
Could you please update the doc and the CI to use this new command instead of cargo test?
Added a new option to
./y.sh test
:./y.sh test --cargo-tests
.When this option is selected,
y.sh
will build & test minicore(it is a dependency). After that, it will simply callcargo test
with the selected environment flags.For now
./y.sh test --cargo-tests
ignoresRUSTFLAGS
.Normally,
RUSTFLAGS
contain the-Zcodegen-backend
option, which would makecg_gcc
rebuild itself. This is undesirable, and ignoringRUSTFLAGS
altogether was simply the easiest option.In the future, we maybe could filter out
-Zcodegen-backend
, and keep the rest of the flags intact.