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/runTests | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 tests/runTests (limited to 'tests/runTests') 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() -- cgit v1.2.3-1-g7c22