Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ swift_path = lit_config.params.get(
os.path.join(package_path, "usr", "bin", "swift"))
lit_config.note("testing using 'swift': %r" % (swift_path,))

swift_bin_dir_path = lit_config.params.get(
"swift",
os.path.join(package_path, "usr", "bin"))
lit_config.note("swift bin dir: %r" % (swift_bin_dir_path,))

swiftc_path = lit_config.params.get(
"swiftc",
os.path.join(package_path, "usr", "bin", "swiftc"))
Expand Down Expand Up @@ -226,6 +231,7 @@ config.substitutions.append( ('%{swiftc}', swiftc_path) )
config.substitutions.append( ('%{FileCheck}', filecheck_path) )
config.substitutions.append( ('%{readelf}', readelf_path) )
config.substitutions.append( ('%{sourcekit-lsp}', sourcekit_lsp_path) )
config.substitutions.append( ('%{swift_bin_dir}', swift_bin_dir_path) )

# Add substitutions for swiftpm executables.
swiftpm_build = lit_config.params.get("swiftpm-build")
Expand Down
4 changes: 4 additions & 0 deletions test-snapshot-binaries/test-rpath-plutil-linux.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Tests that RUNPATH is correct for the plutil binary on Linux
# REQUIRES: platform=Linux
# RUN: %{readelf} -d %{swift_bin_dir}/plutil | %{FileCheck} %s
# CHECK: {{.*}} RUNPATH {{.*}}:$ORIGIN/../lib/swift/linux