-
-
Notifications
You must be signed in to change notification settings - Fork 668
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
files_equal_test: rewrite as genrule + sh_test (#2035)
Rewrite the files_equal_test() rules as a macro. The macro creates: - a sh_test, the actual test rule - a genrule that writes the source for the sh_test The old implementation was a Starlark test rule with a Bash script executable. Such a test cannot run on Windows with Bazel's Windows-native test wrapper, because the test wrapper cannot create a subprocess for .sh file, only for native binaries like an .exe file. The new implementation wraps the .sh file in a sh_test, which builds an .exe file on Windows. Bazel and the new native test wrapper can now run files_equal_test. [1] see bazelbuild/bazel#5508 and --incompatible_windows_native_test_wrapper Fixes #2034
- Loading branch information
1 parent
03cb602
commit c3b184e
Showing
1 changed file
with
102 additions
and
57 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