blob: ce0911e163ad2c988a8888c23d1c0f16fdb86b1a [file] [log] [blame]
load("@rules_java//java:defs.bzl", "java_test")
package(
default_testonly = 1,
default_visibility = ["//src:__subpackages__"],
)
filegroup(
name = "srcs",
testonly = 0,
srcs = glob(["*"]) + [
"//src/test/java/com/google/devtools/build/lib/rules/android:srcs",
"//src/test/java/com/google/devtools/build/lib/rules/apple:srcs",
"//src/test/java/com/google/devtools/build/lib/rules/config:srcs",
"//src/test/java/com/google/devtools/build/lib/rules/cpp:srcs",
"//src/test/java/com/google/devtools/build/lib/rules/filegroup:srcs",
"//src/test/java/com/google/devtools/build/lib/rules/genquery:srcs",
"//src/test/java/com/google/devtools/build/lib/rules/java:srcs",
"//src/test/java/com/google/devtools/build/lib/rules/objc:srcs",
"//src/test/java/com/google/devtools/build/lib/rules/platform:srcs",
"//src/test/java/com/google/devtools/build/lib/rules/proto:srcs",
"//src/test/java/com/google/devtools/build/lib/rules/python:srcs",
"//src/test/java/com/google/devtools/build/lib/rules/repository:srcs",
"//src/test/java/com/google/devtools/build/lib/rules/test:srcs",
],
visibility = ["//src:__subpackages__"],
)
java_test(
name = "rules_tests",
srcs = glob(["*.java"]),
test_class = "com.google.devtools.build.lib.AllTests",
runtime_deps = [
"//src/test/java/com/google/devtools/build/lib:test_runner",
],
deps = [
"//src/main/java/com/google/devtools/build/lib:build-base",
"//src/main/java/com/google/devtools/build/lib/actions",
"//src/main/java/com/google/devtools/build/lib/cmdline",
"//src/main/java/com/google/devtools/build/lib/collect/nestedset",
"//src/main/java/com/google/devtools/build/lib/packages",
"//src/main/java/com/google/devtools/build/lib/rules/cpp",
"//src/test/java/com/google/devtools/build/lib/actions/util",
"//src/test/java/com/google/devtools/build/lib/analysis/util",
"//src/test/java/com/google/devtools/build/lib/packages:testutil",
"//src/test/java/com/google/devtools/build/lib/testutil",
"//src/test/java/com/google/devtools/build/lib/testutil:TestConstants",
"//third_party:guava",
"//third_party:jsr305",
"//third_party:junit4",
"//third_party:truth",
],
)
test_suite(
name = "windows_tests",
tags = [
"-no_windows",
"-slow",
],
)
test_suite(
name = "all_windows_tests",
tests = [
":windows_tests",
"//src/test/java/com/google/devtools/build/lib/rules/android:all_windows_tests",
"//src/test/java/com/google/devtools/build/lib/rules/apple:all_windows_tests",
"//src/test/java/com/google/devtools/build/lib/rules/config:all_windows_tests",
"//src/test/java/com/google/devtools/build/lib/rules/cpp:all_windows_tests",
"//src/test/java/com/google/devtools/build/lib/rules/filegroup:all_windows_tests",
"//src/test/java/com/google/devtools/build/lib/rules/genquery:all_windows_tests",
"//src/test/java/com/google/devtools/build/lib/rules/objc:all_windows_tests",
"//src/test/java/com/google/devtools/build/lib/rules/platform:all_windows_tests",
"//src/test/java/com/google/devtools/build/lib/rules/proto:all_windows_tests",
"//src/test/java/com/google/devtools/build/lib/rules/python:all_windows_tests",
"//src/test/java/com/google/devtools/build/lib/rules/repository:all_windows_tests",
"//src/test/java/com/google/devtools/build/lib/rules/test:all_windows_tests",
],
)