github.com/0xKiwi/rules_go@v0.24.3/tests/legacy/binary_test_outputs/BUILD.bazel (about)

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