1load("//:bzl_library.bzl", "bzl_library") 2load(":bzl_library_test.bzl", "bzl_library_test") 3 4package( 5 default_applicable_licenses = ["//:license"], 6 default_testonly = 1, 7) 8 9licenses(["notice"]) 10 11filegroup( 12 name = "a", 13 srcs = ["testdata/a.bzl"], 14) 15 16bzl_library( 17 name = "b", 18 srcs = ["testdata/b.bzl"], 19) 20 21bzl_library( 22 name = "c", 23 srcs = ["testdata/c.bzl"], 24 deps = [ 25 ":a", 26 ":b", 27 ], 28) 29 30bzl_library_test( 31 name = "bzl_library_test", 32 expected_srcs = ["testdata/c.bzl"], 33 expected_transitive_srcs = [ 34 "testdata/a.bzl", 35 "testdata/b.bzl", 36 "testdata/c.bzl", 37 ], 38 target_under_test = ":c", 39) 40