-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that tests set up execution platforms for test rules
In preparation for changes to the resolution of exec platforms for tests, have analysis tests register exec platforms that are compatible with their tests' target platforms. In `target_compatible_with_test`, replace a usage of `sh_test` with `sh_binary` to retain the setup as closely as possible by avoiding changes to constraints and platforms. Also remove the remaining shell analysis tests now that shell rules have been moved out of the Bazel repo. Keeping them would require extensive mocking, at which point they would lose their purpose. Closes #25142. PiperOrigin-RevId: 727835756 Change-Id: I4b176d0beebdc66aab0b18521be0e538da31eeb3
- Loading branch information
1 parent
eb0f20b
commit bc6e8d8
Showing
8 changed files
with
10 additions
and
158 deletions.
There are no files selected for viewing
This file contains 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 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 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
43 changes: 0 additions & 43 deletions
43
src/test/java/com/google/devtools/build/lib/bazel/rules/sh/BUILD
This file was deleted.
Oops, something went wrong.
100 changes: 0 additions & 100 deletions
100
...st/java/com/google/devtools/build/lib/bazel/rules/sh/BazelShTestConfiguredTargetTest.java
This file was deleted.
Oops, something went wrong.
This file contains 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 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 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