CI,windows: create test_suites for Windows tests

This change is the //third_party counterpart of
https://bazel-review.googlesource.com/c/bazel/+/16910

Change-Id: I56d285a0d4b3eb369f678525b111f16bf3a7da5c
diff --git a/third_party/BUILD b/third_party/BUILD
index 4cae538..d6a030d 100644
--- a/third_party/BUILD
+++ b/third_party/BUILD
@@ -599,3 +599,11 @@
     name = "ppc",
     values = {"host_cpu": "ppc"},
 )
+
+test_suite(
+    name = "all_windows_tests",
+    tests = [
+        "//third_party/def_parser:windows_tests",
+    ],
+    visibility = ["//src:__pkg__"],
+)
diff --git a/third_party/def_parser/BUILD b/third_party/def_parser/BUILD
index 9159a2c..0759d34 100644
--- a/third_party/def_parser/BUILD
+++ b/third_party/def_parser/BUILD
@@ -1,37 +1,54 @@
 licenses(["notice"])  # 3-clause BSD
 
 cc_library(
-  name = "def_parser_lib",
-  srcs = ["def_parser.cc"],
-  hdrs = ["def_parser.h"],
-  deps = [
-    "//src/main/cpp/util:file",
-  ],
+    name = "def_parser_lib",
+    srcs = ["def_parser.cc"],
+    hdrs = ["def_parser.h"],
+    deps = [
+        "//src/main/cpp/util:file",
+    ],
 )
 
 cc_binary(
-  name = "def_parser",
-  srcs = ["def_parser_main.cc"],
-  deps = [
-    ":def_parser_lib",
-  ],
-  visibility = [
-    "//src:__pkg__",
-  ],
+    name = "def_parser",
+    srcs = ["def_parser_main.cc"],
+    visibility = [
+        "//src:__pkg__",
+    ],
+    deps = [
+        ":def_parser_lib",
+    ],
 )
 
 py_test(
-  name = "def_parser_test",
-  srcs = ["def_parser_test.py"],
-  data = [":def_parser"],
-  deps = ["//src/test/py/bazel:test_base"],
+    name = "def_parser_test",
+    srcs = ["def_parser_test.py"],
+    data = [":def_parser"],
+    deps = ["//src/test/py/bazel:test_base"],
 )
 
 filegroup(
     name = "srcs",
     srcs = glob(["**"]),
     visibility = [
-      "//src:__pkg__",
-      "//third_party:__pkg__",
+        "//src:__pkg__",
+        "//third_party:__pkg__",
     ],
 )
+
+test_suite(
+    name = "windows_tests",
+    tags = [
+        "-no_windows",
+        "-slow",
+    ],
+    visibility = ["//visibility:private"],
+)
+
+test_suite(
+    name = "all_windows_tests",
+    tests = [
+        ":windows_tests",
+    ],
+    visibility = ["//third_party:__pkg__"],
+)