public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/pms-test-suite:master commit in: /, PMSTestSuite/repository/
Date: Tue, 24 May 2011 08:11:58 +0000 (UTC)	[thread overview]
Message-ID: <83a627c7508d426e057cbfd2063590f9bdff50a0.mgorny@gentoo> (raw)

commit:     83a627c7508d426e057cbfd2063590f9bdff50a0
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue May 24 07:59:20 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue May 24 07:59:20 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=83a627c7

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/repository/__init__.py
new file mode 100644
index 0000000..b09e8be
--- /dev/null
+++ b/PMSTestSuite/repository/__init__.py
@@ -0,0 +1,15 @@
+#	vim:fileencoding=utf-8
+# (c) 2011 Michał Górny <mgorny@gentoo.org>
+# 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 manner.
+
+	>>> r = EbuildRepository('/usr/portage') # XXX: do not depend on path
+	"""
+
+	def __init__(self, path):
+		self.path = 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
 
-import unittest
-import doctest
-import PMSTestSuite.library
+import unittest, doctest
+import PMSTestSuite.library, PMSTestSuite.repository
 
 def load_tests(loader, tests, ignore):
 	tests.addTests(doctest.DocTestSuite(PMSTestSuite.library))
+	tests.addTests(doctest.DocTestSuite(PMSTestSuite.repository))
 	return tests
 
 if __name__ == '__main__':



                 reply	other threads:[~2011-05-24  8:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83a627c7508d426e057cbfd2063590f9bdff50a0.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox