@@ -324,7 +324,11 @@ functions:
324
324
if [ ! -d "drivers-evergreen-tools" ]; then
325
325
git clone [email protected] :mongodb-labs/drivers-evergreen-tools.git --depth=1
326
326
fi
327
-
327
+ echo "DRIVERS_TOOLS: $(pwd)/drivers-evergreen-tools" > det-expansion.yml
328
+ # Set DRIVERS_TOOLS expansion.
329
+ - command : expansions.update
330
+ params :
331
+ file : det-expansion.yml
328
332
" run_kms_servers " :
329
333
- command : shell.exec
330
334
params :
@@ -1172,6 +1176,56 @@ tasks:
1172
1176
- func : " run_kms_servers"
1173
1177
- func : " test"
1174
1178
1179
+ - name : test_search_index_helpers
1180
+ commands :
1181
+ - func : " install_c_driver"
1182
+ - func : " compile"
1183
+ - command : shell.exec
1184
+ params :
1185
+ shell : bash
1186
+ working_dir : mongo-cxx-driver
1187
+ script : |
1188
+ export MONGODB_URI=${MONGODB_URI}
1189
+
1190
+ if [ -n "${lib_dir}" ]; then
1191
+ export LD_LIBRARY_PATH=$(pwd)/../mongoc/${lib_dir}/
1192
+ else
1193
+ export LD_LIBRARY_PATH=$(pwd)/../mongoc/lib/
1194
+ fi
1195
+
1196
+ ./build/src/mongocxx/test/test_driver "atlas search indexes prose tests"
1197
+
1198
+ task_groups :
1199
+ - name : test_atlas_task_group_search_indexes
1200
+ setup_group :
1201
+ - func : " setup"
1202
+ - func : " clone_drivers-evergreen-tools"
1203
+ - command : subprocess.exec
1204
+ params :
1205
+ working_dir : mongo-cxx-driver
1206
+ binary : bash
1207
+ add_expansions_to_env : true
1208
+ env :
1209
+ MONGODB_VERSION : ' 7.0'
1210
+ args :
1211
+ - ${DRIVERS_TOOLS}/.evergreen/atlas/setup-atlas-cluster.sh
1212
+ - command : expansions.update
1213
+ # Expected to set MONGODB_URI expansion.
1214
+ params :
1215
+ file : mongo-cxx-driver/atlas-expansion.yml
1216
+ teardown_group :
1217
+ - command : subprocess.exec
1218
+ params :
1219
+ working_dir : mongo-cxx-driver
1220
+ binary : bash
1221
+ add_expansions_to_env : true
1222
+ args :
1223
+ - ${DRIVERS_TOOLS}/.evergreen/atlas/teardown-atlas-cluster.sh
1224
+ setup_group_can_fail_task : true
1225
+ setup_group_timeout_secs : 1800
1226
+ tasks :
1227
+ - test_search_index_helpers
1228
+
1175
1229
# ######################################
1176
1230
# MongoDB Version Matrix #
1177
1231
# ######################################
@@ -1673,6 +1727,7 @@ buildvariants:
1673
1727
tasks :
1674
1728
- name : clang-tidy
1675
1729
- name : compile_without_tests
1730
+ - name : test_atlas_task_group_search_indexes
1676
1731
1677
1732
- name : ubuntu2204-debug-gcc
1678
1733
display_name : " Ubuntu 22.04 Debug (GCC)"
0 commit comments