2020-02-27 18:29:45 +00:00
|
|
|
load("//rules:diff_test.bzl", "diff_test")
|
2023-08-28 18:39:43 +00:00
|
|
|
load("//rules:select_file.bzl", "select_file")
|
2020-02-27 18:29:45 +00:00
|
|
|
|
2024-05-01 21:24:18 +00:00
|
|
|
package(
|
|
|
|
default_applicable_licenses = ["//:license"],
|
|
|
|
default_testonly = 1,
|
|
|
|
)
|
2020-04-15 10:57:49 +00:00
|
|
|
|
2024-05-02 18:38:05 +00:00
|
|
|
licenses(["notice"])
|
|
|
|
|
2020-02-27 18:29:45 +00:00
|
|
|
filegroup(
|
|
|
|
name = "fg",
|
|
|
|
srcs = [
|
|
|
|
"subdir/inner.txt",
|
|
|
|
":select_me.txt",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
select_file(
|
|
|
|
name = "select_me",
|
|
|
|
srcs = ":fg",
|
|
|
|
subpath = "select_me.txt",
|
|
|
|
)
|
|
|
|
|
|
|
|
select_file(
|
|
|
|
name = "select_inner",
|
|
|
|
srcs = ":fg",
|
|
|
|
subpath = "subdir/inner.txt",
|
|
|
|
)
|
|
|
|
|
|
|
|
diff_test(
|
|
|
|
name = "selected_me",
|
|
|
|
file1 = ":select_me",
|
|
|
|
file2 = ":select_me.txt",
|
|
|
|
)
|
|
|
|
|
|
|
|
diff_test(
|
|
|
|
name = "selected_inner",
|
|
|
|
file1 = ":select_inner",
|
|
|
|
file2 = "subdir/inner.txt",
|
|
|
|
)
|