public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/pms-test-suite:master commit in: basic/, /
@ 2011-05-31 18:10 Michał Górny
  0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2011-05-31 18:10 UTC (permalink / raw
  To: gentoo-commits

commit:     db866d088dc47ed2e33afb81839c5bc0f2a7c828
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed May 25 20:35:26 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue May 31 18:01:32 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=db866d08

Add library initializers.

---
 __init__.py       |   14 ++++++++++++++
 basic/__init__.py |    5 +++++
 2 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/__init__.py b/__init__.py
new file mode 100644
index 0000000..24971b6
--- /dev/null
+++ b/__init__.py
@@ -0,0 +1,14 @@
+#	vim:fileencoding=utf-8
+# (c) 2011 Michał Górny <mgorny@gentoo.org>
+# Released under the terms of the 2-clause BSD license.
+
+from PMSTestSuite.library import TestLibrary
+
+class ExampleLibrary(TestLibrary):
+	"""
+	Standard test library for the PMS Test Suite.
+	"""
+
+	test_names=[
+		'basic.phase_function_order.PhaseFunctionOrderTest'
+	]

diff --git a/basic/__init__.py b/basic/__init__.py
new file mode 100644
index 0000000..bb336a2
--- /dev/null
+++ b/basic/__init__.py
@@ -0,0 +1,5 @@
+#	vim:fileencoding=utf-8
+# (c) 2011 Michał Górny <mgorny@gentoo.org>
+# Released under the terms of the 2-clause BSD license.
+
+pass



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] proj/pms-test-suite:master commit in: basic/, /
@ 2011-05-31 18:10 Michał Górny
  0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2011-05-31 18:10 UTC (permalink / raw
  To: gentoo-commits

commit:     cd697e0de50e85efea819a884cc353a8b5101e5b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue May 31 17:17:59 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue May 31 18:01:35 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=cd697e0d

Introduce DBusEbuildTestCase.

---
 basic/phase_function_order.py |    5 +++--
 dbus_case.py                  |   21 +++++++++++++++++++++
 2 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/basic/phase_function_order.py b/basic/phase_function_order.py
index 80a1c4e..c8ca950 100644
--- a/basic/phase_function_order.py
+++ b/basic/phase_function_order.py
@@ -2,9 +2,10 @@
 # (c) 2011 Michał Górny <mgorny@gentoo.org>
 # Released under the terms of the 2-clause BSD license.
 
-from PMSTestSuite.library.case import EbuildTestCase, phase_func_names
+from PMSTestSuite.library.case import phase_func_names
+from PMSTestSuite.library.standard.dbus_case import DBusEbuildTestCase
 
-class PhaseFunctionOrderTest(EbuildTestCase):
+class PhaseFunctionOrderTest(DBusEbuildTestCase):
 	relevant_eapis = (0, 2, 4)
 
 	ebuild_vars = {

diff --git a/dbus_case.py b/dbus_case.py
new file mode 100644
index 0000000..8e9db92
--- /dev/null
+++ b/dbus_case.py
@@ -0,0 +1,21 @@
+#	vim:fileencoding=utf-8
+# (c) 2011 Michał Górny <mgorny@gentoo.org>
+# Released under the terms of the 2-clause BSD license.
+
+from PMSTestSuite.library.case import EbuildTestCase
+from PMSTestSuite.dbus_handler import DBusHandler, RunningTest
+
+dbus_handler = DBusHandler()
+
+class DBusEbuildTestCase(EbuildTestCase):
+	""" D-Bus capable base test case. """
+	dbus_output = []
+
+	def __init__(self, *args, **kwargs):
+		""" Initialize the test case and the D-Bus object for it. """
+		EbuildTestCase.__init__(self, *args, **kwargs)
+		dbus_handler.add_test(self)
+
+	def check_result(self, res):
+		print(self.dbus_output)
+		raise NotImplementedError('XXX')



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-31 18:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-31 18:10 [gentoo-commits] proj/pms-test-suite:master commit in: basic/, / Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2011-05-31 18:10 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