blob: b2fe529237dea272799f5f604ee7e00143e6b6fa [file] [log] [blame]
load("@rules_testing//lib:util.bzl", "util")
load("//cc/toolchains:action_type_config.bzl", "cc_action_type_config")
load("//tests/rule_based_toolchain:analysis_test_suite.bzl", "analysis_test_suite")
load(":action_type_config_test.bzl", "TARGETS", "TESTS")
util.helper_target(
cc_action_type_config,
name = "file_map",
action_types = ["//tests/rule_based_toolchain/actions:all_compile"],
additional_files = [
"//tests/rule_based_toolchain/testdata:multiple2",
],
args = ["//tests/rule_based_toolchain/args_list"],
tools = [
"//tests/rule_based_toolchain/testdata:bin_wrapper.sh",
"//tests/rule_based_toolchain/tool:wrapped_tool",
],
)
util.helper_target(
cc_action_type_config,
name = "c_compile_config",
action_types = ["//tests/rule_based_toolchain/actions:c_compile"],
tools = [
"//tests/rule_based_toolchain/testdata:bin_wrapper.sh",
],
)
util.helper_target(
cc_action_type_config,
name = "cpp_compile_config",
action_types = ["//tests/rule_based_toolchain/actions:cpp_compile"],
tools = [
"//tests/rule_based_toolchain/testdata:bin_wrapper.sh",
],
)
analysis_test_suite(
name = "test_suite",
targets = TARGETS,
tests = TESTS,
)