comparison uwsgi_ssl.t @ 1598:f069dd7ba5a7

Tests: compatibility with uwsgi python package on Fedora Linux.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 01 Oct 2020 17:17:04 +0100
parents 577e72267fec
children 5ac6efbe5552
comparison
equal deleted inserted replaced
1597:36d69685605e 1598:f069dd7ba5a7
93 my @uwsgiopts = (); 93 my @uwsgiopts = ();
94 94
95 if ($uwsgihelp !~ /--wsgi-file/) { 95 if ($uwsgihelp !~ /--wsgi-file/) {
96 # uwsgi has no python support, maybe plugin load is necessary 96 # uwsgi has no python support, maybe plugin load is necessary
97 push @uwsgiopts, '--plugin', 'python'; 97 push @uwsgiopts, '--plugin', 'python';
98 push @uwsgiopts, '--plugin', 'python3';
98 } 99 }
99 100
101 open OLDERR, ">&", \*STDERR; close STDERR;
100 $t->run_daemon('uwsgi', @uwsgiopts, 102 $t->run_daemon('uwsgi', @uwsgiopts,
101 '--ssl-socket', '127.0.0.1:' . port(8081) . ",$crt,$key", 103 '--ssl-socket', '127.0.0.1:' . port(8081) . ",$crt,$key",
102 '--wsgi-file', $d . '/uwsgi_test_app.py', 104 '--wsgi-file', $d . '/uwsgi_test_app.py',
103 '--logto', $d . '/uwsgi_log'); 105 '--logto', $d . '/uwsgi_log');
106 open STDERR, ">&", \*OLDERR;
104 107
105 $t->run(); 108 $t->run();
106 109
107 $t->waitforsocket('127.0.0.1:' . port(8081)) 110 $t->waitforsocket('127.0.0.1:' . port(8081))
108 or die "Can't start uwsgi"; 111 or die "Can't start uwsgi";