@@ -213,6 +213,9 @@ def add_extra_cmake_options(self):
213
213
self .cmake_options .define ('SWIFT_THREADING_PACKAGE:STRING' , 'none' )
214
214
215
215
def test (self , host_target ):
216
+ self ._test (host_target , 'wasm32-wasip1' )
217
+
218
+ def _test (self , host_target , target_triple ):
216
219
build_root = os .path .dirname (self .build_dir )
217
220
bin_paths = [
218
221
os .path .join (self ._host_swift_build_dir (host_target ), 'bin' ),
@@ -234,7 +237,14 @@ def test(self, host_target):
234
237
'LIT_FILTER_OUT' :
235
238
'(Concurrency/Runtime/clock.swift|stdlib/StringIndex.swift)' ,
236
239
}
237
- self .test_with_cmake (None , [test_target , 'check-swift-embedded-wasi' ], self ._build_variant , [], test_env = env )
240
+
241
+ # Embedded stdlib is not built for the threads triple, don't include embedded tests for it.
242
+ if target_triple == 'wasm32-wasip1-threads' :
243
+ test_targets = [test_target ]
244
+ else :
245
+ test_targets = [test_target , 'check-swift-embedded-wasi' ]
246
+
247
+ self .test_with_cmake (None , test_targets , self ._build_variant , [], test_env = env )
238
248
239
249
def should_test_executable (self ) -> bool :
240
250
return True
@@ -271,6 +281,9 @@ class WasmThreadsStdlib(WasmStdlib):
271
281
def build (self , host_target ):
272
282
self ._build (host_target , 'wasm32-wasip1-threads' , 'wasip1-threads-wasm32' )
273
283
284
+ def test (self , host_target ):
285
+ self ._test (host_target , 'wasm32-wasip1-threads' )
286
+
274
287
def should_test_executable (self ):
275
288
# TODO(katei): Enable tests once WasmKit supports WASI threads
276
289
return False
0 commit comments