diff options
Diffstat (limited to 'tests/core/output_groups/BUILD.bazel')
-rw-r--r-- | tests/core/output_groups/BUILD.bazel | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/core/output_groups/BUILD.bazel b/tests/core/output_groups/BUILD.bazel new file mode 100644 index 00000000..ec8b86c9 --- /dev/null +++ b/tests/core/output_groups/BUILD.bazel @@ -0,0 +1,36 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") + +go_library( + name = "lib", + srcs = ["lib.go"], + importpath = "lib", +) + +go_test( + name = "lib_test", + srcs = ["lib_test.go"], + embed = [":lib"], +) + +go_binary( + name = "bin", + srcs = ["bin.go"], +) + +filegroup( + name = "compilation_outputs", + testonly = True, + srcs = [ + ":bin", + ":lib", + ":lib_test", + ], + output_group = "compilation_outputs", +) + +go_test( + name = "compilation_outputs_test", + srcs = ["compilation_outputs_test.go"], + data = [":compilation_outputs"], + deps = ["//go/tools/bazel:go_default_library"], +) |