Skip to content

Commit

Permalink
Test pkg_files runfiles destination paths
Browse files Browse the repository at this point in the history
  • Loading branch information
sitaktif committed Apr 25, 2024
1 parent cec9af4 commit 16465e6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/mappings/mappings_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,24 @@ def _test_pkg_files_contents():
target_under_test = ":pf_strip_prefix_from_root_invalid_g",
)

# Test include_runfiles.
pkg_files(
name = "pf_include_runfiles_g",
include_runfiles = True,
srcs = ["//tests:an_executable"],
tags = ["manual"],
)

pkg_files_contents_test(
name = "pf_include_runfiles",
target_under_test = ":pf_include_runfiles_g",
expected_dests = [
"an_executable",
"an_executable.runfiles/_main/tests/foo.cc",
"an_executable.runfiles/_main/tests/testdata/hello.txt",
],
)

def _test_pkg_files_exclusions():
# Normal filegroup, used in all of the below tests
#
Expand Down

0 comments on commit 16465e6

Please sign in to comment.