diff --git a/tests/uwsgi_ssl.t b/tests/uwsgi_ssl.t index 1c5c035c7..02dfb83b9 100644 --- a/tests/uwsgi_ssl.t +++ b/tests/uwsgi_ssl.t @@ -2,6 +2,7 @@ # (C) Maxim Dounin # (C) Nginx, Inc. +# (C) 2023 Web Server LLC # Test for uwsgi backend with SSL. @@ -24,8 +25,12 @@ select STDERR; $| = 1; select STDOUT; $| = 1; my $t = Test::Nginx->new()->has(qw/http uwsgi http_ssl/) - ->has_daemon('uwsgi')->has_daemon('openssl')->plan(7) - ->write_file_expand('nginx.conf', <<'EOF'); + ->has_daemon('uwsgi')->has_daemon('openssl'); + +my $uwsgihelp = `uwsgi -h`; +plan(skip_all => 'no ssl support in uwsgi') if ($uwsgihelp !~ /--ssl-socket/); + +$t->plan(7)->write_file_expand('nginx.conf', <<'EOF'); %%TEST_GLOBALS%% @@ -89,7 +94,6 @@ def application(env, start_response): END -my $uwsgihelp = `uwsgi -h`; my @uwsgiopts = (); if ($uwsgihelp !~ /--wsgi-file/) { diff --git a/tests/uwsgi_ssl_verify.t b/tests/uwsgi_ssl_verify.t index cbb154aa6..4310d5981 100644 --- a/tests/uwsgi_ssl_verify.t +++ b/tests/uwsgi_ssl_verify.t @@ -3,6 +3,7 @@ # (C) Maxim Dounin # (C) Sergey Kandaurov # (C) Nginx, Inc. +# (C) 2023 Web Server LLC # Tests for uwsgi backend with SSL, backend certificate verification. @@ -24,8 +25,12 @@ select STDERR; $| = 1; select STDOUT; $| = 1; my $t = Test::Nginx->new()->has(qw/http http_ssl uwsgi/) - ->has_daemon('uwsgi')->has_daemon('openssl')->plan(6) - ->write_file_expand('nginx.conf', <<'EOF'); + ->has_daemon('uwsgi')->has_daemon('openssl'); + +my $uwsgihelp = `uwsgi -h`; +plan(skip_all => 'no ssl support in uwsgi') if ($uwsgihelp !~ /--ssl-socket/); + +$t->plan(6)->write_file_expand('nginx.conf', <<'EOF'); %%TEST_GLOBALS%% @@ -135,7 +140,6 @@ def application(env, start_response): END -my $uwsgihelp = `uwsgi -h`; my @uwsgiopts = (); if ($uwsgihelp !~ /--wsgi-file/) {