xref: /aosp_15_r20/external/bazel-skylib/tests/bzl_library/BUILD (revision bcb5dc7965af6ee42bf2f21341a2ec00233a8c8a)
1*bcb5dc79SHONG Yifanload("//:bzl_library.bzl", "bzl_library")
2*bcb5dc79SHONG Yifanload(":bzl_library_test.bzl", "bzl_library_test")
3*bcb5dc79SHONG Yifan
4*bcb5dc79SHONG Yifanpackage(
5*bcb5dc79SHONG Yifan    default_applicable_licenses = ["//:license"],
6*bcb5dc79SHONG Yifan    default_testonly = 1,
7*bcb5dc79SHONG Yifan)
8*bcb5dc79SHONG Yifan
9*bcb5dc79SHONG Yifanlicenses(["notice"])
10*bcb5dc79SHONG Yifan
11*bcb5dc79SHONG Yifanfilegroup(
12*bcb5dc79SHONG Yifan    name = "a",
13*bcb5dc79SHONG Yifan    srcs = ["testdata/a.bzl"],
14*bcb5dc79SHONG Yifan)
15*bcb5dc79SHONG Yifan
16*bcb5dc79SHONG Yifanbzl_library(
17*bcb5dc79SHONG Yifan    name = "b",
18*bcb5dc79SHONG Yifan    srcs = ["testdata/b.bzl"],
19*bcb5dc79SHONG Yifan)
20*bcb5dc79SHONG Yifan
21*bcb5dc79SHONG Yifanbzl_library(
22*bcb5dc79SHONG Yifan    name = "c",
23*bcb5dc79SHONG Yifan    srcs = ["testdata/c.bzl"],
24*bcb5dc79SHONG Yifan    deps = [
25*bcb5dc79SHONG Yifan        ":a",
26*bcb5dc79SHONG Yifan        ":b",
27*bcb5dc79SHONG Yifan    ],
28*bcb5dc79SHONG Yifan)
29*bcb5dc79SHONG Yifan
30*bcb5dc79SHONG Yifanbzl_library_test(
31*bcb5dc79SHONG Yifan    name = "bzl_library_test",
32*bcb5dc79SHONG Yifan    expected_srcs = ["testdata/c.bzl"],
33*bcb5dc79SHONG Yifan    expected_transitive_srcs = [
34*bcb5dc79SHONG Yifan        "testdata/a.bzl",
35*bcb5dc79SHONG Yifan        "testdata/b.bzl",
36*bcb5dc79SHONG Yifan        "testdata/c.bzl",
37*bcb5dc79SHONG Yifan    ],
38*bcb5dc79SHONG Yifan    target_under_test = ":c",
39*bcb5dc79SHONG Yifan)
40