@@ -2344,8 +2344,10 @@ for host in "${ALL_HOSTS[@]}"; do
2344
2344
LLVM_LIT_ARGS=" ${LLVM_LIT_ARGS} -j $( sysctl hw.physicalcpu | awk -v N=${BUILD_JOBS} ' { print (N < $2) ? N : $2 }' ) "
2345
2345
fi
2346
2346
2347
+ FILTER_SWIFT_OPTION=" --filter=[sS]wift"
2348
+ LLVM_LIT_FILTER_ARG=" "
2347
2349
if [[ " $( true_false ${LLDB_TEST_SWIFT_ONLY} ) " == " TRUE" ]]; then
2348
- LLVM_LIT_ARGS =" ${LLVM_LIT_ARGS} --filter=[sS]wift "
2350
+ LLVM_LIT_FILTER_ARG =" ${FILTER_SWIFT_OPTION} "
2349
2351
fi
2350
2352
2351
2353
# Record the times test took and report the slowest.
@@ -2354,19 +2356,18 @@ for host in "${ALL_HOSTS[@]}"; do
2354
2356
echo " --- Running LLDB unit tests ---"
2355
2357
with_pushd ${lldb_build_dir} \
2356
2358
call ${NINJA_BIN} -j ${BUILD_JOBS} unittests/LLDBUnitTests
2357
- echo " --- Running LLDB Swift tests ( ClangImporter) ---"
2359
+ echo " --- Running LLDB tests ( Swift tests using ClangImporter) ---"
2358
2360
with_pushd ${lldb_build_dir} \
2359
2361
call ${NINJA_BIN} -j ${BUILD_JOBS} lldb-test-deps
2360
2362
with_pushd ${results_dir} \
2361
2363
call " ${llvm_build_dir} /bin/llvm-lit" \
2362
2364
" ${lldb_build_dir} /test" \
2363
- ${LLVM_LIT_ARGS}
2364
- # Rerun the tests with DWARFImporter only.
2365
- echo " --- Running LLDB Swift tests (DWARFImporter) ---"
2365
+ ${LLVM_LIT_ARGS} ${LLVM_LIT_FILTER_ARG}
2366
+ echo " --- Rerun LLDB Swift tests (using only DWARFImporter) ---"
2366
2367
with_pushd ${results_dir} \
2367
2368
call " ${llvm_build_dir} /bin/llvm-lit" \
2368
2369
" ${lldb_build_dir} /test" \
2369
- ${LLVM_LIT_ARGS} \
2370
+ ${LLVM_LIT_ARGS} ${FILTER_SWIFT_OPTION} \
2370
2371
--param dotest-args=" --setting symbols.use-swift-clangimporter=false"
2371
2372
2372
2373
if [[ -x " ${LLDB_TEST_SWIFT_COMPATIBILITY} " ]] ; then
0 commit comments