aboutsummaryrefslogtreecommitdiffstats
path: root/tests/run
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2020-12-11 18:28:32 +0100
committerGuilhem Moulin <guilhem@fripost.org>2020-12-11 18:44:13 +0100
commited263d4a380036b654525ee268db615c17d0d216 (patch)
tree5c85ed20e3405a994293d4e0b8cc688b7fd2c3ee /tests/run
parentb99cd2fd12bc3a2c6b858e65182a47a4ef27dba2 (diff)
test suite: supply our own OpenSSL configuration file with MinProtocol=None.
So we can test TLSv1 as well, not just TLSv1.2 and later. Also, explicitly set ssl_min_protocol=TLSv1 in the Dovecot configuration file (the default as of 2.3.11.3), hence running TLS tests now require Dovecot 2.3 or later.
Diffstat (limited to 'tests/run')
-rwxr-xr-xtests/run4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/run b/tests/run
index 994c257..29384ec 100755
--- a/tests/run
+++ b/tests/run
@@ -57,11 +57,13 @@ mkdir -- "$TMPDIR" "$ROOTDIR/home"
declare -a REMOTES=()
# Set environment for the given user
+OPENSSL_CONF="$BASEDIR/config/openssl.cnf"
environ_set() {
local user="$1" home
eval home="\$HOME_$user"
ENVIRON=(
PATH="$PATH"
+ OPENSSL_CONF="$OPENSSL_CONF"
USER="$user"
HOME="$home"
XDG_CONFIG_HOME="$home/.config"
@@ -443,7 +445,7 @@ passed() {
# Run test in a sub-shell
declare -a ENVIRON=()
environ_set "local"
-export TMPDIR TESTDIR STDERR "${ENVIRON[@]}"
+export TMPDIR TESTDIR STDERR "${ENVIRON[@]}" OPENSSL_CONF
export -f environ_set doveadm interimap interimap_init pullimap _interimap_cmd
export -f sqlite3 sample_message deliver ptree_abort step_start step_done passed
export -f check_mailbox_status check_mailbox_status_values check_mailbox_status2