-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Needed for tests of android_sdk_repository. Part of #76. PiperOrigin-RevId: 557560436 Change-Id: I1c904b2e3a3136819b3d6b3bc6ee49193aeebbce
- Loading branch information
1 parent
a764568
commit e844f65
Showing
4 changed files
with
1,807 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
load("@rules_python//python:py_test.bzl", "py_test") | ||
|
||
package( | ||
default_applicable_licenses = ["//:license"], | ||
default_visibility = [ | ||
"//test:__subpackages__", | ||
], | ||
) | ||
|
||
licenses(["notice"]) | ||
|
||
exports_files( | ||
["unittest.bash"], | ||
) | ||
|
||
sh_library( | ||
name = "bashunit", | ||
testonly = True, | ||
srcs = [ | ||
"unittest.bash", | ||
"unittest_utils.sh", | ||
], | ||
) | ||
|
||
# Test bashunit with python to avoid recursion. | ||
py_test( | ||
name = "bashunit_test", | ||
size = "medium", | ||
srcs = ["unittest_test.py"], | ||
data = [ | ||
":bashunit", | ||
# This test relies on writing shell scripts that use bash runfiles | ||
# to load the actual copy of unittest.bash being tested. | ||
"@bazel_tools//tools/bash/runfiles", | ||
], | ||
main = "unittest_test.py", | ||
python_version = "PY3", | ||
srcs_version = "PY3", | ||
tags = [ | ||
"manual", # TODO(b/266084774): Re-enable this. | ||
"no_windows", # test runs bash scripts in a subprocess | ||
], | ||
) |
Oops, something went wrong.