aboutsummaryrefslogtreecommitdiff
path: root/tests/rule_based_toolchain/args_list/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rule_based_toolchain/args_list/BUILD')
-rw-r--r--tests/rule_based_toolchain/args_list/BUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/tests/rule_based_toolchain/args_list/BUILD b/tests/rule_based_toolchain/args_list/BUILD
new file mode 100644
index 0000000..9fc9f88
--- /dev/null
+++ b/tests/rule_based_toolchain/args_list/BUILD
@@ -0,0 +1,49 @@
+load("@rules_testing//lib:util.bzl", "util")
+load("//cc/toolchains:args.bzl", "cc_args")
+load("//cc/toolchains:args_list.bzl", "cc_args_list")
+load("//tests/rule_based_toolchain:analysis_test_suite.bzl", "analysis_test_suite")
+load(":args_list_test.bzl", "TARGETS", "TESTS")
+
+util.helper_target(
+ cc_args,
+ name = "c_compile_args",
+ actions = ["//tests/rule_based_toolchain/actions:c_compile"],
+ args = ["c"],
+ data = ["//tests/rule_based_toolchain/testdata:file1"],
+ visibility = ["//tests/rule_based_toolchain:__subpackages__"],
+)
+
+util.helper_target(
+ cc_args,
+ name = "cpp_compile_args",
+ actions = ["//tests/rule_based_toolchain/actions:cpp_compile"],
+ args = ["cpp"],
+ data = ["//tests/rule_based_toolchain/testdata:file2"],
+ visibility = ["//tests/rule_based_toolchain:__subpackages__"],
+)
+
+util.helper_target(
+ cc_args,
+ name = "all_compile_args",
+ actions = ["//tests/rule_based_toolchain/actions:all_compile"],
+ args = ["all"],
+ data = ["//tests/rule_based_toolchain/testdata:multiple1"],
+ visibility = ["//tests/rule_based_toolchain:__subpackages__"],
+)
+
+util.helper_target(
+ cc_args_list,
+ name = "args_list",
+ args = [
+ ":c_compile_args",
+ ":cpp_compile_args",
+ ":all_compile_args",
+ ],
+ visibility = ["//tests/rule_based_toolchain:__subpackages__"],
+)
+
+analysis_test_suite(
+ name = "test_suite",
+ targets = TARGETS,
+ tests = TESTS,
+)