summaryrefslogtreecommitdiffstats
path: root/test/recipes
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-06-09 13:33:27 +0100
committerMatt Caswell <matt@openssl.org>2016-06-13 17:35:18 +0100
commit2cb4b5f63ac8d78506652725d0afe299f99d1437 (patch)
treea2d0ea2e9d4bbd178683221f2a7e2f3d34b07ab5 /test/recipes
parente70656cf1c9e886344913444fe2f3a0b7d3721a9 (diff)
Add some session API tests
This commit adds some session API tests, and in particular tests the modified behaviour of SSL_set_session() introduced in the last commit. To do this I have factored out some common code from the asynciotest into a new ssltestlib.c file. I've also renamed getsettest to sslapitest as this more closely matches what it now is! Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/recipes')
-rw-r--r--test/recipes/90-test_sslapi.t (renamed from test/recipes/90-test_getset.t)6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/recipes/90-test_getset.t b/test/recipes/90-test_sslapi.t
index 3e245c12ab..ec525a1ffa 100644
--- a/test/recipes/90-test_getset.t
+++ b/test/recipes/90-test_sslapi.t
@@ -9,12 +9,14 @@
use OpenSSL::Test;
use OpenSSL::Test::Utils;
+use OpenSSL::Test qw/:DEFAULT srctop_file/;
-setup("test_getset");
+setup("test_sslapi");
plan skip_all => "No TLS/SSL protocols are supported by this OpenSSL build"
if alldisabled(grep { $_ ne "ssl3" } available_protocols("tls"));
plan tests => 1;
-ok(run(test(["getsettest"])), "running getsettest");
+ok(run(test(["sslapitest", srctop_file("apps", "server.pem"),
+ srctop_file("apps", "server.pem")])), "running sslapitest");