aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/android
diff options
context:
space:
mode:
authorGravatar Laszlo Csomor <laszlocsomor@google.com>2018-08-09 23:36:39 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-08-09 23:38:24 -0700
commitdf16c77a501ba634b30a1e3d6f76023ac9ea93a9 (patch)
treee01d5f1ac11d565ed00f7f66059eaa884167c910 /tools/android
parent18e3f8f24891009ada4da4a2e20e8383df91f0be (diff)
Windows: add //tools/... tests to test suite
Add all tests under //tools/... to //src:all_windows_tests, to run them on Bazel CI. See https://github.com/bazelbuild/bazel/issues/4292 Closes #5839. Change-Id: Iae647f561683cc50ef62416c4b834576ae918486 PiperOrigin-RevId: 208167743
Diffstat (limited to 'tools/android')
-rw-r--r--tools/android/BUILD37
1 files changed, 36 insertions, 1 deletions
diff --git a/tools/android/BUILD b/tools/android/BUILD
index f7355fba49..5c793a9665 100644
--- a/tools/android/BUILD
+++ b/tools/android/BUILD
@@ -15,6 +15,10 @@ sh_test(
":build_incremental_dexmanifest",
"//tools/zip:zipper",
],
+ tags = [
+ # TODO(laszlocsomor): fix on Windows or describe why it cannot pass.
+ "no_windows",
+ ],
)
py_binary(
@@ -45,6 +49,10 @@ py_binary(
py_test(
name = "incremental_install_test",
srcs = ["incremental_install_test.py"],
+ tags = [
+ # TODO(laszlocsomor): fix on Windows or describe why it cannot pass.
+ "no_windows",
+ ],
deps = [
":incremental_install",
"//third_party/py/mock",
@@ -65,6 +73,10 @@ sh_test(
":strip_resources",
"//tools/zip:zipper",
],
+ tags = [
+ # TODO(laszlocsomor): fix on Windows or describe why it cannot pass.
+ "no_windows",
+ ],
)
py_binary(
@@ -190,7 +202,13 @@ genrule(
filegroup(
name = "srcs",
- srcs = glob(["**"]) + ["//tools/android/emulator:srcs"],
+ srcs = glob(
+ ["**"],
+ exclude = [
+ "*~",
+ ".*",
+ ],
+ ) + ["//tools/android/emulator:srcs"],
)
filegroup(
@@ -200,6 +218,8 @@ filegroup(
exclude = [
"*_test.py",
"*_test.sh",
+ "*~",
+ ".*",
],
) + [
":desugar_jdk_libs.jar",
@@ -209,3 +229,18 @@ filegroup(
# Exported for AndroidSdkRepositoryTest to use it instead of mocking it out.
exports_files(["android_sdk_repository_template.bzl"])
+
+test_suite(
+ name = "windows_tests",
+ tags = [
+ "-no_windows",
+ "-slow",
+ ],
+ visibility = ["//visibility:private"],
+)
+
+test_suite(
+ name = "all_windows_tests",
+ tests = [":windows_tests"],
+ visibility = ["//tools:__pkg__"],
+)