Skip to content

Commit c59b238

Browse files
committed
[test] Enable some language features in validation-test
The logic in test/lit.site.cfg.in and validation-test/lit.site.cfg.in is largely duplicated. This adds some of the missing features in order to try to fix backdeployconcurrency testing. This should be more fundamentally fixed to keep the different test configs in sync.
1 parent d1fe263 commit c59b238

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

validation-test/lit.site.cfg.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,15 @@ else:
116116
# even if SWIFT_USE_LINKER isn't set, we cannot use BFD for Android
117117
config.android_linker_name = "gold"
118118

119+
if "@SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING@" == "TRUE":
120+
config.available_features.add('differentiable_programming')
121+
if "@SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY@" == "TRUE":
122+
config.available_features.add('concurrency')
123+
if "@SWIFT_BACK_DEPLOY_CONCURRENCY@" == "TRUE":
124+
config.available_features.add('back_deploy_concurrency')
125+
if "@SWIFT_ENABLE_EXPERIMENTAL_DISTRIBUTED@" == "TRUE":
126+
config.available_features.add('distributed')
127+
119128
# Let the main config do the real work.
120129
config.test_exec_root = os.path.dirname(os.path.realpath(__file__))
121130
lit_config.load_config(config, "@SWIFT_SOURCE_DIR@/validation-test/lit.cfg")

0 commit comments

Comments
 (0)