Skip to content

Commit b63d4c8

Browse files
committed
[test] New test mode to execute all tests with C++ interop enabled.
To improve the reliability of the C++ interop, a new test mode is added to the existing ones. The new mode enables the usage of `--enable-cxx-interop` in every test invocation of the frontend and the driver. The ideal situation would be that with and without the C++ interop the test should not fail. Currently around 283 tests seems to still fail.
1 parent 0bf6fc3 commit b63d4c8

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-cxx-interop'
714+
config.swift_driver_test_options += ' -Xfrontend -enable-cxx-interop'
711715
else:
712716
lit_config.fatal("Unknown test mode %r" % swift_test_mode)
713717

0 commit comments

Comments
 (0)