Add rules to the test_deps target. (#102)
* Add rules to the test_deps target. Likely needed for anyone doing integration tests using skylib. * Default public visibility and only tag things that are private.
This commit is contained in:
parent
97dc99e8a6
commit
4b67f5ff38
1
BUILD
1
BUILD
|
@ -15,6 +15,7 @@ filegroup(
|
||||||
srcs = [
|
srcs = [
|
||||||
"BUILD",
|
"BUILD",
|
||||||
"//lib:test_deps",
|
"//lib:test_deps",
|
||||||
|
"//rules:test_deps",
|
||||||
"//toolchains/unittest:test_deps",
|
"//toolchains/unittest:test_deps",
|
||||||
] + glob(["*.bzl"]),
|
] + glob(["*.bzl"]),
|
||||||
)
|
)
|
||||||
|
|
13
rules/BUILD
13
rules/BUILD
|
@ -2,16 +2,16 @@ load("//:bzl_library.bzl", "bzl_library")
|
||||||
|
|
||||||
licenses(["notice"])
|
licenses(["notice"])
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
bzl_library(
|
bzl_library(
|
||||||
name = "build_test",
|
name = "build_test",
|
||||||
srcs = ["build_test.bzl"],
|
srcs = ["build_test.bzl"],
|
||||||
visibility = ["//visibility:public"],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
bzl_library(
|
bzl_library(
|
||||||
name = "maprule",
|
name = "maprule",
|
||||||
srcs = ["maprule.bzl"],
|
srcs = ["maprule.bzl"],
|
||||||
visibility = ["//visibility:public"],
|
|
||||||
deps = [":maprule_private"],
|
deps = [":maprule_private"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -28,3 +28,12 @@ bzl_library(
|
||||||
# Exported for build_test.bzl to make sure of, it is an implementation detail
|
# Exported for build_test.bzl to make sure of, it is an implementation detail
|
||||||
# of the rule and should not be directly used by anything else.
|
# of the rule and should not be directly used by anything else.
|
||||||
exports_files(["empty_test.sh"])
|
exports_files(["empty_test.sh"])
|
||||||
|
|
||||||
|
filegroup(
|
||||||
|
name = "test_deps",
|
||||||
|
testonly = True,
|
||||||
|
srcs = [
|
||||||
|
"BUILD",
|
||||||
|
"empty_test.sh",
|
||||||
|
] + glob(["*.bzl"]),
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in New Issue