Skip to content

Commit 229be6b

Browse files
authored
Merge pull request swiftlang#14436 from vedantk/disable-unit-test
2 parents c035333 + 4d5684b commit 229be6b

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

utils/build-script-impl

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2733,20 +2733,22 @@ for host in "${ALL_HOSTS[@]}"; do
27332733
fi
27342734
lldb_build_dir=$(build_directory ${host} lldb)
27352735

2736-
# Run the gtests.
2737-
if [[ "$(uname -s)" == "Darwin" && "$(true_false ${LLDB_BUILD_WITH_XCODE})" == "TRUE" ]] ; then
2738-
set_lldb_xcodebuild_options
2739-
# Run the LLDB unittests (gtests).
2740-
with_pushd ${LLDB_SOURCE_DIR} \
2741-
call xcodebuild -scheme lldb-gtest -configuration ${LLDB_BUILD_MODE} ${lldb_xcodebuild_options[@]}
2742-
rc=$?
2743-
if [[ "$rc" -ne 0 ]] ; then
2744-
>&2 echo "error: LLDB gtests failed"
2745-
exit 1
2736+
if [[ ! "${LLDB_TEST_SWIFT_ONLY}" ]]; then
2737+
# Run the gtests.
2738+
if [[ "$(uname -s)" == "Darwin" && "$(true_false ${LLDB_BUILD_WITH_XCODE})" == "TRUE" ]] ; then
2739+
set_lldb_xcodebuild_options
2740+
# Run the LLDB unittests (gtests).
2741+
with_pushd ${LLDB_SOURCE_DIR} \
2742+
call xcodebuild -scheme lldb-gtest -configuration ${LLDB_BUILD_MODE} ${lldb_xcodebuild_options[@]}
2743+
rc=$?
2744+
if [[ "$rc" -ne 0 ]] ; then
2745+
>&2 echo "error: LLDB gtests failed"
2746+
exit 1
2747+
fi
2748+
else
2749+
with_pushd ${lldb_build_dir} \
2750+
${NINJA_BIN} check-lldb-unit
27462751
fi
2747-
else
2748-
with_pushd ${lldb_build_dir} \
2749-
${NINJA_BIN} check-lldb-unit
27502752
fi
27512753

27522754
swift_build_dir=$(build_directory ${host} swift)

0 commit comments

Comments
 (0)