Skip to content

Commit 4a1e76f

Browse files
authored
Merge pull request #9890 from swiftlang/cherrypick-6c8125369520279dcd0670f4c6822c7b2826bc07
[lldb][swift] Check runtime dependencies of SwiftREPL tests in local …
2 parents b409002 + 54957b5 commit 4a1e76f

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

lldb/test/Shell/SwiftREPL/lit.local.cfg

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,14 @@ config.suffixes = ['.test']
22

33
if 'lldb-repro' in config.available_features:
44
config.unsupported = True
5+
6+
def check_exists(path):
7+
import os
8+
if not os.path.isfile(path):
9+
lit_config.warning(f"Runtime dependency not found: {path}")
10+
11+
# Check runtime dependencies for SwiftREPL tests on Windows
12+
if sys.platform == "win32":
13+
host_arch = config.host_triple.split("-")[0]
14+
check_exists(f"{config.swift_libs_dir}/windows/{host_arch}/swiftrt.obj")
15+
check_exists(f"{config.llvm_shlib_dir}/swiftCore.dll")

lldb/test/Shell/lit.site.cfg.py.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ config.libcxx_libs_dir = "@LIBCXX_LIBRARY_DIR@"
2222
config.target_triple = "@LLVM_TARGET_TRIPLE@"
2323
config.python_executable = "@Python3_EXECUTABLE@"
2424
config.swiftc = "@LLDB_SWIFTC@"
25+
config.swift_libs_dir = '@LLDB_SWIFT_LIBS@'
2526
config.lldb_enable_swift = @LLDB_ENABLE_SWIFT_SUPPORT@
2627
config.have_zlib = @LLVM_ENABLE_ZLIB@
2728
config.objc_gnustep_dir = "@LLDB_TEST_OBJC_GNUSTEP_DIR@"

0 commit comments

Comments
 (0)