Skip to content

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FractalFir
Copy link
Contributor

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 call cargo test with the selected environment flags.

For now ./y.sh test --cargo-tests ignores RUSTFLAGS.

Normally, RUSTFLAGS contain the -Zcodegen-backend option, which would make cg_gcc rebuild itself. This is undesirable, and ignoring RUSTFLAGS altogether was simply the easiest option.

In the future, we maybe could filter out -Zcodegen-backend, and keep the rest of the flags intact.

Copy link
Contributor

@antoyo antoyo left a 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?

Copy link
Contributor

@antoyo antoyo left a 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!

Copy link
Contributor

@antoyo antoyo left a 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));
Copy link
Contributor

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?

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.

2 participants