Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lldb] Check runtime dependencies of SwiftREPL tests in local lit config #9421

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
11 changes: 11 additions & 0 deletions lldb/test/Shell/SwiftREPL/lit.local.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,14 @@ config.suffixes = ['.test']

if 'lldb-repro' in config.available_features:
config.unsupported = True

def check_exists(path):
import os
if not os.path.isfile(path):
lit_config.warning(f"Runtime dependency not found: {path}")

# Check runtime dependencies for SwiftREPL tests on Windows
if sys.platform == "win32":
host_arch = config.host_triple.split("-")[0]
check_exists(f"{config.swift_libs_dir}/windows/{host_arch}/swiftrt.obj")
check_exists(f"{config.llvm_shlib_dir}/swiftCore.dll")
1 change: 1 addition & 0 deletions lldb/test/Shell/lit.site.cfg.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ config.cmake_sysroot = lit_config.substitute("@CMAKE_SYSROOT@")
config.target_triple = "@LLVM_TARGET_TRIPLE@"
config.python_executable = "@Python3_EXECUTABLE@"
config.swiftc = "@LLDB_SWIFTC@"
config.swift_libs_dir = '@LLDB_SWIFT_LIBS@'
config.lldb_enable_swift = @LLDB_ENABLE_SWIFT_SUPPORT@
config.have_zlib = @LLVM_ENABLE_ZLIB@
config.objc_gnustep_dir = "@LLDB_TEST_OBJC_GNUSTEP_DIR@"
Expand Down