From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QOmjj-0003ma-Ek for garchives@archives.gentoo.org; Tue, 24 May 2011 08:13:07 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 659951C450; Tue, 24 May 2011 08:12:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 32EE91C436 for ; Tue, 24 May 2011 08:12:00 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B08FE1B402B for ; Tue, 24 May 2011 08:11:59 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id C661D8050C for ; Tue, 24 May 2011 08:11:58 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <83a627c7508d426e057cbfd2063590f9bdff50a0.mgorny@gentoo> Subject: [gentoo-commits] proj/pms-test-suite:master commit in: /, PMSTestSuite/repository/ X-VCS-Repository: proj/pms-test-suite X-VCS-Files: PMSTestSuite/repository/__init__.py run-tests.py X-VCS-Directories: / PMSTestSuite/repository/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 83a627c7508d426e057cbfd2063590f9bdff50a0 Date: Tue, 24 May 2011 08:11:58 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 016893632e1503fd71225fbca388013f commit: 83a627c7508d426e057cbfd2063590f9bdff50a0 Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Tue May 24 07:59:20 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Tue May 24 07:59:20 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pms-test-suit= e.git;a=3Dcommit;h=3D83a627c7 Add a minimal skel for EbuildRepository. --- PMSTestSuite/repository/__init__.py | 15 +++++++++++++++ run-tests.py | 6 +++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/PMSTestSuite/repository/__init__.py b/PMSTestSuite/repositor= y/__init__.py new file mode 100644 index 0000000..b09e8be --- /dev/null +++ b/PMSTestSuite/repository/__init__.py @@ -0,0 +1,15 @@ +# vim:fileencoding=3Dutf-8 +# (c) 2011 Micha=C5=82 G=C3=B3rny +# Released under the terms of the 2-clause BSD license. + +import os.path + +class EbuildRepository(object): + """ + A universal class to handle an ebuild repository in a PM-agnostic manne= r. + + >>> r =3D EbuildRepository('/usr/portage') # XXX: do not depend on path + """ + + def __init__(self, path): + self.path =3D path diff --git a/run-tests.py b/run-tests.py index 9f87ef2..5754d85 100755 --- a/run-tests.py +++ b/run-tests.py @@ -1,11 +1,11 @@ #!/usr/bin/python =20 -import unittest -import doctest -import PMSTestSuite.library +import unittest, doctest +import PMSTestSuite.library, PMSTestSuite.repository =20 def load_tests(loader, tests, ignore): tests.addTests(doctest.DocTestSuite(PMSTestSuite.library)) + tests.addTests(doctest.DocTestSuite(PMSTestSuite.repository)) return tests =20 if __name__ =3D=3D '__main__':