blob: d27928fb0f9a95babe2a5048b8c758f2eef3554a [file] [log] [blame]
# This test checks that go_binary and go_test produce a single output file.
# See documentation in single_output_test.bzl.
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_test")
load("@io_bazel_rules_go//go/private:single_output_test.bzl", "single_output_test")
single_output_test(
name = "binary_single_output_test",
size = "small",
dep = ":bin",
)
go_binary(
name = "bin",
srcs = ["bin.go"],
tags = ["manual"],
)
single_output_test(
name = "test_single_output_test",
size = "small",
dep = ":test",
)
go_test(
name = "test",
size = "small",
srcs = ["test.go"],
tags = ["manual"],
)