We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 391639b commit 49391ccCopy full SHA for 49391cc
t/166-ssl-client-hello.t
@@ -4,7 +4,15 @@ use Test::Nginx::Socket::Lua;
4
5
repeat_each(3);
6
7
-plan tests => repeat_each() * (blocks() * 6 + 8);
+# All these tests need to have new openssl
8
+my $NginxBinary = $ENV{'TEST_NGINX_BINARY'} || 'nginx';
9
+my $openssl_version = eval { `$NginxBinary -V 2>&1` };
10
+
11
+if ($openssl_version =~ m/built with OpenSSL (0\S*|1\.0\S*|1\.1\.0\S*)/) {
12
+ plan(skip_all => "too old OpenSSL, need 1.1.1, was $1");
13
+} else {
14
+ plan tests => repeat_each() * (blocks() * 6 + 8);
15
+}
16
17
$ENV{TEST_NGINX_HTML_DIR} ||= html_dir();
18
$ENV{TEST_NGINX_MEMCACHED_PORT} ||= 11211;
0 commit comments