diff options
author | Alec Warner <antarus@gentoo.org> | 2006-12-08 00:12:41 +0000 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2006-12-08 00:12:41 +0000 |
commit | a273b7887f932e0dddc9e2d5065d9a4b6c1af00f (patch) | |
tree | e70fd7f7a12bc8d5ea7304b7915aac095fb7cdd3 /tests/__init__.py | |
parent | 549f824542c1bcb48cb3c368be443777cbe449e8 (diff) | |
download | portage-a273b7887f932e0dddc9e2d5065d9a4b6c1af00f.tar.gz portage-a273b7887f932e0dddc9e2d5065d9a4b6c1af00f.tar.bz2 portage-a273b7887f932e0dddc9e2d5065d9a4b6c1af00f.zip |
Add pretty basic vercmp unit testing...need more cases
svn path=/main/trunk/; revision=5213
Diffstat (limited to 'tests/__init__.py')
-rw-r--r-- | tests/__init__.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 000000000..d0d31801d --- /dev/null +++ b/tests/__init__.py @@ -0,0 +1,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"] + + 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) |