blob: 33b16f7f22235b01b82df44056058167cdbdaa49 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/usr/bin/python
"""Run all the tests inside the test/ directory as a test suite."""
if __name__ == '__main__':
import unittest
from test import *
tests = []
for key, val in vars().copy().items():
if key.startswith('tc_'):
tests.extend(v for k,v in vars(val).items() if type(v) == type)
suite = unittest.TestSuite(map(unittest.makeSuite, tests))
unittest.TextTestRunner(verbosity=2).run(suite)
|