Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions utils/build-presets.ini
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,10 @@ mixin-preset=
buildbot_linux_base

skip-test-swiftdocc
skip-test-sourcekit-lsp
skip-test-lldb

extra-cmake-options=-DLLDB_ENABLE_PYTHON=NO

[preset: buildbot_linux,release_foundation_tests]
mixin-preset=buildbot_linux
Expand Down
15 changes: 12 additions & 3 deletions utils/build-script-impl
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ KNOWN_SETTINGS=(
## Skip Test ...
skip-test-benchmarks "" "set to skip running Swift Benchmark Suite"
skip-test-sourcekit "" "set to skip testing SourceKit"
skip-test-lldb-unittests "" "set to skip running LLDB unit tests"

## Extra ... CMake Options
common-cmake-options "" "CMake options used for all targets, including LLVM/Clang"
Expand Down Expand Up @@ -2188,6 +2189,12 @@ for host in "${ALL_HOSTS[@]}"; do
)
fi

if [[ "${SKIP_TEST_LLDB_UNITTESTS}" ]]; then
cmake_options+=(
-DLLDB_INCLUDE_TESTS:BOOL=OFF
)
fi

# Add the extra CMake args at the end so they can override
# values set earlier.
if [ ! -z "${LLDB_EXTRA_CMAKE_ARGS}" ]; then
Expand Down Expand Up @@ -2675,9 +2682,11 @@ for host in "${ALL_HOSTS[@]}"; do
LLVM_LIT_FILTER_ARG="${FILTER_SWIFT_OPTION}"
fi

echo "--- Running LLDB unit tests ---"
with_pushd ${lldb_build_dir} \
call ${NINJA_BIN} -j ${BUILD_JOBS} unittests/LLDBUnitTests
if [[ ! "${SKIP_TEST_LLDB_UNITTESTS}" ]]; then
echo "--- Running LLDB unit tests ---"
with_pushd ${lldb_build_dir} \
call ${NINJA_BIN} -j ${BUILD_JOBS} unittests/LLDBUnitTests
fi
echo "--- Running LLDB tests (Swift Config: ClangImporter) ---"
with_pushd ${lldb_build_dir} \
call ${NINJA_BIN} -j ${BUILD_JOBS} lldb-test-deps
Expand Down