@@ -471,32 +471,35 @@ functions:
471471 shell : bash
472472 working_dir : " mongo-cxx-driver"
473473 script : |
474- set -o errexit
475- set -o pipefail
476- export PATH="${extra_path}:$PATH"
477- cd build
478- export PREFIX=$(pwd)/../../mongoc
474+ set -o xtrace
479475
480- # Use PATH / LD_LIBRARY_PATH / DYLD_LIBRARY_PATH to inform the tests where to find
481- # mongoc library dependencies on Windows / Linux / Mac OS, respectively.
482- # Additionally, on Windows, we also need to inform the tests where to find
483- # mongocxx library dependencies.
484- if [ -n "${lib_dir}" ]; then
485- export LD_LIBRARY_PATH=.:$PREFIX/${lib_dir}/
486- export DYLD_LIBRARY_PATH=.:$PREFIX/${lib_dir}/
487- else
488- export LD_LIBRARY_PATH=.:$PREFIX/lib/
489- export DYLD_LIBRARY_PATH=.:$PREFIX/lib/
490- fi
491- export PATH=$(pwd)/src/bsoncxx/${build_type}:$(pwd)/src/mongocxx/${build_type}:$PREFIX/bin:$(pwd)/install/bin:$PATH
476+ export MONGOC_INSTALL_PREFIX=$(pwd)/../mongoc
477+ export MONGOCXX_INSTALL_PREFIX=$(pwd)/build/install
478+ export LIB_DIR=${lib_dir}
479+ export BUILD_TYPE=${build_type}
480+ export BUILD_DIR=$(pwd)/build
481+ export URI="mongodb://bob:pwd123@localhost"
482+ ./.evergreen/connect.sh
483+
484+ " test atlas connectivity " :
485+ - command : shell.exec
486+ params :
487+ shell : bash
488+ working_dir : " mongo-cxx-driver"
489+ silent : true
490+ script : |
491+ set -o xtrace
492492
493- URI="mongodb://bob:pwd123@localhost"
493+ export MONGOC_INSTALL_PREFIX=$(pwd)/../mongoc
494+ export MONGOCXX_INSTALL_PREFIX=$(pwd)/build/install
495+ export LIB_DIR=${lib_dir}
496+ export BUILD_TYPE=${build_type}
497+ export BUILD_DIR=$(pwd)/build
494498
495- if [ "Windows_NT" == "$OS" ]; then
496- ./examples/mongocxx/${build_type}/connect.exe "$URI"
497- else
498- ./examples/mongocxx/connect "$URI"
499- fi
499+ # The atlas_serverless_uri expansion is set in the Evergreen project settings.
500+ export URI="${atlas_serverless_uri}"
501+
502+ ./.evergreen/connect.sh
500503
501504 " backtrace " :
502505 - command : shell.exec
@@ -626,6 +629,7 @@ tasks:
626629 - func : " install_c_driver"
627630 - func : " compile"
628631 - func : " test auth"
632+ - func : " test atlas connectivity"
629633
630634 - name : compile_and_test_with_static_libs
631635 commands :
0 commit comments