aboutsummaryrefslogtreecommitdiff
path: root/tests/scripts/key-exchanges.pl
diff options
context:
space:
mode:
authorGilles Peskine <Gilles.Peskine@arm.com>2019-09-16 15:20:36 +0200
committerGilles Peskine <Gilles.Peskine@arm.com>2019-09-18 17:44:29 +0200
commit9004a1768b1656dce1fe5871633a4c04b03be1ff (patch)
treed7f10fb617a99078163cf09a9bc1e5ed7271c8d5 /tests/scripts/key-exchanges.pl
parent654bab7635e1b58399c004110fdfc36d29ba20d8 (diff)
downloadmbedtls-9004a1768b1656dce1fe5871633a4c04b03be1ff.zip
mbedtls-9004a1768b1656dce1fe5871633a4c04b03be1ff.tar.gz
mbedtls-9004a1768b1656dce1fe5871633a4c04b03be1ff.tar.bz2
Set meaningful test configuration names when running tests
Set MBEDTLS_TEST_PLATFORM and MBEDTLS_TEST_CONFIGURATION to meaningful values in all.sh. These environment variables are used when writing an outcome file, which happens if MBEDTLS_TEST_OUTCOME_FILE is also set. When running one of the try-multiple-configuration scripts, set MBEDTLS_TEST_CONFIGURATION to a value that uniquely describes the configuration.
Diffstat (limited to 'tests/scripts/key-exchanges.pl')
-rwxr-xr-xtests/scripts/key-exchanges.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/scripts/key-exchanges.pl b/tests/scripts/key-exchanges.pl
index 3bf7ae3..bfde069 100755
--- a/tests/scripts/key-exchanges.pl
+++ b/tests/scripts/key-exchanges.pl
@@ -45,6 +45,7 @@ for my $kex (@kexes) {
print "\n******************************************\n";
print "* Testing with key exchange: $kex\n";
print "******************************************\n";
+ $ENV{MBEDTLS_TEST_CONFIGURATION} = "-$kex";
# full config with all key exchanges disabled except one
system( "scripts/config.pl full" ) and abort "Failed config full\n";