Mercurial > hg > nginx-tests
comparison uwsgi.t @ 363:98f3a8568b0c
Tests: try to load python plugin if uwsgi has no wsgi option.
author | Sergey Budnevitch <sb@waeme.net> |
---|---|
date | Tue, 17 Dec 2013 00:07:40 +0400 |
parents | 6a0d934950bc |
children | dc2f8aac0553 |
comparison
equal
deleted
inserted
replaced
362:8ca9c75c97d2 | 363:98f3a8568b0c |
---|---|
54 start_response('200 OK', [('Content-Type','text/plain')]) | 54 start_response('200 OK', [('Content-Type','text/plain')]) |
55 return "SEE-THIS" | 55 return "SEE-THIS" |
56 | 56 |
57 END | 57 END |
58 | 58 |
59 $t->run_daemon('uwsgi', '--socket', '127.0.0.1:8081', | 59 my $uwsgihelp = `uwsgi -h`; |
60 my @uwsgiopts = (); | |
61 | |
62 if ($uwsgihelp !~ /--wsgi-file/) { | |
63 # uwsgi has no python support, maybe plugin load is necessary | |
64 push @uwsgiopts, '--plugin', 'python'; | |
65 } | |
66 | |
67 $t->run_daemon('uwsgi', '--socket', '127.0.0.1:8081', @uwsgiopts, | |
60 '--wsgi-file', $t->testdir() . '/uwsgi_test_app.py', | 68 '--wsgi-file', $t->testdir() . '/uwsgi_test_app.py', |
61 '--logto', $t->testdir() . '/uwsgi_log'); | 69 '--logto', $t->testdir() . '/uwsgi_log'); |
62 | 70 |
63 $t->run(); | 71 $t->run(); |
64 | 72 |