aboutsummaryrefslogtreecommitdiff
path: root/tests/legacy/cgo_multi_dir/BUILD.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'tests/legacy/cgo_multi_dir/BUILD.bazel')
-rw-r--r--tests/legacy/cgo_multi_dir/BUILD.bazel22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/legacy/cgo_multi_dir/BUILD.bazel b/tests/legacy/cgo_multi_dir/BUILD.bazel
new file mode 100644
index 00000000..491dbcdd
--- /dev/null
+++ b/tests/legacy/cgo_multi_dir/BUILD.bazel
@@ -0,0 +1,22 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
+
+# TODO(#746) exclude because gazelle does not recognise the rule below
+# gazelle:exclude bar
+# gazelle:exclude foo
+
+go_test(
+ name = "go_default_test",
+ size = "small",
+ srcs = ["cgo_multi_dir_test.go"],
+ embed = [":go_default_library"],
+)
+
+go_library(
+ name = "go_default_library",
+ srcs = [
+ "bar/bar.go",
+ "foo/foo.go",
+ ],
+ cgo = True,
+ importpath = "github.com/bazelbuild/rules_go/tests/cgo_multi_dir",
+)