Skip to content

Verbose tests #63218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 27, 2023
Merged
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
18 changes: 18 additions & 0 deletions utils/build-presets.ini
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ lldb-assertions

[preset: lldb-pull-request]
lldb
lit-args=-v

lldb-use-system-debugserver
release-debuginfo
test
Expand Down Expand Up @@ -686,6 +688,22 @@ build-ninja
skip-build-swift
skip-build-cmark

[preset: buildbot_incremental_lldb]
lldb
release
test

lit-args=-v --time-tests
skip-build-benchmarks
no-swift-stdlib-assertions
lldb-use-system-debugserver

skip-early-swift-driver
skip-test-swift
skip-test-cmark



#===------------------------------------------------------------------------===#
# A setting to run a buildbot that passes extra swift args when compiling
# modules that match regexp.
Expand Down
8 changes: 4 additions & 4 deletions utils/build-script-impl
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,9 @@ function set_build_options_for_host() {
swift_cmake_options+=(
-DLLVM_LIT_ARGS="${LLVM_LIT_ARGS} -j ${LIT_JOBS}"
)
lldb_cmake_options+=(
-DLLVM_LIT_ARGS="${LLVM_LIT_ARGS} -j ${LIT_JOBS}"
)

if [[ "${CLANG_PROFILE_INSTR_USE}" ]]; then
llvm_cmake_options+=(
Expand Down Expand Up @@ -2908,9 +2911,6 @@ for host in "${ALL_HOSTS[@]}"; do
LLVM_LIT_FILTER_ARG="${FILTER_SWIFT_OPTION}"
fi

# Record the times test took and report the slowest.
LLVM_LIT_ARGS="${LLVM_LIT_ARGS} -v --time-tests"

echo "--- Running LLDB unit tests ---"
with_pushd ${lldb_build_dir} \
call ${NINJA_BIN} -j ${BUILD_JOBS} unittests/LLDBUnitTests
Expand Down Expand Up @@ -3554,7 +3554,7 @@ function build_and_test_installable_package() {
TIMEOUT_ARGS=--timeout=600 # 10 minutes
fi
with_pushd "${PKG_TESTS_SOURCE_DIR}" \
call python3 "${LIT_EXECUTABLE_PATH}" . -sv --param package-path="${PKG_TESTS_SANDBOX}" --param test-exec-root="${PKG_TESTS_TEMPS}" --param llvm-bin-dir="${LLVM_BIN_DIR}" ${TIMEOUT_ARGS}
call python3 "${LIT_EXECUTABLE_PATH}" . ${LLVM_LIT_ARGS} --param package-path="${PKG_TESTS_SANDBOX}" --param test-exec-root="${PKG_TESTS_TEMPS}" --param llvm-bin-dir="${LLVM_BIN_DIR}" ${TIMEOUT_ARGS}
fi
fi
}
Expand Down