xref: /aosp_15_r20/external/bazelbuild-rules_go/tests/legacy/test_build_constraints/BUILD.bazel (revision 9bb1b549b6a84214c53be0924760be030e66b93a)
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_test(
4    name = "go_default_test",
5    size = "small",
6    srcs = [
7        # Filtered by filename suffix
8        "foo_linux_test.go",
9        # Filtered by tag
10        "foo_unknown_test.go",
11        "bar_unknown_test.go",
12    ],
13    embed = [":go_default_library"],
14)
15
16# Contains more test cases. Checks that build constraints are applied to
17# sources found through the library attribute.
18go_library(
19    name = "go_default_library",
20    srcs = [
21        "baz_linux_test.go",
22        "baz_unknown_test.go",
23    ],
24    importpath = "github.com/bazelbuild/rules_go/tests/test_build_constraints",
25)
26