| load("@rules_java//java:defs.bzl", "java_test") |
| |
| package( |
| default_applicable_licenses = ["//:license"], |
| default_testonly = 1, |
| default_visibility = ["//src:__subpackages__"], |
| ) |
| |
| filegroup( |
| name = "srcs", |
| testonly = 0, |
| srcs = glob(["**"]), |
| visibility = ["//src:__subpackages__"], |
| ) |
| |
| java_test( |
| name = "ConstraintValueLookupUtilTest", |
| srcs = ["ConstraintValueLookupUtilTest.java"], |
| deps = [ |
| "//src/main/java/com/google/devtools/build/lib/analysis:blaze_directories", |
| "//src/main/java/com/google/devtools/build/lib/analysis/platform", |
| "//src/main/java/com/google/devtools/build/lib/cmdline", |
| "//src/main/java/com/google/devtools/build/lib/packages", |
| "//src/main/java/com/google/devtools/build/lib/skyframe:configured_target_key", |
| "//src/main/java/com/google/devtools/build/lib/skyframe/toolchains:constraint_value_lookup_util", |
| "//src/main/java/com/google/devtools/build/skyframe", |
| "//src/main/java/com/google/devtools/build/skyframe:skyframe-objects", |
| "//src/test/java/com/google/devtools/build/lib/analysis/util", |
| "//src/test/java/com/google/devtools/build/lib/rules/platform:testutil", |
| "//src/test/java/com/google/devtools/build/lib/skyframe:testutil", |
| "//src/test/java/com/google/devtools/build/skyframe:testutil", |
| "//third_party:auto_value", |
| "//third_party:guava", |
| "//third_party:jsr305", |
| "//third_party:junit4", |
| "//third_party:truth", |
| ], |
| ) |
| |
| java_test( |
| name = "PlatformLookupUtilTest", |
| srcs = ["PlatformLookupUtilTest.java"], |
| deps = [ |
| "//src/main/java/com/google/devtools/build/lib/analysis:blaze_directories", |
| "//src/main/java/com/google/devtools/build/lib/analysis/platform", |
| "//src/main/java/com/google/devtools/build/lib/cmdline", |
| "//src/main/java/com/google/devtools/build/lib/skyframe:configured_target_key", |
| "//src/main/java/com/google/devtools/build/lib/skyframe/toolchains:platform_lookup_util", |
| "//src/main/java/com/google/devtools/build/skyframe", |
| "//src/main/java/com/google/devtools/build/skyframe:skyframe-objects", |
| "//src/test/java/com/google/devtools/build/lib/analysis/util", |
| "//src/test/java/com/google/devtools/build/lib/rules/platform:testutil", |
| "//src/test/java/com/google/devtools/build/lib/skyframe:testutil", |
| "//src/test/java/com/google/devtools/build/skyframe:testutil", |
| "//third_party:auto_value", |
| "//third_party:guava", |
| "//third_party:jsr305", |
| "//third_party:junit4", |
| "//third_party:truth", |
| ], |
| ) |
| |
| java_test( |
| name = "RegisteredExecutionPlatformsFunctionTest", |
| srcs = ["RegisteredExecutionPlatformsFunctionTest.java"], |
| deps = [ |
| "//src/main/java/com/google/devtools/build/lib/analysis:view_creation_failed_exception", |
| "//src/main/java/com/google/devtools/build/lib/analysis/platform", |
| "//src/main/java/com/google/devtools/build/lib/cmdline", |
| "//src/main/java/com/google/devtools/build/lib/skyframe:configured_target_key", |
| "//src/main/java/com/google/devtools/build/lib/skyframe/toolchains:platform_lookup_util", |
| "//src/main/java/com/google/devtools/build/lib/skyframe/toolchains:registered_execution_platforms_value", |
| "//src/main/java/com/google/devtools/build/skyframe", |
| "//src/main/java/com/google/devtools/build/skyframe:skyframe-objects", |
| "//src/test/java/com/google/devtools/build/lib/bazel/bzlmod:util", |
| "//src/test/java/com/google/devtools/build/lib/rules/platform:testutil", |
| "//src/test/java/com/google/devtools/build/lib/skyframe:testutil", |
| "//src/test/java/com/google/devtools/build/skyframe:testutil", |
| "//third_party:guava", |
| "//third_party:guava-testlib", |
| "//third_party:jsr305", |
| "//third_party:junit4", |
| "//third_party:truth", |
| ], |
| ) |
| |
| java_test( |
| name = "RegisteredToolchainsFunctionTest", |
| srcs = ["RegisteredToolchainsFunctionTest.java"], |
| deps = [ |
| "//src/main/java/com/google/devtools/build/lib/analysis:analysis_cluster", |
| "//src/main/java/com/google/devtools/build/lib/analysis/platform", |
| "//src/main/java/com/google/devtools/build/lib/cmdline", |
| "//src/main/java/com/google/devtools/build/lib/skyframe/toolchains:registered_toolchains_value", |
| "//src/main/java/com/google/devtools/build/lib/vfs", |
| "//src/main/java/com/google/devtools/build/skyframe", |
| "//src/main/java/com/google/devtools/build/skyframe:skyframe-objects", |
| "//src/test/java/com/google/devtools/build/lib/bazel/bzlmod:util", |
| "//src/test/java/com/google/devtools/build/lib/rules/platform:testutil", |
| "//src/test/java/com/google/devtools/build/lib/testutil", |
| "//src/test/java/com/google/devtools/build/skyframe:testutil", |
| "//third_party:guava", |
| "//third_party:guava-testlib", |
| "//third_party:junit4", |
| "//third_party:truth", |
| ], |
| ) |
| |
| java_test( |
| name = "SingleToolchainResolutionFunctionTest", |
| srcs = ["SingleToolchainResolutionFunctionTest.java"], |
| deps = [ |
| "//src/main/java/com/google/devtools/build/lib/cmdline", |
| "//src/main/java/com/google/devtools/build/lib/skyframe:configured_target_key", |
| "//src/main/java/com/google/devtools/build/lib/skyframe/toolchains:single_toolchain_resolution_value", |
| "//src/main/java/com/google/devtools/build/skyframe", |
| "//src/main/java/com/google/devtools/build/skyframe:skyframe-objects", |
| "//src/test/java/com/google/devtools/build/lib/rules/platform:testutil", |
| "//src/test/java/com/google/devtools/build/lib/skyframe:testutil", |
| "//src/test/java/com/google/devtools/build/skyframe:testutil", |
| "//third_party:guava", |
| "//third_party:guava-testlib", |
| "//third_party:junit4", |
| "//third_party:truth", |
| ], |
| ) |
| |
| java_test( |
| name = "ToolchainResolutionFunctionTest", |
| srcs = ["ToolchainResolutionFunctionTest.java"], |
| deps = [ |
| "//src/main/java/com/google/devtools/build/lib/analysis:config/toolchain_type_requirement", |
| "//src/main/java/com/google/devtools/build/lib/cmdline", |
| "//src/main/java/com/google/devtools/build/lib/skyframe/toolchains:constraint_value_lookup_util", |
| "//src/main/java/com/google/devtools/build/lib/skyframe/toolchains:platform_lookup_util", |
| "//src/main/java/com/google/devtools/build/lib/skyframe/toolchains:toolchain_context_key", |
| "//src/main/java/com/google/devtools/build/lib/skyframe/toolchains:toolchain_type_lookup_util", |
| "//src/main/java/com/google/devtools/build/lib/skyframe/toolchains:unloaded_toolchain_context", |
| "//src/main/java/com/google/devtools/build/skyframe", |
| "//src/main/java/com/google/devtools/build/skyframe:skyframe-objects", |
| "//src/test/java/com/google/devtools/build/lib/analysis/testing", |
| "//src/test/java/com/google/devtools/build/lib/rules/platform:testutil", |
| "//src/test/java/com/google/devtools/build/lib/skyframe:testutil", |
| "//src/test/java/com/google/devtools/build/skyframe:testutil", |
| "//third_party:guava", |
| "//third_party:junit4", |
| "//third_party:truth", |
| ], |
| ) |
| |
| java_test( |
| name = "ToolchainsForTargetsTest", |
| srcs = ["ToolchainsForTargetsTest.java"], |
| deps = [ |
| "//src/main/java/com/google/devtools/build/lib/actions", |
| "//src/main/java/com/google/devtools/build/lib/analysis:analysis_cluster", |
| "//src/main/java/com/google/devtools/build/lib/analysis:blaze_directories", |
| "//src/main/java/com/google/devtools/build/lib/analysis:configured_target", |
| "//src/main/java/com/google/devtools/build/lib/analysis:constraints/incompatible_target_checker", |
| "//src/main/java/com/google/devtools/build/lib/analysis:target_and_configuration", |
| "//src/main/java/com/google/devtools/build/lib/analysis:toolchain_collection", |
| "//src/main/java/com/google/devtools/build/lib/analysis:toolchain_context", |
| "//src/main/java/com/google/devtools/build/lib/analysis/producers", |
| "//src/main/java/com/google/devtools/build/lib/cmdline", |
| "//src/main/java/com/google/devtools/build/lib/packages", |
| "//src/main/java/com/google/devtools/build/lib/skyframe:configured_target_key", |
| "//src/main/java/com/google/devtools/build/lib/skyframe:configured_value_creation_exception", |
| "//src/main/java/com/google/devtools/build/lib/skyframe:skyframe_cluster", |
| "//src/main/java/com/google/devtools/build/lib/skyframe/toolchains:toolchain_exception", |
| "//src/main/java/com/google/devtools/build/lib/skyframe/toolchains:unloaded_toolchain_context", |
| "//src/main/java/com/google/devtools/build/skyframe", |
| "//src/main/java/com/google/devtools/build/skyframe:skyframe-objects", |
| "//src/test/java/com/google/devtools/build/lib/analysis/testing", |
| "//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/skyframe:testutil", |
| "//third_party:auto_value", |
| "//third_party:error_prone_annotations", |
| "//third_party:guava", |
| "//third_party:junit4", |
| "//third_party:truth", |
| ], |
| ) |
| |
| java_test( |
| name = "ToolchainTypeLookupUtilTest", |
| srcs = ["ToolchainTypeLookupUtilTest.java"], |
| deps = [ |
| "//src/main/java/com/google/devtools/build/lib/analysis:blaze_directories", |
| "//src/main/java/com/google/devtools/build/lib/analysis/platform", |
| "//src/main/java/com/google/devtools/build/lib/cmdline", |
| "//src/main/java/com/google/devtools/build/lib/packages", |
| "//src/main/java/com/google/devtools/build/lib/skyframe:configured_target_key", |
| "//src/main/java/com/google/devtools/build/lib/skyframe/toolchains:toolchain_type_lookup_util", |
| "//src/main/java/com/google/devtools/build/skyframe", |
| "//src/main/java/com/google/devtools/build/skyframe:skyframe-objects", |
| "//src/test/java/com/google/devtools/build/lib/analysis/util", |
| "//src/test/java/com/google/devtools/build/lib/rules/platform:testutil", |
| "//src/test/java/com/google/devtools/build/lib/skyframe:testutil", |
| "//src/test/java/com/google/devtools/build/skyframe:testutil", |
| "//third_party:auto_value", |
| "//third_party:guava", |
| "//third_party:jsr305", |
| "//third_party:junit4", |
| "//third_party:truth", |
| ], |
| ) |