Files
entropy/libraries/tests/run
2009-08-16 16:59:25 +02:00

20 lines
494 B
Python
Executable File

#!/usr/bin/python2
import sys
import unittest
sys.path.insert(0,'.')
sys.path.insert(0,'../')
from tests import db, client, server, misc, transceivers, tools, i18n
rc = 0
# Add to the list the module to test
mods = [db, client, server, misc, transceivers, tools, i18n]
tests = []
for mod in mods:
tests.append(unittest.TestLoader().loadTestsFromModule(mod))
result = unittest.TextTestRunner(verbosity = 1).run(unittest.TestSuite(tests))
if result.errors:
rc = 1
raise SystemExit(rc)