You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHPLIB-911: Test with consistent version of crypt_shared (#965)
Use the crypt_shared library provisioned by download-mongodb.sh and add an additional task to disable the library and fall back to mongocryptd.
This also revises how we pass environment variables into run-tests.sh and the test suite, and restructures run-tests.sh a bit.
Copy file name to clipboardExpand all lines: .evergreen/run-tests.sh
+24-19
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
1
#!/bin/sh
2
2
set -o errexit # Exit the script with error if any of the commands fail
3
3
4
-
# Supported/used environment variables:
5
-
# SSL Set to "yes" to enable SSL. Defaults to "nossl"
6
-
# MONGODB_URI Set the suggested connection MONGODB_URI (including credentials and topology info)
7
-
# API_VERSION Optional API_VERSION environment variable for run-tests.php
8
-
#IS_MATRIX_TESTING Set to "true" to enable matrix testing. Defaults to empty string. If "true", DRIVER_MONGODB_VERSION and MONGODB_VERSION will also be checked.
CRYPT_SHARED_LIB_PATH="${CRYPT_SHARED_LIB_PATH:-}"# Optional path to crypt_shared library
7
+
DRIVER_MONGODB_VERSION={$DRIVER_MONGODB_VERSION:-} # Required if IS_MATRIX_TESTING is "true"
8
+
IS_MATRIX_TESTING=${IS_MATRIX_TESTING:-}# Specify "true" to enable matrix testing. Defaults to empty string. If "true", DRIVER_MONGODB_VERSION and MONGODB_VERSION will also be checked.
9
+
MONGODB_URI=${MONGODB_URI:-}# Connection string (including credentials and topology info)
10
+
MONGODB_VERSION=${MONGODB_VERSION:-}# Required if IS_MATRIX_TESTING is "true"
11
+
SKIP_CRYPT_SHARED="${SKIP_CRYPT_SHARED:-no}"# Specify "yes" to ignore CRYPT_SHARED_LIB_PATH. Defaults to "no"
12
+
SSL=${SSL:-no}# Specify "yes" to enable SSL. Defaults to "no"
13
+
TESTS=${TESTS:-}# Optional test group. Defaults to all tests
14
14
15
15
# For matrix testing, we have to determine the correct driver version
16
16
if [ "${IS_MATRIX_TESTING}"="true" ];then
@@ -42,7 +42,7 @@ if [ "${IS_MATRIX_TESTING}" = "true" ]; then
42
42
fi
43
43
44
44
# Enable verbose output to see skipped and incomplete tests
0 commit comments