Skip to content

Commit c5a6610

Browse files
[lldb] add support to filter lang/swift tests through an environment variable
1 parent 10999b6 commit c5a6610

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lldb/test/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,20 @@ configure_lit_site_cfg(
274274
MAIN_CONFIG
275275
${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py)
276276

277+
# BEGIN SWIFT MOD
278+
set(CHECK_LLDB_ARGS "")
279+
if(DEFINED ENV{ONLY_SWIFT_LLDB_TESTS})
280+
if($ENV{ONLY_SWIFT_LLDB_TESTS})
281+
set(CHECK_LLDB_ARGS "--filter=[sS]wift")
282+
endif()
283+
endif()
284+
# END SWIFT MOD
285+
277286
add_lit_testsuite(check-lldb "Running lldb lit test suite"
278287
${CMAKE_CURRENT_BINARY_DIR}
288+
# BEGIN SWIFT MOD
289+
ARGS ${CHECK_LLDB_ARGS}
290+
# END SWIFT MOD
279291
DEPENDS
280292
lldb-api-test-deps
281293
lldb-shell-test-deps

0 commit comments

Comments
 (0)