Add failing test case demonstrating issue with root_paths in the presence of globs in dependencies.

This commit is contained in:
Twan Koolen 2022-08-18 13:07:12 -04:00 committed by Greg Magolan
parent e3f194d413
commit e446a3d8e7
3 changed files with 25 additions and 0 deletions

View File

@ -29,6 +29,7 @@ load("//lib:directory_path.bzl", "make_directory_paths")
"expected_17",
"expected_18",
"expected_19",
"expected_20",
]
]
@ -415,3 +416,25 @@ diff_test(
file1 = "case_19",
file2 = ":expected_19",
)
# Case 20: handling of root_paths in the presence of globs in dependencies.
copy_to_directory(
name = "case_20_a",
srcs = glob(["dir_a/*"]),
)
copy_to_directory(
name = "case_20",
srcs = [
":case_20_a",
],
root_paths = [
"%s/case_20_a" % package_name(),
],
)
diff_test(
name = "case_20_test",
file1 = "case_20",
file2 = ":expected_20",
)

View File

@ -0,0 +1 @@
foobar

View File

@ -0,0 +1 @@
foobar