summaryrefslogtreecommitdiffhomepage
path: root/test/run.py
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2017-11-21 20:51:21 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2017-11-21 20:51:21 +0300
commit863377441bdc70885d1bad80bbbd9c6a9a3646a7 (patch)
tree45ef80dbb99f3eef08bd5b41a8559f3d548a830f /test/run.py
parent78a77c3e38593a5dd1ba0970d036ed5f5100f88d (diff)
downloadunit-863377441bdc70885d1bad80bbbd9c6a9a3646a7.tar.gz
unit-863377441bdc70885d1bad80bbbd9c6a9a3646a7.tar.bz2
Tests: added basic infrastructure.
Diffstat (limited to 'test/run.py')
-rwxr-xr-xtest/run.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/run.py b/test/run.py
new file mode 100755
index 00000000..be76a4fb
--- /dev/null
+++ b/test/run.py
@@ -0,0 +1,14 @@
+#!/usr/bin/python3
+
+import unittest
+import os
+
+loader = unittest.TestLoader()
+suite = unittest.TestSuite()
+
+this_dir = os.path.dirname(__file__)
+tests = loader.discover(start_dir=this_dir)
+suite.addTests(tests)
+
+runner = unittest.TextTestRunner(verbosity=3)
+result = runner.run(suite)