1# This test checks that go_binary and go_test produce a single output file. 2# See documentation in single_output_test.bzl. 3 4load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_test") 5load("@io_bazel_rules_go//go/private/tools:single_output_test.bzl", "single_output_test") 6 7single_output_test( 8 name = "binary_single_output_test", 9 size = "small", 10 dep = ":bin", 11) 12 13go_binary( 14 name = "bin", 15 srcs = ["bin.go"], 16 tags = ["manual"], 17) 18 19single_output_test( 20 name = "test_single_output_test", 21 size = "small", 22 dep = ":test", 23) 24 25go_test( 26 name = "test", 27 size = "small", 28 srcs = ["test.go"], 29 tags = ["manual"], 30) 31