@@ -23,6 +23,7 @@ config.test_exec_root = lit_config.params.get(
23
23
config .available_features .add ("platform=" + platform .system ())
24
24
config .available_features .add ("scheme=" + lit_config .params .get ("scheme" , "main" ))
25
25
26
+ # --param package-path=PATH
26
27
package_path = lit_config .params .get ("package-path" )
27
28
if package_path :
28
29
package_path = os .path .abspath (package_path )
31
32
lit_config .warning ("'--param package-path=PATH' is not set, skipping toolchain tests" )
32
33
config .swift_package_path = package_path
33
34
35
+ # --param swift-sdk=<swift-sdk-id>
36
+ swift_sdk = lit_config .params .get ("swift-sdk" )
37
+ if swift_sdk :
38
+ lit_config .note (f"testing Swift SDK: { swift_sdk } " )
39
+ else :
40
+ lit_config .warning ("'--param swift-sdk=<swift-sdk-id>' is not set, skipping Swift SDK tests" )
41
+ config .swift_sdk = swift_sdk
42
+
43
+ # --param swift-sdks-path=<swift-sdks-path>
44
+ config .swift_sdks_path = lit_config .params .get ("swift-sdks-path" )
45
+
46
+ # --param base-toolchain-path=PATH
47
+ base_toolchain_path = lit_config .params .get ("base-toolchain-path" )
48
+ if base_toolchain_path :
49
+ base_toolchain_path = os .path .abspath (base_toolchain_path )
50
+ lit_config .note (f"using base toolchain: { base_toolchain_path } " )
51
+ else :
52
+ base_toolchain_path = os .path .abspath (os .path .join (workspace_root , "build" , "Packaging" , "base-snapshot" ))
53
+ lit_config .note (f"using default base toolchain: { base_toolchain_path } " )
54
+ config .base_toolchain_path = base_toolchain_path
55
+
34
56
def llvm_tool_path (tool ):
35
57
candidates = []
36
58
llvm_bin = lit_config .params .get ("llvm-bin" )
0 commit comments