blob: a32ca05d322a021e8bc8803e8747399010f47800 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# tests/__init__.py -- Portage Unit Test functionality
# Copyright 2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
import unittest
def main():
tests = ["test_atoms", "test_util"]
suite = unittest.TestSuite()
for mod in tests:
try:
loadMod = __import__(mod)
tmpSuite = unittest.TestLoader().loadTestsFromModule(loadMod)
suite.addTest(tmpSuite)
except ImportError:
pass
return unittest.TextTestRunner(verbosity=2).run(suite)
|