Skip to content

Commit 1084058

Browse files
committed
Tests: added has_feature() test for CryptX.
1 parent 488d1d3 commit 1084058

15 files changed

+21
-56
lines changed

h3_absolute_redirect.t

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ use Test::Nginx::HTTP3;
2323
select STDERR; $| = 1;
2424
select STDOUT; $| = 1;
2525

26-
eval { require Crypt::Misc; die if $Crypt::Misc::VERSION < 0.067; };
27-
plan(skip_all => 'CryptX version >= 0.067 required') if $@;
28-
29-
my $t = Test::Nginx->new()->has(qw/http http_v3 proxy rewrite/)
26+
my $t = Test::Nginx->new()->has(qw/http http_v3 proxy rewrite cryptx/)
3027
->has_daemon('openssl')->plan(23);
3128

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

h3_headers.t

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ use Test::Nginx::HTTP3;
2323
select STDERR; $| = 1;
2424
select STDOUT; $| = 1;
2525

26-
eval { require Crypt::Misc; die if $Crypt::Misc::VERSION < 0.067; };
27-
plan(skip_all => 'CryptX version >= 0.067 required') if $@;
28-
29-
my $t = Test::Nginx->new()->has(qw/http http_v3 proxy rewrite/)
26+
my $t = Test::Nginx->new()->has(qw/http http_v3 proxy rewrite cryptx/)
3027
->has_daemon('openssl')->plan(68)
3128
->write_file_expand('nginx.conf', <<'EOF');
3229

h3_keepalive.t

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ use Test::Nginx::HTTP3;
2323
select STDERR; $| = 1;
2424
select STDOUT; $| = 1;
2525

26-
eval { require Crypt::Misc; die if $Crypt::Misc::VERSION < 0.067; };
27-
plan(skip_all => 'CryptX version >= 0.067 required') if $@;
28-
29-
my $t = Test::Nginx->new()->has(qw/http http_v3/)
26+
my $t = Test::Nginx->new()->has(qw/http http_v3 cryptx/)
3027
->has_daemon('openssl')->plan(15)
3128
->write_file_expand('nginx.conf', <<'EOF');
3229

h3_limit_conn.t

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ use Test::Nginx::HTTP3;
2323
select STDERR; $| = 1;
2424
select STDOUT; $| = 1;
2525

26-
eval { require Crypt::Misc; die if $Crypt::Misc::VERSION < 0.067; };
27-
plan(skip_all => 'CryptX version >= 0.067 required') if $@;
28-
29-
my $t = Test::Nginx->new()->has(qw/http http_v3 limit_conn proxy/)
26+
my $t = Test::Nginx->new()->has(qw/http http_v3 limit_conn proxy cryptx/)
3027
->has_daemon('openssl')->plan(2);
3128

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

h3_limit_req.t

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ use Test::Nginx::HTTP3;
2323
select STDERR; $| = 1;
2424
select STDOUT; $| = 1;
2525

26-
eval { require Crypt::Misc; die if $Crypt::Misc::VERSION < 0.067; };
27-
plan(skip_all => 'CryptX version >= 0.067 required') if $@;
28-
29-
my $t = Test::Nginx->new()->has(qw/http http_v3 proxy limit_req/)
26+
my $t = Test::Nginx->new()->has(qw/http http_v3 proxy limit_req cryptx/)
3027
->has_daemon('openssl')->plan(6);
3128

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

h3_proxy.t

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ use Test::Nginx::HTTP3;
2323
select STDERR; $| = 1;
2424
select STDOUT; $| = 1;
2525

26-
eval { require Crypt::Misc; die if $Crypt::Misc::VERSION < 0.067; };
27-
plan(skip_all => 'CryptX version >= 0.067 required') if $@;
28-
29-
my $t = Test::Nginx->new()->has(qw/http http_v3 proxy/)
26+
my $t = Test::Nginx->new()->has(qw/http http_v3 proxy cryptx/)
3027
->has_daemon('openssl')->plan(3)
3128
->write_file_expand('nginx.conf', <<'EOF');
3229

h3_proxy_max_temp_file_size.t

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ use Test::Nginx::HTTP3;
2323
select STDERR; $| = 1;
2424
select STDOUT; $| = 1;
2525

26-
eval { require Crypt::Misc; die if $Crypt::Misc::VERSION < 0.067; };
27-
plan(skip_all => 'CryptX version >= 0.067 required') if $@;
28-
29-
my $t = Test::Nginx->new()->has(qw/http http_v3 proxy/)
26+
my $t = Test::Nginx->new()->has(qw/http http_v3 proxy cryptx/)
3027
->has_daemon('openssl')->plan(4);
3128

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

h3_reusable.t

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ use Test::Nginx::HTTP3;
2323
select STDERR; $| = 1;
2424
select STDOUT; $| = 1;
2525

26-
eval { require Crypt::Misc; die if $Crypt::Misc::VERSION < 0.067; };
27-
plan(skip_all => 'CryptX version >= 0.067 required') if $@;
28-
29-
my $t = Test::Nginx->new()->has(qw/http http_v3/)
26+
my $t = Test::Nginx->new()->has(qw/http http_v3 cryptx/)
3027
->has_daemon('openssl')->plan(1)
3128
->write_file_expand('nginx.conf', <<'EOF');
3229

h3_server_name.t

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,8 @@ use Test::Nginx::HTTP3;
2424
select STDERR; $| = 1;
2525
select STDOUT; $| = 1;
2626

27-
eval { require Crypt::Misc; die if $Crypt::Misc::VERSION < 0.067; };
28-
plan(skip_all => 'CryptX version >= 0.067 required') if $@;
29-
3027
my $t = Test::Nginx->new()
31-
->has(qw/http http_ssl http_v2 http_v3 rewrite socket_ssl_alpn/)
28+
->has(qw/http http_ssl http_v2 http_v3 rewrite socket_ssl_alpn cryptx/)
3229
->has_daemon('openssl')->plan(6);
3330

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

h3_server_tokens.t

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ use Test::Nginx::HTTP3;
2323
select STDERR; $| = 1;
2424
select STDOUT; $| = 1;
2525

26-
eval { require Crypt::Misc; die if $Crypt::Misc::VERSION < 0.067; };
27-
plan(skip_all => 'CryptX version >= 0.067 required') if $@;
28-
29-
my $t = Test::Nginx->new()->has(qw/http http_v3 rewrite/)
26+
my $t = Test::Nginx->new()->has(qw/http http_v3 rewrite cryptx/)
3027
->has_daemon('openssl')->plan(12);
3128

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

0 commit comments

Comments
 (0)