aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/cpp
diff options
context:
space:
mode:
authorGravatar L?szl? Csomor <laszlocsomor@google.com>2017-09-19 17:12:32 +0200
committerGravatar László Csomor <laszlocsomor@google.com>2017-09-19 17:19:14 +0200
commit088f6113007d1a341893d915a87b93a4aed9898e (patch)
tree39efddacd8d0876980e230c3b9cc0bc72ca27b2b /src/test/cpp
parent807a9b236963ff863573050d5aba146a9bbe23db (diff)
CI,windows: create test_suites for Windows tests
Add recursive test_suite rules for all tests that ci.bazel.io runs for Windows, and set the top-level test_suite as the CI test target. Doing so shortens the command line and works around https://github.com/bazelbuild/bazel/issues/3742 I verified that the old set of tests are the same as the new set. Change-Id: Id8d5da3f0c03c9b8969a9f8e1e9a3096888365aa PiperOrigin-RevId: 169242858
Diffstat (limited to 'src/test/cpp')
-rw-r--r--src/test/cpp/BUILD18
-rw-r--r--src/test/cpp/util/BUILD17
2 files changed, 35 insertions, 0 deletions
diff --git a/src/test/cpp/BUILD b/src/test/cpp/BUILD
index 500974501d..50054ad34d 100644
--- a/src/test/cpp/BUILD
+++ b/src/test/cpp/BUILD
@@ -73,3 +73,21 @@ cc_test(
)
test_suite(name = "all_tests")
+
+test_suite(
+ name = "windows_tests",
+ tags = [
+ "-no_windows",
+ "-slow",
+ ],
+ visibility = ["//visibility:private"],
+)
+
+test_suite(
+ name = "all_windows_tests",
+ tests = [
+ ":windows_tests",
+ "//src/test/cpp/util:all_windows_tests",
+ ],
+ visibility = ["//src/test:__pkg__"],
+)
diff --git a/src/test/cpp/util/BUILD b/src/test/cpp/util/BUILD
index 119d99392b..791be74f4a 100644
--- a/src/test/cpp/util/BUILD
+++ b/src/test/cpp/util/BUILD
@@ -141,3 +141,20 @@ cc_library(
)
test_suite(name = "all_tests")
+
+test_suite(
+ name = "windows_tests",
+ tags = [
+ "-no_windows",
+ "-slow",
+ ],
+ visibility = ["//visibility:private"],
+)
+
+test_suite(
+ name = "all_windows_tests",
+ tests = [
+ ":windows_tests",
+ ],
+ visibility = ["//src/test/cpp:__pkg__"],
+)