aboutsummaryrefslogtreecommitdiff
path: root/test/recipes/70-test_clienthello.t
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-02-04 00:24:16 +0100
committerRichard Levitte <levitte@openssl.org>2016-02-04 10:55:38 +0100
commitc02bcb66782dd0378336aa7ec31e371b8353b90e (patch)
tree9c387651bec62152c54dd529496a84ed0a037dbe /test/recipes/70-test_clienthello.t
parent1fff160bc00d1c575440cd5e596fa2d4f5ab913e (diff)
downloadopenssl-c02bcb66782dd0378336aa7ec31e371b8353b90e.zip
openssl-c02bcb66782dd0378336aa7ec31e371b8353b90e.tar.gz
openssl-c02bcb66782dd0378336aa7ec31e371b8353b90e.tar.bz2
Have 70-test_clienthello.t be selective on when it can be run
The test program clienthello checks TLS extensions, so there's no point running it when no TLS protocol is available. Reviewed-by: Ben Laurie <ben@openssl.org>
Diffstat (limited to 'test/recipes/70-test_clienthello.t')
-rw-r--r--test/recipes/70-test_clienthello.t12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/recipes/70-test_clienthello.t b/test/recipes/70-test_clienthello.t
index 73b83f2..2032d6d 100644
--- a/test/recipes/70-test_clienthello.t
+++ b/test/recipes/70-test_clienthello.t
@@ -1,5 +1,13 @@
#! /usr/bin/perl
-use OpenSSL::Test::Simple;
+use OpenSSL::Test;
+use OpenSSL::Test::Utils;
-simple_test("test_clienthello", "clienthellotest");
+setup("test_clienthello");
+
+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(["clienthellotest"])), "running clienthellotest");