blob: 618cf4e4d3b7a383ffc6805450eaa10d6ae3f584 [file] [log] [blame]
load("@rules_java//java:defs.bzl", "java_library", "java_test")
# Description:
# Tests of the testing tools for the devtools-common options parser.
package(
default_testonly = 1,
default_visibility = ["//src:__subpackages__"],
)
filegroup(
name = "srcs",
testonly = 0,
srcs = glob(
["**"],
),
visibility = ["//src:__subpackages__"],
)
java_library(
name = "OptionsTesterTest_lib",
srcs = glob(["*.java"]),
deps = [
"//src/main/java/com/google/devtools/common/options",
"//src/main/java/com/google/devtools/common/options/testing",
"//src/test/java/com/google/devtools/build/lib/testutil:TestSuite",
"//third_party:guava",
"//third_party:junit4",
"//third_party:truth",
],
)
java_test(
name = "OptionsTesterTest",
test_class = "com.google.devtools.common.options.testing.AllTests",
runtime_deps = [":OptionsTesterTest_lib"],
)
test_suite(
name = "windows_tests",
tags = [
"-no_windows",
"-slow",
],
)
test_suite(
name = "all_windows_tests",
tests = [
":windows_tests",
],
)