From a273b7887f932e0dddc9e2d5065d9a4b6c1af00f Mon Sep 17 00:00:00 2001 From: Alec Warner Date: Fri, 8 Dec 2006 00:12:41 +0000 Subject: Add pretty basic vercmp unit testing...need more cases svn path=/main/trunk/; revision=5213 --- tests/__init__.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/__init__.py (limited to 'tests/__init__.py') 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) -- cgit v1.2.3-1-g7c22