summaryrefslogtreecommitdiffstats
path: root/test/recipes/70-test_sslsessiontick.t
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-06-14 15:35:26 +0200
committerMatt Caswell <matt@openssl.org>2016-06-16 17:32:14 +0200
commitb02b57431718b74ddaf24cc3db004f145311abac (patch)
tree25e749bb160539124071b5026df4f2b7971bd772 /test/recipes/70-test_sslsessiontick.t
parentFix the build and tests following constification of DH, DSA, RSA (diff)
downloadopenssl-b02b57431718b74ddaf24cc3db004f145311abac.tar.xz
openssl-b02b57431718b74ddaf24cc3db004f145311abac.zip
Skip the TLSProxy tests if environmental problems are an issue
On some platforms we can't startup the TLSProxy due to environmental problems (e.g. network set up on the build machine). These aren't OpenSSL problems so we shouldn't treat them as test failures. Just visibly indicate that we are skipping the test. We only skip the first time we attempt to start up the proxy. If that works then everything else should do...if not we should probably investigate and so report as a failure. This also removes test_networking...there is a danger that this turns into a test of user's environmental set up rather than OpenSSL. Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'test/recipes/70-test_sslsessiontick.t')
-rwxr-xr-xtest/recipes/70-test_sslsessiontick.t5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/recipes/70-test_sslsessiontick.t b/test/recipes/70-test_sslsessiontick.t
index aeed99c6b6..89ef12f75b 100755
--- a/test/recipes/70-test_sslsessiontick.t
+++ b/test/recipes/70-test_sslsessiontick.t
@@ -45,12 +45,11 @@ my $proxy = TLSProxy::Proxy->new(
(!$ENV{HARNESS_ACTIVE} || $ENV{HARNESS_VERBOSE})
);
-plan tests => 10;
-
#Test 1: By default with no existing session we should get a session ticket
#Expected result: ClientHello extension seen; ServerHello extension seen
# NewSessionTicket message seen; Full handshake
-$proxy->start();
+$proxy->start() or plan skip_all => "Unable to start up Proxy for tests";
+plan tests => 10;
checkmessages(1, "Default session ticket test", 1, 1, 1, 1);
#Test 2: If the server does not accept tickets we should get a normal handshake