Mercurial > hg > nginx-tests
comparison proxy_protocol_ipv6.t @ 815:9f5f604a840e
Tests: skip proxy_protocol_ipv6.t on hosts without IPv6 support.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 21 Dec 2015 16:30:03 +0300 |
parents | dba758c045ed |
children | e9064d691790 |
comparison
equal
deleted
inserted
replaced
814:b6b407fd5c12 | 815:9f5f604a840e |
---|---|
20 ############################################################################### | 20 ############################################################################### |
21 | 21 |
22 select STDERR; $| = 1; | 22 select STDERR; $| = 1; |
23 select STDOUT; $| = 1; | 23 select STDOUT; $| = 1; |
24 | 24 |
25 my $t = Test::Nginx->new()->has(qw/http ipv6 realip stream/)->plan(3); | 25 my $t = Test::Nginx->new()->has(qw/http ipv6 realip stream/); |
26 | 26 |
27 $t->write_file_expand('nginx.conf', <<'EOF'); | 27 $t->write_file_expand('nginx.conf', <<'EOF'); |
28 | 28 |
29 %%TEST_GLOBALS%% | 29 %%TEST_GLOBALS%% |
30 | 30 |
62 } | 62 } |
63 | 63 |
64 EOF | 64 EOF |
65 | 65 |
66 $t->write_file('t', 'SEE-THIS'); | 66 $t->write_file('t', 'SEE-THIS'); |
67 $t->run(); | 67 $t->try_run('no inet6 support')->plan(3); |
68 | 68 |
69 ############################################################################### | 69 ############################################################################### |
70 | 70 |
71 TODO: { | 71 TODO: { |
72 local $TODO = 'not yet' unless $t->has_version('1.9.10'); | 72 local $TODO = 'not yet' unless $t->has_version('1.9.10'); |