xref: /aosp_15_r20/external/bazelbuild-rules_cc/tests/rule_based_toolchain/actions/BUILD (revision eed53cd41c5909d05eedc7ad9720bb158fd93452)
1load("@rules_testing//lib:util.bzl", "util")
2load("//cc/toolchains:actions.bzl", "cc_action_type", "cc_action_type_set")
3load("//tests/rule_based_toolchain:analysis_test_suite.bzl", "analysis_test_suite")
4load(":actions_test.bzl", "TARGETS", "TESTS")
5
6util.helper_target(
7    cc_action_type,
8    name = "c_compile",
9    action_name = "c_compile",
10    visibility = ["//tests/rule_based_toolchain:__subpackages__"],
11)
12
13util.helper_target(
14    cc_action_type,
15    name = "cpp_compile",
16    action_name = "cpp_compile",
17    visibility = ["//tests/rule_based_toolchain:__subpackages__"],
18)
19
20util.helper_target(
21    cc_action_type_set,
22    name = "all_compile",
23    actions = [
24        ":c_compile",
25        ":cpp_compile",
26    ],
27    visibility = ["//tests/rule_based_toolchain:__subpackages__"],
28)
29
30analysis_test_suite(
31    name = "test_suite",
32    targets = TARGETS,
33    tests = TESTS,
34)
35