aboutsummaryrefslogtreecommitdiff
path: root/tests/legacy/examples/cgo/example_command/BUILD.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'tests/legacy/examples/cgo/example_command/BUILD.bazel')
-rw-r--r--tests/legacy/examples/cgo/example_command/BUILD.bazel26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/legacy/examples/cgo/example_command/BUILD.bazel b/tests/legacy/examples/cgo/example_command/BUILD.bazel
new file mode 100644
index 00000000..db480ab7
--- /dev/null
+++ b/tests/legacy/examples/cgo/example_command/BUILD.bazel
@@ -0,0 +1,26 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_binary")
+load(":generate_test.bzl", "generate_script")
+
+package(
+ default_visibility = ["//visibility:public"],
+)
+
+go_binary(
+ name = "example_command",
+ srcs = ["main.go"],
+ deps = [
+ "//tests/legacy/examples/cgo:go_default_library",
+ ],
+)
+
+generate_script(
+ name = "example_command_script",
+ binary = ":example_command",
+)
+
+sh_test(
+ name = "example_command_test",
+ size = "small",
+ srcs = [":example_command_script"],
+ data = [":example_command"],
+)