File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ if [[ "$release_os_arch" == *glibc* ]]; then
115115 echo " glibc version check passed: $actual_glibc "
116116fi
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.
121121if 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
You can’t perform that action at this time.
0 commit comments