summaryrefslogtreecommitdiff
path: root/test/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.py')
-rw-r--r--test/test.py15
1 files changed, 5 insertions, 10 deletions
diff --git a/test/test.py b/test/test.py
index cbee609..675c4f9 100644
--- a/test/test.py
+++ b/test/test.py
@@ -14,7 +14,6 @@ import glob
14import tempfile 14import tempfile
15import unittest 15import unittest
16import subprocess 16import subprocess
17import sys
18 17
19VERBOSITY = 3 18VERBOSITY = 3
20 19
@@ -68,16 +67,12 @@ class MATTest(unittest.TestCase):
68 shutil.rmtree(self.tmpdir) 67 shutil.rmtree(self.tmpdir)
69 68
70 69
71def main(): 70if __name__ == '__main__':
72 import clitest 71 import clitest
73 import libtest 72 import libtest
74 73
75 suite = unittest.TestSuite() 74 SUITE = unittest.TestSuite()
76 suite.addTests(clitest.get_tests()) 75 SUITE.addTests(clitest.get_tests())
77 suite.addTests(libtest.get_tests()) 76 SUITE.addTests(libtest.get_tests())
78
79 unittest.TextTestRunner(verbosity=VERBOSITY).run(suite)
80 77
81 78 unittest.TextTestRunner(verbosity=VERBOSITY).run(SUITE)
82if __name__ == '__main__':
83 sys.exit(main())