File tree Expand file tree Collapse file tree 4 files changed +13
-0
lines changed Expand file tree Collapse file tree 4 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,8 @@ class HostSpecificConfiguration(object):
182
182
if test :
183
183
if test_host_only :
184
184
suffix = "-only_non_executable"
185
+ elif args .only_executable_test :
186
+ suffix = "-only_executable"
185
187
else :
186
188
suffix = ""
187
189
subset_suffix = ""
@@ -730,6 +732,8 @@ class BuildScriptInvocation(object):
730
732
impl_args += ["--long-test" ]
731
733
if args .stress_test :
732
734
impl_args += ["--stress-test" ]
735
+ if args .only_executable_test :
736
+ impl_args += ["--only-executable-test" ]
733
737
if not args .benchmark :
734
738
impl_args += ["--skip-test-benchmarks" ]
735
739
if not args .test_optimized :
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ KNOWN_SETTINGS=(
178
178
skip-test-optimize-none-implicit-dynamic " " " set to skip testing the test suite in optimize none with implicit dynamic mode"
179
179
skip-test-sourcekit " " " set to skip testing SourceKit"
180
180
stress-test-sourcekit " " " set to run the stress-SourceKit target"
181
+ only-executable-test " " " only run the executable variant of the swift lit tests"
181
182
workspace " ${HOME} /src" " source directory containing llvm, clang, swift"
182
183
enable-llvm-assertions " 1" " set to enable llvm assertions"
183
184
build-llvm " 1" " set to 1 to build LLVM and Clang"
@@ -1482,6 +1483,8 @@ function calculate_targets_for_host() {
1482
1483
test_target_suffix=" "
1483
1484
if [[ -n " ${test_host_only} " ]] ; then
1484
1485
test_target_suffix=" -only_non_executable"
1486
+ elif [[ -n " ${ONLY_EXECUTABLE_TEST} " ]] ; then
1487
+ test_target_suffix=" -only_executable"
1485
1488
fi
1486
1489
1487
1490
test_subset_target_suffix=" "
Original file line number Diff line number Diff line change @@ -776,6 +776,10 @@ def create_argument_parser():
776
776
option ('--host-test' , toggle_true ,
777
777
help = 'run executable tests on host devices (such as iOS or tvOS)' )
778
778
779
+ option ('--only-executable-test' , toggle_true ,
780
+ help = 'Only run executable tests. Does nothing if host-test is not '
781
+ 'allowed' )
782
+
779
783
option ('--test-paths' , append ,
780
784
type = argparse .ShellSplitType (),
781
785
help = 'run tests located in specific directories and/or files '
Original file line number Diff line number Diff line change 140
140
'host_lipo' : None ,
141
141
'host_target' : targets .StdlibDeploymentTarget .host_target ().name ,
142
142
'host_test' : False ,
143
+ 'only_executable_test' : False ,
143
144
'install_prefix' : targets .install_prefix (),
144
145
'install_symroot' : None ,
145
146
'install_destdir' : None ,
@@ -450,6 +451,7 @@ class IgnoreOption(_BaseOption):
450
451
EnableOption ('--export-compile-commands' ),
451
452
EnableOption ('--foundation' , dest = 'build_foundation' ),
452
453
EnableOption ('--host-test' ),
454
+ EnableOption ('--only-executable-test' ),
453
455
EnableOption ('--libdispatch' , dest = 'build_libdispatch' ),
454
456
EnableOption ('--libicu' , dest = 'build_libicu' ),
455
457
EnableOption ('--indexstore-db' , dest = 'build_indexstoredb' ),
You can’t perform that action at this time.
0 commit comments