| 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(["**"]) + [ |
| "//src/test/java/com/google/devtools/build/lib/starlark/util:srcs", |
| ], |
| visibility = ["//src:__subpackages__"], |
| ) |
| |
| java_test( |
| name = "StarlarkTests", |
| timeout = "long", |
| srcs = glob( |
| ["*.java"], |
| exclude = [ |
| "StarlarkRuleClassFunctionsTest.java", |
| "BindTest.java", |
| ], |
| ), |
| shard_count = 25, |
| 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/actions", |
| "//src/main/java/com/google/devtools/build/lib/actions:action_lookup_data", |
| "//src/main/java/com/google/devtools/build/lib/actions:artifact_expander", |
| "//src/main/java/com/google/devtools/build/lib/actions:artifacts", |
| "//src/main/java/com/google/devtools/build/lib/actions:commandline_item", |
| "//src/main/java/com/google/devtools/build/lib/actions:localhost_capacity", |
| "//src/main/java/com/google/devtools/build/lib/actions:thread_state_receiver", |
| "//src/main/java/com/google/devtools/build/lib/analysis:actions/buildinfo_file_write_action", |
| "//src/main/java/com/google/devtools/build/lib/analysis:actions/parameter_file_write_action", |
| "//src/main/java/com/google/devtools/build/lib/analysis:actions/substitution", |
| "//src/main/java/com/google/devtools/build/lib/analysis:actions/template_expansion_action", |
| "//src/main/java/com/google/devtools/build/lib/analysis:actions_provider", |
| "//src/main/java/com/google/devtools/build/lib/analysis:analysis_cluster", |
| "//src/main/java/com/google/devtools/build/lib/analysis:config/core_options", |
| "//src/main/java/com/google/devtools/build/lib/analysis:config/starlark_defined_config_transition", |
| "//src/main/java/com/google/devtools/build/lib/analysis:configured_target", |
| "//src/main/java/com/google/devtools/build/lib/analysis:file_provider", |
| "//src/main/java/com/google/devtools/build/lib/analysis:platform_options", |
| "//src/main/java/com/google/devtools/build/lib/analysis:run_environment_info", |
| "//src/main/java/com/google/devtools/build/lib/analysis:starlark/args", |
| "//src/main/java/com/google/devtools/build/lib/analysis:starlark/starlark_exec_group_collection", |
| "//src/main/java/com/google/devtools/build/lib/analysis:test/analysis_test_result_info", |
| "//src/main/java/com/google/devtools/build/lib/analysis:test/instrumented_files_info", |
| "//src/main/java/com/google/devtools/build/lib/analysis:transitive_info_collection", |
| "//src/main/java/com/google/devtools/build/lib/analysis:view_creation_failed_exception", |
| "//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/events", |
| "//src/main/java/com/google/devtools/build/lib/exec:bin_tools", |
| "//src/main/java/com/google/devtools/build/lib/packages", |
| "//src/main/java/com/google/devtools/build/lib/packages:exec_group", |
| "//src/main/java/com/google/devtools/build/lib/pkgcache", |
| "//src/main/java/com/google/devtools/build/lib/rules/cpp", |
| "//src/main/java/com/google/devtools/build/lib/rules/java:java-compilation", |
| "//src/main/java/com/google/devtools/build/lib/skyframe:aspect_key_creator", |
| "//src/main/java/com/google/devtools/build/lib/skyframe:bzl_load_value", |
| "//src/main/java/com/google/devtools/build/lib/skyframe:configured_target_and_data", |
| "//src/main/java/com/google/devtools/build/lib/skyframe:configured_target_key", |
| "//src/main/java/com/google/devtools/build/lib/skyframe:skyframe_cluster", |
| "//src/main/java/com/google/devtools/build/lib/skyframe/config", |
| "//src/main/java/com/google/devtools/build/lib/skyframe/serialization/testutils:round-tripping", |
| "//src/main/java/com/google/devtools/build/lib/util", |
| "//src/main/java/com/google/devtools/build/lib/util:classpath", |
| "//src/main/java/com/google/devtools/build/lib/util:filetype", |
| "//src/main/java/com/google/devtools/build/lib/util:os", |
| "//src/main/java/com/google/devtools/build/lib/vfs", |
| "//src/main/java/com/google/devtools/build/lib/vfs:pathfragment", |
| "//src/main/java/com/google/devtools/build/skyframe:skyframe-objects", |
| "//src/main/java/com/google/devtools/common/options", |
| "//src/main/java/net/starlark/java/annot", |
| "//src/main/java/net/starlark/java/eval", |
| "//src/main/protobuf:failure_details_java_proto", |
| "//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/bazel/bzlmod:util", |
| "//src/test/java/com/google/devtools/build/lib/exec/util", |
| "//src/test/java/com/google/devtools/build/lib/packages:testutil", |
| "//src/test/java/com/google/devtools/build/lib/rules/python:PythonTestUtils", |
| "//src/test/java/com/google/devtools/build/lib/starlark/util", |
| "//src/test/java/com/google/devtools/build/lib/testutil", |
| "//src/test/java/com/google/devtools/build/lib/testutil:JunitUtils", |
| "//src/test/java/com/google/devtools/build/lib/testutil:TestConstants", |
| "//third_party:guava", |
| "//third_party:junit4", |
| "//third_party:mockito", |
| "//third_party:truth", |
| "@maven//:com_google_testparameterinjector_test_parameter_injector", |
| ], |
| ) |
| |
| java_test( |
| name = "BindTest", |
| srcs = ["BindTest.java"], |
| data = ["//tools/build_rules:srcs"], |
| deps = [ |
| "//src/main/java/com/google/devtools/build/lib/actions", |
| "//src/main/java/com/google/devtools/build/lib/actions:artifacts", |
| "//src/main/java/com/google/devtools/build/lib/analysis:configured_target", |
| "//src/main/java/com/google/devtools/build/lib/vfs", |
| "//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/testutil", |
| "//src/test/java/com/google/devtools/build/lib/testutil:TestConstants", |
| "//third_party:guava", |
| "//third_party:junit4", |
| "//third_party:truth", |
| "@bazel_tools//tools/java/runfiles", |
| ], |
| ) |
| |
| java_test( |
| name = "StarlarkRuleClassFunctionsTest", |
| srcs = ["StarlarkRuleClassFunctionsTest.java"], |
| shard_count = 5, |
| deps = [ |
| "//src/main/java/com/google/devtools/build/lib/actions:artifacts", |
| "//src/main/java/com/google/devtools/build/lib/analysis:analysis_cluster", |
| "//src/main/java/com/google/devtools/build/lib/analysis:config/build_configuration", |
| "//src/main/java/com/google/devtools/build/lib/analysis:config/toolchain_type_requirement", |
| "//src/main/java/com/google/devtools/build/lib/analysis:config/transitions/no_config_transition", |
| "//src/main/java/com/google/devtools/build/lib/analysis:config/transitions/no_transition", |
| "//src/main/java/com/google/devtools/build/lib/analysis:configured_target", |
| "//src/main/java/com/google/devtools/build/lib/analysis:starlark/starlark_config", |
| "//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/events", |
| "//src/main/java/com/google/devtools/build/lib/packages", |
| "//src/main/java/com/google/devtools/build/lib/packages:exec_group", |
| "//src/main/java/com/google/devtools/build/lib/rules/cpp", |
| "//src/main/java/com/google/devtools/build/lib/skyframe:bzl_load_value", |
| "//src/main/java/com/google/devtools/build/lib/skyframe:skyframe_cluster", |
| "//src/main/java/com/google/devtools/build/lib/skyframe/serialization/testutils:round-tripping", |
| "//src/main/java/com/google/devtools/build/lib/util:filetype", |
| "//src/main/java/com/google/devtools/build/lib/vfs:pathfragment", |
| "//src/main/java/com/google/devtools/build/skyframe:skyframe-objects", |
| "//src/main/java/net/starlark/java/eval", |
| "//src/main/java/net/starlark/java/syntax", |
| "//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/starlark/util", |
| "//src/test/java/com/google/devtools/build/lib/testutil", |
| "//src/test/java/com/google/devtools/build/lib/testutil:JunitUtils", |
| "//src/test/java/com/google/devtools/build/lib/testutil:TestConstants", |
| "//third_party:guava", |
| "//third_party:guava-testlib", |
| "//third_party:jsr305", |
| "//third_party:junit4", |
| "//third_party:mockito", |
| "//third_party:truth", |
| "@maven//:com_google_testparameterinjector_test_parameter_injector", |
| ], |
| ) |