@@ -191,9 +191,9 @@ def test(self):
191
191
'build_watchos_device' )
192
192
test_should_skip_building_watchos_sim = \
193
193
generate_should_skip_building_platform (
194
- 'watchsimulator-x86_64 ' ,
194
+ 'watchsimulator-i386 ' ,
195
195
'WATCHOS_SIMULATOR' ,
196
- 'swift-test-stdlib-watchsimulator-x86_64 ' ,
196
+ 'swift-test-stdlib-watchsimulator-i386 ' ,
197
197
'build_watchos_simulator' )
198
198
199
199
def generate_should_build_full_targets_when_test (test_arg_name ):
@@ -233,7 +233,7 @@ def test(self):
233
233
'stress_test' )
234
234
235
235
def generate_should_skip_testing_platform (
236
- host_target , build_arg_name , test_arg_name , extra_test_arg_name = None ):
236
+ host_target , build_arg_name , test_arg_name ):
237
237
def test (self ):
238
238
args = self .default_args ()
239
239
setattr (args , build_arg_name , True )
@@ -245,8 +245,6 @@ def test(self):
245
245
self .assertEqual (len (before .swift_test_run_targets ), 0 )
246
246
247
247
setattr (args , test_arg_name , True )
248
- if extra_test_arg_name is not None :
249
- setattr (args , extra_test_arg_name , True )
250
248
after = HostSpecificConfiguration (host_target , args )
251
249
self .assertIn ('check-swift-{}' .format (host_target ),
252
250
after .swift_test_run_targets )
@@ -292,10 +290,27 @@ def test(self):
292
290
# NOTE: test_watchos_host is not supported in open-source Swift
293
291
test_should_skip_testing_watchos_sim = \
294
292
generate_should_skip_testing_platform (
295
- 'watchsimulator-x86_64 ' ,
293
+ 'watchsimulator-i386 ' ,
296
294
'build_watchos_simulator' ,
297
- 'test_watchos_simulator' ,
298
- 'test_watchos_64bit_simulator' )
295
+ 'test_watchos_simulator' )
296
+
297
+ def test_should_skip_testing_32bit_watchos (self ):
298
+ host_target = 'watchsimulator-i386'
299
+ args = self .default_args ()
300
+ args .build_watchos_simulator = True
301
+ args .test_watchos_simulator = True
302
+ args .test_watchos_32bit_simulator = False
303
+ args .host_target = host_target
304
+ args .stdlib_deployment_targets = [host_target ]
305
+ args .build_stdlib_deployment_targets = 'all'
306
+
307
+ before = HostSpecificConfiguration (host_target , args )
308
+ self .assertEqual (len (before .swift_test_run_targets ), 0 )
309
+
310
+ args .test_watchos_32bit_simulator = True
311
+ after = HostSpecificConfiguration (host_target , args )
312
+ self .assertIn ('check-swift-watchsimulator-i386' ,
313
+ after .swift_test_run_targets )
299
314
300
315
def generate_should_allow_testing_only_host (
301
316
host_target , build_arg_name , test_arg_name , host_test_arg_name ):
@@ -666,6 +681,7 @@ def default_args(self):
666
681
test_freebsd = False ,
667
682
test_ios_host = False ,
668
683
test_ios_simulator = False ,
684
+ test_watchos_32bit_simulator = True ,
669
685
test_linux = False ,
670
686
test_optimize_for_size = False ,
671
687
test_optimize_none_with_implicit_dynamic = False ,
0 commit comments