public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/pms-test-suite:master commit in: /, PMSTestSuite/repository/
@ 2011-05-24  8:11 Michał Górny
  0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2011-05-24  8:11 UTC (permalink / raw
  To: gentoo-commits

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__':



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-24  8:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-24  8:11 [gentoo-commits] proj/pms-test-suite:master commit in: /, PMSTestSuite/repository/ Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox