Skip to content

Commit 7521101

Browse files
authored
Merge pull request #59120 from drodriguez/test-with-cxx-interop
[test] New test mode to execute all tests with C++ interop enabled.
2 parents bc53d1c + ae1f707 commit 7521101

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ set(TEST_MODES
219219
optimize_none_with_implicit_dynamic
220220
optimize_with_implicit_dynamic
221221
only_executable only_non_executable
222+
with_cxx_interop
222223
)
223224
set(TEST_SUBSETS
224225
primary

test/lit.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,10 @@ elif swift_test_mode == 'only_executable':
708708
config.limit_to_features.add("executable_test")
709709
elif swift_test_mode == 'only_non_executable':
710710
config.available_features.add("nonexecutable_test")
711+
elif swift_test_mode == 'with_cxx_interop':
712+
config.available_features.add("with_cxx_interop")
713+
config.swift_frontend_test_options += ' -enable-experimental-cxx-interop'
714+
config.swift_driver_test_options += ' -Xfrontend -enable-experimental-cxx-interop'
711715
else:
712716
lit_config.fatal("Unknown test mode %r" % swift_test_mode)
713717

0 commit comments

Comments
 (0)