1

move golang tests to its own directory

this prepares for more test binaries.
This commit is contained in:
Motiejus Jakštys
2022-02-03 14:58:05 +02:00
parent 5631c7e2b6
commit ebbf499208
5 changed files with 18 additions and 18 deletions

View File

@@ -2,22 +2,22 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
load("//rules:rules_go.bzl", "go_binary")
go_library(
name = "test_lib",
name = "go_lib",
srcs = ["hello.go"],
cgo = True,
importpath = "git.sr.ht/~motiejus/bazel-zig-cc/test",
importpath = "git.sr.ht/~motiejus/bazel-zig-cc/test/go",
visibility = ["//visibility:private"],
)
go_binary(
name = "test",
name = "go",
embed = [":go_lib"],
static = "on",
embed = [":test_lib"],
visibility = ["//visibility:public"],
)
go_test(
name = "test_test",
name = "go_test",
srcs = ["hello_test.go"],
embed = [":test_lib"],
embed = [":go_lib"],
)