Files
entropy/libraries/tests/run
2009-04-20 20:39:17 +02:00

20 lines
428 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
rc = 0
# Add to the list the module to test
mods = [db, client, server]
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)