@@ -169,6 +169,11 @@ lldb_path = lit_config.params.get(
169
169
"lldb" ,
170
170
os .path .join (package_path , "usr" , "bin" , "lldb" ))
171
171
lit_config .note ("testing using 'lldb': {}" .format (lldb_path ))
172
+
173
+ repl_swift_dummy_path = lit_config .params .get (
174
+ "repl_swift" ,
175
+ os .path .join (package_path , "usr" , "bin" , "repl_swift" ))
176
+ lit_config .note ("testing using 'repl_swift': {}" .format (repl_swift_dummy_path ))
172
177
173
178
# Verify they exist.
174
179
if not os .path .exists (swift_path ):
@@ -182,12 +187,17 @@ if not os.path.exists(lldb_path):
182
187
lldb_path = subprocess .check_output (["xcrun" , "--find" , "lldb" ]).strip ()
183
188
else :
184
189
lit_config .fatal ("lldb does not exist!" )
190
+ if not os .path .exists (repl_swift_dummy_path ):
191
+ if platform .system () == 'Linux' :
192
+ lit_config .fatal ("repl_swift does not exist!" )
185
193
186
194
# Define our supported substitutions.
187
195
config .substitutions .append ( ('%{package_path}' , package_path ) )
188
196
config .substitutions .append ( ('%{python}' , sys .executable ) )
189
197
config .substitutions .append ( ('%{not}' , os .path .join (srcroot , "not" )) )
190
198
config .substitutions .append ( ('%{lldb}' , lldb_path ) )
199
+ if platform .system () == 'Linux' :
200
+ config .substitutions .append ( ('%{repl_swift}' , repl_swift_dummy_path ) )
191
201
config .substitutions .append ( ('%{swift}' , swift_path ) )
192
202
config .substitutions .append ( ('%{swiftc}' , swiftc_path ) )
193
203
config .substitutions .append ( ('%{FileCheck}' , filecheck_path ) )
0 commit comments