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/runTests | |
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/runTests')
-rwxr-xr-x | tests/runTests | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/runTests b/tests/runTests new file mode 100755 index 000000000..74b853f09 --- /dev/null +++ b/tests/runTests @@ -0,0 +1,20 @@ +#!/usr/bin/python +# runTests.py -- Portage Unit Test Functionality +# Copyright 2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + + +import sys +import os.path as osp + +# Grab SVN portage files instead of normal ones. +sys.path.insert(0,'../pym') + +# Insert our parent dir so we can do shiny import "tests" +# This line courtesy of Marienz and Pkgcore ;) +sys.path.insert(0, osp.dirname(osp.dirname(osp.abspath(__file__)))) + +import tests + +tests.main() |