Mercurial > hg > nginx-tests
comparison stream_ssl_alpn.t @ 1743:2318ed01ce53
Tests: skip ALPN rejection tests with too old LibreSSL.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 21 Oct 2021 20:18:01 +0300 |
parents | f2fe58b4b59f |
children | 38bd7e75fe69 |
comparison
equal
deleted
inserted
replaced
1742:7bfa47410cc0 | 1743:2318ed01ce53 |
---|---|
84 | 84 |
85 is(get_ssl('first'), 'X first X', 'alpn match'); | 85 is(get_ssl('first'), 'X first X', 'alpn match'); |
86 is(get_ssl('wrong', 'first'), 'X first X', 'alpn many'); | 86 is(get_ssl('wrong', 'first'), 'X first X', 'alpn many'); |
87 is(get_ssl('wrong', 'second'), 'X second X', 'alpn second'); | 87 is(get_ssl('wrong', 'second'), 'X second X', 'alpn second'); |
88 is(get_ssl(), 'X X', 'no alpn'); | 88 is(get_ssl(), 'X X', 'no alpn'); |
89 | |
90 SKIP: { | |
91 $t->{_configure_args} =~ /LibreSSL ([\d\.]+)/; | |
92 skip 'LibreSSL too old', 2 if defined $1 and $1 lt '3.4.0'; | |
93 | |
89 ok(!get_ssl('wrong'), 'alpn mismatch'); | 94 ok(!get_ssl('wrong'), 'alpn mismatch'); |
90 | 95 |
91 $t->stop(); | 96 $t->stop(); |
92 | 97 |
93 like($t->read_file('test.log'), qr/500$/, 'alpn mismatch - log'); | 98 like($t->read_file('test.log'), qr/500$/, 'alpn mismatch - log'); |
99 | |
100 } | |
94 | 101 |
95 ############################################################################### | 102 ############################################################################### |
96 | 103 |
97 sub get_ssl { | 104 sub get_ssl { |
98 my (@alpn) = @_; | 105 my (@alpn) = @_; |