blob: f24941a7ed0a86b13f2ac3b132c0e578252176f5 [file]
load("@io_bazel_rules_go//go:def.bzl", "go_binary")
load("@rules_shell//shell:sh_test.bzl", "sh_test")
go_binary(
name = "some_binary",
srcs = ["main.go"],
)
genrule(
name = "normalised_binary",
srcs = [":some_binary"],
outs = ["the_binary"],
cmd = "cp $(SRCS) $@",
)
sh_test(
name = "executable_name",
size = "small",
srcs = ["name_test.sh"],
data = [":normalised_binary"],
)