Skip to content
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

tests: move various supporting code under tests/support #2183

Merged
merged 2 commits into from
Sep 5, 2024

Conversation

rickeylev
Copy link
Contributor

tests: move various supporting code under tests/support

  • Move subject classes under support
  • Switch to using rules_testing DefaultInfo subject
  • Move fake cc toolchains under tests/support/cc_toolchains (these
    are used in several places, not just tests/cc)
  • Make literal references of old //tests/cc locations use the
    constants from support.bzl

This is both for code clarity (support code being in a common location),
but also to make it easier to import the support code for the subset
of tests Google imports and runs.

* Move subject classes under support
* Switch to using rules_testing DefaultInfo subject
* Move fake cc toolchains under tests/support/cc_toolchains (these
  are used in several places, not just tests/cc)
* Make literal references of old //tests/cc locations use the
  constants from support.bzl

This is both for code clarity (support code being in a common location),
but also to make it easier to import the support code for the subset
of tests Google imports and runs.
@rickeylev rickeylev added this pull request to the merge queue Sep 5, 2024
Merged via the queue into bazelbuild:main with commit 612baef Sep 5, 2024
4 checks passed
@rickeylev rickeylev deleted the refactor.mv.test.cc.toolchains branch September 5, 2024 23:52
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