aboutsummaryrefslogtreecommitdiffstats
path: root/test/ssl_test.tmpl
diff options
context:
space:
mode:
authorEmilia Kasper <emilia@openssl.org>2016-07-21 19:19:07 +0200
committerEmilia Kasper <emilia@openssl.org>2016-07-22 15:54:26 +0200
commitd0c4415de5eaa555ead6eb99660e46410b45e181 (patch)
tree406104d1c38ddde3a256d7c4a6d6fec9e023eaab /test/ssl_test.tmpl
parentd972af2b5e6b8c266f878ce28e60badcbc402311 (diff)
downloadopenssl-d0c4415de5eaa555ead6eb99660e46410b45e181.tar.gz
SSL tests: compress generated output a little
Don't emit duplicate server/client sections when they are identical. Instead, just point to the same section. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/ssl_test.tmpl')
-rw-r--r--test/ssl_test.tmpl10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/ssl_test.tmpl b/test/ssl_test.tmpl
index 206c4a1524..c9cc8de62b 100644
--- a/test/ssl_test.tmpl
+++ b/test/ssl_test.tmpl
@@ -2,20 +2,26 @@
ssl_conf = {-$testname-}-ssl
[{-$testname-}-ssl]
-server = {-$testname-}-server{-
+server = {-$testname-}-server
+client = {-$testname-}-client{-
# The following sections are optional.
$OUT = "";
if (%server2) {
$OUT .= "\nserver2 = $testname-server2";
+ } elsif ($reuse_server2) {
+ $OUT .= "\nserver2 = $testname-server";
}
if (%resume_server) {
$OUT .= "\nresume-server = $testname-resume-server";
+ } elsif ($reuse_resume_server) {
+ $OUT .= "\nresume-server = $testname-server";
}
if (%resume_client) {
$OUT .= "\nresume-client = $testname-resume-client";
+ } elsif ($reuse_resume_client) {
+ $OUT .= "\nresume-client = $testname-client";
}
-}
-client = {-$testname-}-client
[{-$testname-}-server]
{-