summaryrefslogtreecommitdiffstats
path: root/tests/__init__.py
blob: 1a235ff26f6bd174473e72f4a1b0901be84063f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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_vercmp", "test_util"]

	suite = unittest.TestSuite()

	for mod in tests:
		try:
			test_mod = __import__(mod)
			suite.addTest(test_mod.suite())
		except ImportError:
			pass

	unittest.TextTestRunner(verbosity=2).run(suite)