Skip to content

Commit 63fee9f

Browse files
authored
Do not invoke ctest when BUILD_TESTING=OFF (#1201)
1 parent c2f80a7 commit 63fee9f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.evergreen/build_all.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ if [[ "$release_os_arch" == *glibc* ]]; then
115115
echo "glibc version check passed: $actual_glibc"
116116
fi
117117

118-
run_chdir "$BINARY_DIR" ctest
118+
is_true BUILD_TESTING && run_chdir "$BINARY_DIR" ctest
119119

120120
# MONGOCRYPT-372, ensure macOS universal builds contain both x86_64 and arm64 architectures.
121121
if test "${CMAKE_OSX_ARCHITECTURES-}" != ''; then
@@ -145,12 +145,12 @@ _cmake_with_env "${cmake_args[@]}" \
145145
-DCMAKE_INSTALL_PREFIX="$MONGOCRYPT_INSTALL_PREFIX/nocrypto" \
146146
-B "$BINARY_DIR" -S "$LIBMONGOCRYPT_DIR"
147147
_cmake_with_env --build "$BINARY_DIR" --target install
148-
run_chdir "$BINARY_DIR" ctest
148+
is_true BUILD_TESTING && run_chdir "$BINARY_DIR" ctest
149149

150150
# Build and install libmongocrypt without statically linking libbson
151151
_cmake_with_env "${cmake_args[@]}" \
152152
-DUSE_SHARED_LIBBSON=ON \
153153
-DCMAKE_INSTALL_PREFIX="$MONGOCRYPT_INSTALL_PREFIX/sharedbson" \
154154
-B "$BINARY_DIR" -S "$LIBMONGOCRYPT_DIR"
155155
_cmake_with_env --build "$BINARY_DIR" --target install
156-
run_chdir "$BINARY_DIR" ctest
156+
is_true BUILD_TESTING && run_chdir "$BINARY_DIR" ctest

0 commit comments

Comments
 (0)