Skip to content

Commit

Permalink
Tests: dropped obsolete ipv6 prerequisite.
Browse files Browse the repository at this point in the history
  • Loading branch information
pluknet committed May 4, 2017
1 parent 1e210ec commit b972e0f
Show file tree
Hide file tree
Showing 19 changed files with 18 additions and 23 deletions.
2 changes: 1 addition & 1 deletion access.t
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use Test::Nginx;
select STDERR; $| = 1;
select STDOUT; $| = 1;

my $t = Test::Nginx->new()->has(qw/http proxy access ipv6 unix/);
my $t = Test::Nginx->new()->has(qw/http proxy access unix/);

$t->write_file_expand('nginx.conf', <<'EOF');
Expand Down
2 changes: 1 addition & 1 deletion debug_connection.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use Test::Nginx;
select STDERR; $| = 1;
select STDOUT; $| = 1;

my $t = Test::Nginx->new()->has(qw/http --with-debug ipv6 proxy/);
my $t = Test::Nginx->new()->has(qw/http --with-debug proxy/);

$t->write_file_expand('nginx.conf', <<'EOF');
Expand Down
2 changes: 1 addition & 1 deletion debug_connection_syslog.t
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use Test::Nginx;
select STDERR; $| = 1;
select STDOUT; $| = 1;

my $t = Test::Nginx->new()->has(qw/http --with-debug ipv6 proxy/);
my $t = Test::Nginx->new()->has(qw/http --with-debug proxy/);

$t->write_file_expand('nginx.conf', <<'EOF');
Expand Down
2 changes: 1 addition & 1 deletion geo_ipv6.t
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use Test::Nginx;
select STDERR; $| = 1;
select STDOUT; $| = 1;

my $t = Test::Nginx->new()->has(qw/http geo ipv6/)
my $t = Test::Nginx->new()->has(qw/http geo/)
->write_file_expand('nginx.conf', <<'EOF');
%%TEST_GLOBALS%%
Expand Down
2 changes: 1 addition & 1 deletion geoip.t
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use Test::Nginx;
select STDERR; $| = 1;
select STDOUT; $| = 1;

my $t = Test::Nginx->new()->has(qw/http http_geoip ipv6/)
my $t = Test::Nginx->new()->has(qw/http http_geoip/)
->write_file_expand('nginx.conf', <<'EOF');
%%TEST_GLOBALS%%
Expand Down
2 changes: 1 addition & 1 deletion http_resolver_aaaa.t
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use Test::Nginx;
select STDERR; $| = 1;
select STDOUT; $| = 1;

my $t = Test::Nginx->new()->has(qw/http proxy rewrite ipv6/);
my $t = Test::Nginx->new()->has(qw/http proxy rewrite/);

$t->write_file_expand('nginx.conf', <<'EOF');
Expand Down
4 changes: 0 additions & 4 deletions lib/Test/Nginx.pm
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,6 @@ sub has_feature($) {
return $^O ne 'MSWin32';
}

if ($feature eq 'ipv6') {
return $self->has_version('1.11.5');
}

return 0;
}

Expand Down
3 changes: 1 addition & 2 deletions proxy.t
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ like(http_get('/var?b=127.0.0.1:' . port(8081) . '/'), qr/SEE-THIS/,
like(http_get('/var?b=u/'), qr/SEE-THIS/, 'proxy with variables to upstream');

SKIP: {
skip 'no ipv6', 1 unless $t->has_module('ipv6') or $t->has_feature('ipv6')
and socket(my $s, &AF_INET6, &SOCK_STREAM, 0);
skip 'no ipv6', 1 unless socket(my $s, &AF_INET6, &SOCK_STREAM, 0);

TODO: {
todo_skip 'heap-buffer-overflow', 1
Expand Down
2 changes: 1 addition & 1 deletion proxy_protocol.t
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use Test::Nginx;
select STDERR; $| = 1;
select STDOUT; $| = 1;

my $t = Test::Nginx->new()->has(qw/http access ipv6 realip/);
my $t = Test::Nginx->new()->has(qw/http access realip/);

$t->write_file_expand('nginx.conf', <<'EOF')->plan(18);
Expand Down
2 changes: 1 addition & 1 deletion proxy_protocol_ipv6.t
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use Test::Nginx;
select STDERR; $| = 1;
select STDOUT; $| = 1;

my $t = Test::Nginx->new()->has(qw/http ipv6 realip stream/);
my $t = Test::Nginx->new()->has(qw/http realip stream/);

$t->write_file_expand('nginx.conf', <<'EOF');
Expand Down
2 changes: 1 addition & 1 deletion proxy_protocol_port.t
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use Test::Nginx;
select STDERR; $| = 1;
select STDOUT; $| = 1;

my $t = Test::Nginx->new()->has(qw/http ipv6 realip/)
my $t = Test::Nginx->new()->has(qw/http realip/)
->write_file_expand('nginx.conf', <<'EOF');
%%TEST_GLOBALS%%
Expand Down
2 changes: 1 addition & 1 deletion ssl_proxy_protocol.t
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ plan(skip_all => 'IO::Socket::SSL not installed') if $@;
eval { IO::Socket::SSL::SSL_VERIFY_NONE(); };
plan(skip_all => 'IO::Socket::SSL too old') if $@;

my $t = Test::Nginx->new()->has(qw/http http_ssl access ipv6 realip/)
my $t = Test::Nginx->new()->has(qw/http http_ssl access realip/)
->has_daemon('openssl');

$t->write_file_expand('nginx.conf', <<'EOF')->plan(18);
Expand Down
2 changes: 1 addition & 1 deletion stream_access.t
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use Test::Nginx::Stream qw/ stream /;
select STDERR; $| = 1;
select STDOUT; $| = 1;

my $t = Test::Nginx->new()->has(qw/stream stream_access ipv6 unix/);
my $t = Test::Nginx->new()->has(qw/stream stream_access unix/);

$t->write_file_expand('nginx.conf', <<'EOF');
Expand Down
2 changes: 1 addition & 1 deletion stream_geo_ipv6.t
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ select STDERR; $| = 1;
select STDOUT; $| = 1;

my $t = Test::Nginx->new()->has(qw/stream stream_return stream_map stream_geo/)
->has(qw/ipv6/)->write_file_expand('nginx.conf', <<'EOF');
->write_file_expand('nginx.conf', <<'EOF');
%%TEST_GLOBALS%%
Expand Down
2 changes: 1 addition & 1 deletion stream_geoip.t
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use Test::Nginx::Stream qw/ stream /;
select STDERR; $| = 1;
select STDOUT; $| = 1;

my $t = Test::Nginx->new()->has(qw/stream stream_geoip stream_return ipv6/)
my $t = Test::Nginx->new()->has(qw/stream stream_geoip stream_return/)
->has('stream_realip');

$t->write_file_expand('nginx.conf', <<'EOF');
Expand Down
2 changes: 1 addition & 1 deletion stream_proxy_protocol_ipv6.t
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use Test::Nginx::Stream qw/ stream /;
select STDERR; $| = 1;
select STDOUT; $| = 1;

my $t = Test::Nginx->new()->has(qw/stream ipv6/)
my $t = Test::Nginx->new()->has(qw/stream/)
->write_file_expand('nginx.conf', <<'EOF');
%%TEST_GLOBALS%%
Expand Down
2 changes: 1 addition & 1 deletion stream_realip.t
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use Test::Nginx::Stream qw/ stream /;
select STDERR; $| = 1;
select STDOUT; $| = 1;

my $t = Test::Nginx->new()->has(qw/stream stream_return stream_realip ipv6/)
my $t = Test::Nginx->new()->has(qw/stream stream_return stream_realip/)
->write_file_expand('nginx.conf', <<'EOF');
%%TEST_GLOBALS%%
Expand Down
2 changes: 1 addition & 1 deletion stream_ssl_realip.t
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ plan(skip_all => 'IO::Socket::SSL not installed') if $@;
eval { IO::Socket::SSL::SSL_VERIFY_NONE(); };
plan(skip_all => 'IO::Socket::SSL too old') if $@;

my $t = Test::Nginx->new()->has(qw/stream stream_return stream_realip ipv6/)
my $t = Test::Nginx->new()->has(qw/stream stream_return stream_realip/)
->has(qw/stream_ssl/)->has_daemon('openssl')
->write_file_expand('nginx.conf', <<'EOF');
Expand Down
2 changes: 1 addition & 1 deletion stream_variables.t
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use Test::Nginx::Stream qw/ stream dgram /;
select STDERR; $| = 1;
select STDOUT; $| = 1;

my $t = Test::Nginx->new()->has(qw/stream stream_return ipv6 udp/);
my $t = Test::Nginx->new()->has(qw/stream stream_return udp/);

$t->write_file_expand('nginx.conf', <<'EOF');
Expand Down

0 comments on commit b972e0f

Please sign in to comment.