diff options
Diffstat (limited to 'tests/rule_based_toolchain/tool/BUILD')
-rw-r--r-- | tests/rule_based_toolchain/tool/BUILD | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/rule_based_toolchain/tool/BUILD b/tests/rule_based_toolchain/tool/BUILD new file mode 100644 index 0000000..d16ded6 --- /dev/null +++ b/tests/rule_based_toolchain/tool/BUILD @@ -0,0 +1,26 @@ +load("@rules_testing//lib:util.bzl", "util") +load("//cc/toolchains:tool.bzl", "cc_tool") +load("//tests/rule_based_toolchain:analysis_test_suite.bzl", "analysis_test_suite") +load(":tool_test.bzl", "TARGETS", "TESTS") + +util.helper_target( + cc_tool, + name = "tool", + src = "//tests/rule_based_toolchain/testdata:bin_wrapper.sh", + data = ["//tests/rule_based_toolchain/testdata:bin"], + execution_requirements = ["requires-network"], + requires_any_of = ["//tests/rule_based_toolchain/features:direct_constraint"], +) + +util.helper_target( + cc_tool, + name = "wrapped_tool", + src = "//tests/rule_based_toolchain/testdata:bin_wrapper", + visibility = ["//tests/rule_based_toolchain:__subpackages__"], +) + +analysis_test_suite( + name = "test_suite", + targets = TARGETS, + tests = TESTS, +) |