diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2018-02-12 19:32:54 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2018-02-12 19:32:54 +0300 |
commit | e2c3fa630469bf006de5a983910e391c5889430d (patch) | |
tree | 2021663f938438db7c18b3bcc87b6402b6d6b5e1 /test/unit.py | |
parent | 9646772a00e50c437e0b3204ce6233b6414e1053 (diff) | |
download | unit-e2c3fa630469bf006de5a983910e391c5889430d.tar.gz unit-e2c3fa630469bf006de5a983910e391c5889430d.tar.bz2 |
Tests: perl module.
Diffstat (limited to 'test/unit.py')
-rw-r--r-- | test/unit.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/unit.py b/test/unit.py index bb09338c..81221a39 100644 --- a/test/unit.py +++ b/test/unit.py @@ -292,3 +292,25 @@ class TestUnitControl(TestUnitHTTP): sock_type='unix', addr=self.testdir + '/control.unit.sock' )['body']) + +class TestUnitApplicationProto(TestUnitControl): + + current_dir = os.path.dirname(os.path.abspath(__file__)) + +class TestUnitApplicationPerl(TestUnitApplicationProto): + def load(self, dir, name='psgi.pl'): + self.conf({ + "listeners": { + "*:7080": { + "application": dir + } + }, + "applications": { + dir: { + "type": "perl", + "processes": { "spare": 0 }, + "working_directory": self.current_dir + '/perl/' + dir, + "script": self.current_dir + '/perl/' + dir + '/' + name + } + } + }) |