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

commit:     5020f5b6e324e07a4530a8ecf0ce4ba6b1db272f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon May 16 11:38:26 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon May 16 11:38:26 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=5020f5b6

Add the test library as a submodule.

---
 .gitmodules |    3 +++
 library     |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..7aa007a
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "library"]
+	path = library
+	url = http://git.overlays.gentoo.org/gitroot/proj/pms-test-suite-library.git

diff --git a/library b/library
new file mode 160000
index 0000000..1015715
--- /dev/null
+++ b/library
@@ -0,0 +1 @@
+Subproject commit 10157154a0489534d962573977b63de746eac662



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

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

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

Add a minimal ebuild-generator script.

---
 ebuild-generator |   39 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/ebuild-generator b/ebuild-generator
new file mode 100755
index 0000000..89268f1
--- /dev/null
+++ b/ebuild-generator
@@ -0,0 +1,39 @@
+#!/usr/bin/python
+#	vim:fileencoding=utf-8
+# (c) 2011 Michał Górny <mgorny@gentoo.org>
+# Released under the terms of the 2-clause BSD license.
+
+import sys
+
+from PMSTestSuite.library import load_library
+from PMSTestSuite.repository import EbuildRepository
+
+def main(*argv):
+	# XXX: optparse/argparse
+	if len(argv) < 2:
+		print('%s <repo-path>' % argv[0])
+		return 1
+
+	repo_path = argv[1]
+	library_name = 'test'
+
+	try:
+		repo = EbuildRepository(repo_path)
+	except (OSError, IOError, ValueError) as e:
+		print('Repository open failed: %s' % e)
+		return 1
+
+	try:
+		lib = load_library(library_name)
+	except (ImportError, TypeError) as e:
+		print('Test library load failed: %s' % e)
+		return 1
+
+	files = {}
+	for t in lib:
+		files.update(t.get_output_files())
+	
+	repo.write_files(files)
+
+if __name__ == '__main__':
+	sys.exit(main(*sys.argv))



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

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

commit:     6d989181b13ff77dfd4f25d6816cf533911abfd6
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed May 25 18:18:50 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed May 25 18:18:50 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=6d989181

Add a minimal README file.

---
 README |   38 ++++++++++++++++++++++++++++++++++++++
 1 files changed, 38 insertions(+), 0 deletions(-)

diff --git a/README b/README
new file mode 100644
index 0000000..2e916bf
--- /dev/null
+++ b/README
@@ -0,0 +1,38 @@
+PMS Test Suite
+==============
+
+A GSoC 2011 project by Michał Górny.
+
+http://www.gentoo.org/proj/en/qa/pms/pms-test-suite.xml
+
+
+Few words of introduction
+-------------------------
+
+The PMS Test Suite projects aims to create a comprehensive, universal test suite
+for Gentoo Package Managers. It is supposed to create a set of test ebuilds, run
+them using a particular Package Manager (like portage) and check their results
+to determine whether the PM does comply to the PMS [1].
+
+[1]:http://www.gentoo.org/proj/en/qa/pms.xml
+
+
+How to run it
+-------------
+
+The code is currently in early stage of development, you can try out some
+of the functions already implemented.
+
+First you need to clone the two necessary git repos:
+
+	git clone git://git.overlays.gentoo.org/proj/pms-test-suite.git
+	git clone git://git.overlays.gentoo.org/proj/pms-test-suite-overlay.git
+
+Then run the `ebuild-generator` script, passing the path to the overlay as its
+only argument:
+
+	cd pms-test-suite
+	./ebuild-generator ../pms-test-suite-overlay
+
+
+<!-- vim:se syn=markdown :-->



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

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

commit:     3c00f09c5a801e5403a3e694dce7a2511a1412fa
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed May 25 20:40:03 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed May 25 20:40:03 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=3c00f09c

Add a .gitignore file.

---
 .gitignore |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..31f264e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.pyc
+/MANIFEST
+/build
+/dist



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

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

commit:     1d48ee7cff391940940520cee4135648f93e16f2
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu May 26 07:20:11 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu May 26 07:20:11 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=1d48ee7c

ebuild-generator: support option parsing.

---
 README           |    4 ++--
 ebuild-generator |   46 ++++++++++++++++++++++++++++++++++------------
 2 files changed, 36 insertions(+), 14 deletions(-)

diff --git a/README b/README
index 2e916bf..82351ca 100644
--- a/README
+++ b/README
@@ -29,10 +29,10 @@ First you need to clone the two necessary git repos:
 	git clone git://git.overlays.gentoo.org/proj/pms-test-suite-overlay.git
 
 Then run the `ebuild-generator` script, passing the path to the overlay as its
-only argument:
+-R option:
 
 	cd pms-test-suite
-	./ebuild-generator ../pms-test-suite-overlay
+	./ebuild-generator -R ../pms-test-suite-overlay
 
 
 <!-- vim:se syn=markdown :-->

diff --git a/ebuild-generator b/ebuild-generator
index a868aa4..4394a0e 100755
--- a/ebuild-generator
+++ b/ebuild-generator
@@ -3,35 +3,57 @@
 # (c) 2011 Michał Górny <mgorny@gentoo.org>
 # Released under the terms of the 2-clause BSD license.
 
-import sys
+import os.path, sys
 
+from optparse import OptionParser
+
+import PMSTestSuite
 from PMSTestSuite.library import load_library
 from PMSTestSuite.repository import EbuildRepository
 from PMSTestSuite.pm import get_package_managers
 
-def main(*argv):
-	# XXX: optparse/argparse
-	if len(argv) < 2:
-		print('%s <repo-path>' % argv[0])
-		return 1
+def main(prog, *args):
+	opt = OptionParser(
+			prog = os.path.basename(prog),
+			version = PMSTestSuite.PV,
+			description = 'Generate the ebuilds for a test library.'
+	)
+
+	# XXX: -r for getting through PM's repo_name
+	opt.add_option('-R', '--repository-path', dest='repo_path',
+			help='Path to the repository to store ebuilds in')
+	opt.add_option('-l', '--library', dest='library_name',
+			help='Test library to use (default: standard)',
+			default='standard')
+	# XXX: get list, autodetect, more magic
+	opt.add_option('-p', '--package-manager', dest='pm',
+			help='Package manager to use',
+			default='portage')
 
-	repo_path = argv[1]
-	library_name = 'standard'
+	(opts, args) = opt.parse_args(list(args))
+
+	if not opts.repo_path:
+		opt.error('--repository-path must be specified')
+
+	for x in get_package_managers():
+		if x.name == opts.pm:
+			pm = x.inst()
+			break
+	else:
+		opt.error('Package manager not supported: %s' % opts.pm)
 
 	try:
-		repo = EbuildRepository(repo_path)
+		repo = EbuildRepository(opts.repo_path)
 	except (OSError, IOError, ValueError) as e:
 		print('Repository open failed: %s' % e)
 		return 1
 
 	try:
-		lib = load_library(library_name)
+		lib = load_library(opts.library_name)
 	except (ImportError, TypeError) as e:
 		print('Test library load failed: %s' % e)
 		return 1
 
-	pm = get_package_managers()[0].inst()
-
 	files = {}
 	for t in lib:
 		files.update(t.get_output_files())



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

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

commit:     f92b7dd2a6fe7cf7c584ed486f6546e413ce0230
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri May 27 06:21:25 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri May 27 06:21:25 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=f92b7dd2

README: fix 'git clone' ref to clone submodules.

---
 README |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/README b/README
index 82351ca..d81b222 100644
--- a/README
+++ b/README
@@ -25,7 +25,7 @@ of the functions already implemented.
 
 First you need to clone the two necessary git repos:
 
-	git clone git://git.overlays.gentoo.org/proj/pms-test-suite.git
+	git clone --recursive git://git.overlays.gentoo.org/proj/pms-test-suite.git
 	git clone git://git.overlays.gentoo.org/proj/pms-test-suite-overlay.git
 
 Then run the `ebuild-generator` script, passing the path to the overlay as its



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

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

commit:     9cd72bcb2be6f021e72f34a6aad294f4d5372b37
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun May 29 17:51:45 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun May 29 17:51:45 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=9cd72bcb

Update package list in setup.py.

---
 setup.py |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/setup.py b/setup.py
index 31fde7f..68f4b67 100755
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20,13 @@ setup(
 		author_email = 'mgorny@gentoo.org',
 		url = 'http://www.gentoo.org/proj/en/qa/pms/pms-test-suite.xml',
 
-		packages = ['PMSTestSuite'],
+		packages = [
+			'PMSTestSuite',
+			'PMSTestSuite.library',
+			'PMSTestSuite.library.test',
+			'PMSTestSuite.pm',
+			'PMSTestSuite.repository'
+		],
 
 		classifiers = [
 			'Development Status :: 2 - Pre-Alpha',



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

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

commit:     f4a73aafc693727921a0b8650e0817bab3179036
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed May 25 20:37:44 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=f4a73aaf

Add a .gitignore for Python compiled files.

---
 .gitignore |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0d20b64
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*.pyc



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

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

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

Merge the standard test library.


 .../library/{test => standard}/__init__.py         |    4 +-
 .../{ => library/standard/basic}/__init__.py       |    2 +-
 .../library/standard/basic/phase_function_order.py |   46 ++++++++++++++++++++
 PMSTestSuite/library/standard/dbus_case.py         |   21 +++++++++
 4 files changed, 70 insertions(+), 3 deletions(-)

diff --cc PMSTestSuite/library/standard/basic/phase_function_order.py
index 0000000,c8ca950..c8ca950
mode 000000,100644..100644
--- a/PMSTestSuite/library/standard/basic/phase_function_order.py
+++ b/PMSTestSuite/library/standard/basic/phase_function_order.py
diff --cc PMSTestSuite/library/standard/dbus_case.py
index 0000000,8e9db92..8e9db92
mode 000000,100644..100644
--- a/PMSTestSuite/library/standard/dbus_case.py
+++ b/PMSTestSuite/library/standard/dbus_case.py



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

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

commit:     2fcf2623c345e4e35eea48c9e289e9597f46c324
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue May 31 19:07:07 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue May 31 19:07:07 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=2fcf2623

README: Recursive clone is no longer necessary.

---
 README |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/README b/README
index d81b222..82351ca 100644
--- a/README
+++ b/README
@@ -25,7 +25,7 @@ of the functions already implemented.
 
 First you need to clone the two necessary git repos:
 
-	git clone --recursive git://git.overlays.gentoo.org/proj/pms-test-suite.git
+	git clone git://git.overlays.gentoo.org/proj/pms-test-suite.git
 	git clone git://git.overlays.gentoo.org/proj/pms-test-suite-overlay.git
 
 Then run the `ebuild-generator` script, passing the path to the overlay as its



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

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

commit:     49e783ccb8a8b0a29bc81d18075d047e86baa810
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue May 31 19:10:00 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue May 31 19:10:00 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=49e783cc

Update package and script lists.

---
 setup.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/setup.py b/setup.py
index 68f4b67..af06fec 100755
--- a/setup.py
+++ b/setup.py
@@ -23,10 +23,15 @@ setup(
 		packages = [
 			'PMSTestSuite',
 			'PMSTestSuite.library',
+			'PMSTestSuite.library.standard',
+			'PMSTestSuite.library.standard.basic',
 			'PMSTestSuite.library.test',
 			'PMSTestSuite.pm',
 			'PMSTestSuite.repository'
 		],
+		scripts = [
+			'pms-tester'
+		],
 
 		classifiers = [
 			'Development Status :: 2 - Pre-Alpha',



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

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

commit:     d86ac6353301cb0fcbb541b4a1be672ea955e452
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jun  5 18:37:08 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jun  5 18:37:08 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=d86ac635

Update the README.

---
 README |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/README b/README
index 82351ca..a0bc0bb 100644
--- a/README
+++ b/README
@@ -23,16 +23,15 @@ How to run it
 The code is currently in early stage of development, you can try out some
 of the functions already implemented.
 
-First you need to clone the two necessary git repos:
+First you need to clone the project's git repo:
 
 	git clone git://git.overlays.gentoo.org/proj/pms-test-suite.git
-	git clone git://git.overlays.gentoo.org/proj/pms-test-suite-overlay.git
 
-Then run the `ebuild-generator` script, passing the path to the overlay as its
--R option:
+Then run the `pms-tester` script, passing the path to a temporary overlay
+location as its -R option:
 
 	cd pms-test-suite
-	./ebuild-generator -R ../pms-test-suite-overlay
-
+	umask 022
+	./pms-tester -R /tmp/pms-test-suite-overlay
 
 <!-- vim:se syn=markdown :-->



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

* [gentoo-commits] proj/pms-test-suite:master commit in: /
@ 2011-06-08 12:44 Michał Górny
  0 siblings, 0 replies; 33+ messages in thread
From: Michał Górny @ 2011-06-08 12:44 UTC (permalink / raw
  To: gentoo-commits

commit:     9f87f959c266cb079b16094d3ab10a23137178ee
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jun  8 12:44:20 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun  8 12:44:20 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=9f87f959

Run tests using 'setup.py test'.

---
 run-tests.py |   23 -----------------------
 setup.py     |   40 ++++++++++++++++++++++++++++++++++++++--
 2 files changed, 38 insertions(+), 25 deletions(-)

diff --git a/run-tests.py b/run-tests.py
deleted file mode 100755
index 956e744..0000000
--- a/run-tests.py
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/python
-
-import unittest, doctest
-
-import PMSTestSuite.cli
-import PMSTestSuite.library
-import PMSTestSuite.pm
-import PMSTestSuite.pm.pkgcorepm
-import PMSTestSuite.pm.portagepm
-import PMSTestSuite.repository
-
-def load_tests(loader, tests, ignore):
-	tests.addTests(doctest.DocTestSuite(PMSTestSuite.cli))
-	tests.addTests(doctest.DocTestSuite(PMSTestSuite.library))
-	tests.addTests(doctest.DocTestSuite(PMSTestSuite.library.case))
-	tests.addTests(doctest.DocTestSuite(PMSTestSuite.pm))
-	tests.addTests(doctest.DocTestSuite(PMSTestSuite.pm.pkgcorepm))
-	tests.addTests(doctest.DocTestSuite(PMSTestSuite.pm.portagepm))
-	tests.addTests(doctest.DocTestSuite(PMSTestSuite.repository))
-	return tests
-
-if __name__ == '__main__':
-	unittest.main()

diff --git a/setup.py b/setup.py
index af06fec..271d13f 100755
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@
 # (c) 2011 Michał Górny <mgorny@gentoo.org>
 # Released under the terms of the 2-clause BSD license.
 
-from distutils.core import setup
+from distutils.core import setup, Command
 
 import os.path, sys
 
@@ -13,6 +13,38 @@ try:
 except ImportError:
 	PV = 'unknown'
 
+class TestCommand(Command):
+	user_options = []
+
+	def initialize_options(self):
+		pass
+
+	def finalize_options(self):
+		pass
+
+	def run(self):
+		import unittest, doctest
+
+		import PMSTestSuite.cli
+		import PMSTestSuite.library
+		import PMSTestSuite.pm
+		import PMSTestSuite.pm.pkgcorepm
+		import PMSTestSuite.pm.portagepm
+		import PMSTestSuite.repository
+
+		tests = unittest.TestSuite()
+		tests.addTests(doctest.DocTestSuite(PMSTestSuite.cli))
+		tests.addTests(doctest.DocTestSuite(PMSTestSuite.library))
+		tests.addTests(doctest.DocTestSuite(PMSTestSuite.library.case))
+		tests.addTests(doctest.DocTestSuite(PMSTestSuite.pm))
+		tests.addTests(doctest.DocTestSuite(PMSTestSuite.pm.pkgcorepm))
+		tests.addTests(doctest.DocTestSuite(PMSTestSuite.pm.portagepm))
+		tests.addTests(doctest.DocTestSuite(PMSTestSuite.repository))
+
+		r = unittest.TextTestRunner()
+		res = r.run(tests)
+		sys.exit(0 if res.wasSuccessful() else 1)
+
 setup(
 		name = 'pms-test-suite',
 		version = PV,
@@ -43,5 +75,9 @@ setup(
 			'Topic :: Software Development :: Quality Assurance',
 			'Topic :: Software Development :: Testing',
 			'Topic :: System :: Installation/Setup'
-		]
+		],
+
+		cmdclass = {
+			'test': TestCommand
+		}
 )



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

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

commit:     54bb7aea747dbf9ddc67fe06434a7b21660b2fdd
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 19 10:54:30 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jun 19 10:54:30 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=54bb7aea

Add a distutils command to build docs.

---
 setup.py |   38 ++++++++++++++++++++++++++++++++++++--
 1 files changed, 36 insertions(+), 2 deletions(-)

diff --git a/setup.py b/setup.py
index 5018d21..7cf346f 100755
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@
 # (c) 2011 Michał Górny <mgorny@gentoo.org>
 # Released under the terms of the 2-clause BSD license.
 
-from distutils.core import setup, Command
+from distutils.core import setup, Command, Distribution
 
 import os.path, sys
 
@@ -13,6 +13,32 @@ try:
 except ImportError:
 	PV = 'unknown'
 
+class DocCommand(Command):
+	user_options = []
+
+	def __init__(self, distr):
+		Command.__init__(self, distr)
+		self.docs = distr.docs
+
+	def initialize_options(self):
+		pass
+
+	def finalize_options(self):
+		pass
+
+	def run(self):
+		try:
+			import markdown
+		except ImportError:
+			sys.stderr.write('Doc generation requires the markdown module:\nhttp://www.freewisdom.org/projects/python-markdown\n')
+			sys.exit(1)
+
+		m = markdown.Markdown()
+		for f in self.docs:
+			d = '%s.html' % os.path.splitext(f)[0]
+			print('Creating %s (from %s)' % (d, f))
+			m.convertFile(f, d)
+
 class TestCommand(Command):
 	user_options = []
 
@@ -45,6 +71,9 @@ class TestCommand(Command):
 		res = r.run(tests)
 		sys.exit(0 if res.wasSuccessful() else 1)
 
+class DocDistribution(Distribution):
+	docs = []
+
 setup(
 		name = 'pms-test-suite',
 		version = PV,
@@ -63,6 +92,9 @@ setup(
 		scripts = [
 			'pms-tester'
 		],
+		docs = [
+			'doc/library-format.md'
+		],
 
 		classifiers = [
 			'Development Status :: 2 - Pre-Alpha',
@@ -77,6 +109,8 @@ setup(
 		],
 
 		cmdclass = {
+			'doc': DocCommand,
 			'test': TestCommand
-		}
+		},
+		distclass = DocDistribution
 )



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

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

commit:     3d6d93ab74484fca1ad5e9c3cee1d8384bc89b99
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 22 06:45:38 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun 22 06:45:38 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=3d6d93ab

Add a simple HTML skel to the doc output.

---
 setup.py |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/setup.py b/setup.py
index 7cf346f..aa0e9f5 100755
--- a/setup.py
+++ b/setup.py
@@ -33,7 +33,23 @@ class DocCommand(Command):
 			sys.stderr.write('Doc generation requires the markdown module:\nhttp://www.freewisdom.org/projects/python-markdown\n')
 			sys.exit(1)
 
-		m = markdown.Markdown()
+		class PMSTSExts(markdown.Extension):
+			class HTMLSkelAdder(markdown.postprocessors.Postprocessor):
+				def run(self, text):
+					return '''<?xml version="1.0" encoding="utf-8"?>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<title>%s</title>
+</head>
+<body>
+''' % 'XXX' + text + '''
+</body>
+</html>'''
+
+			def extendMarkdown(self, md, md_globals):
+				md.postprocessors.add('htmlskeladder', self.HTMLSkelAdder(), '_end')
+
+		m = markdown.Markdown(extensions = [PMSTSExts()])
 		for f in self.docs:
 			d = '%s.html' % os.path.splitext(f)[0]
 			print('Creating %s (from %s)' % (d, f))



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

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

commit:     29193394995ad2aa7a3aa6a0a9da16b6fbe9a370
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 22 06:50:32 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun 22 06:50:32 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=29193394

Grep title from Markdown header.

---
 setup.py |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/setup.py b/setup.py
index aa0e9f5..a9beac7 100755
--- a/setup.py
+++ b/setup.py
@@ -34,7 +34,20 @@ class DocCommand(Command):
 			sys.exit(1)
 
 		class PMSTSExts(markdown.Extension):
+			class TitleGrepper(markdown.treeprocessors.Treeprocessor):
+				def __init__(self, ska):
+					self._ska = ska
+
+				def run(self, root):
+					for c in root:
+						if c.tag == "h1":
+							self._ska.title = c.text
+							break
+					return root
+
 			class HTMLSkelAdder(markdown.postprocessors.Postprocessor):
+				title = ''
+
 				def run(self, text):
 					return '''<?xml version="1.0" encoding="utf-8"?>
 <html xmlns="http://www.w3.org/1999/xhtml">
@@ -42,12 +55,14 @@ class DocCommand(Command):
 	<title>%s</title>
 </head>
 <body>
-''' % 'XXX' + text + '''
+''' % self.title + text + '''
 </body>
 </html>'''
 
 			def extendMarkdown(self, md, md_globals):
-				md.postprocessors.add('htmlskeladder', self.HTMLSkelAdder(), '_end')
+				ska = self.HTMLSkelAdder()
+				md.postprocessors.add('htmlskeladder', ska, '_end')
+				md.treeprocessors.add('titlegrepper', self.TitleGrepper(ska), '_end')
 
 		m = markdown.Markdown(extensions = [PMSTSExts()])
 		for f in self.docs:



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

* [gentoo-commits] proj/pms-test-suite:master commit in: /
@ 2011-06-22 11:50 Michał Górny
  0 siblings, 0 replies; 33+ messages in thread
From: Michał Górny @ 2011-06-22 11:50 UTC (permalink / raw
  To: gentoo-commits

commit:     19c7e031281df6bc25863a07ae3249530250df6f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 22 11:44:06 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun 22 11:44:06 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=19c7e031

Support highlighting the source code.

---
 setup.py |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/setup.py b/setup.py
index a0e47ac..46a50f5 100755
--- a/setup.py
+++ b/setup.py
@@ -59,12 +59,22 @@ class DocCommand(Command):
 </body>
 </html>'''
 
+			class LangAdder(markdown.treeprocessors.Treeprocessor):
+				def run(self, root):
+					for c in root.getiterator('pre'):
+						children = c.getchildren()
+						if len(children) == 1 and children[0].tag == 'code':
+							children[0].text = ':::python\n' + children[0].text
+
+					return root
+
 			def extendMarkdown(self, md, md_globals):
 				ska = self.HTMLSkelAdder()
 				md.postprocessors.add('htmlskeladder', ska, '_end')
 				md.treeprocessors.add('titlegrepper', self.TitleGrepper(ska), '_end')
+				md.treeprocessors.add('langadder', self.LangAdder(), '<hilite')
 
-		m = markdown.Markdown(extensions = [PMSTSExts()])
+		m = markdown.Markdown(extensions = ['codehilite', PMSTSExts()])
 		for f in self.docs:
 			d = '%s.html' % os.path.splitext(f)[0]
 			print('Creating %s (from %s)' % (d, f))



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

* [gentoo-commits] proj/pms-test-suite:master commit in: /
@ 2011-06-23 16:28 Michał Górny
  0 siblings, 0 replies; 33+ messages in thread
From: Michał Górny @ 2011-06-23 16:28 UTC (permalink / raw
  To: gentoo-commits

commit:     676c784914f2268f8abf6d6bdf04e7277ce1a115
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 23 16:29:18 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jun 23 16:29:18 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=676c7849

Add HTML docs to gitignore.

---
 .gitignore |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore
index 31f264e..ce6c37d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
 /MANIFEST
 /build
 /dist
+/doc/*.html



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

* [gentoo-commits] proj/pms-test-suite:master commit in: /
@ 2011-06-23 21:14 Michał Górny
  0 siblings, 0 replies; 33+ messages in thread
From: Michał Górny @ 2011-06-23 21:14 UTC (permalink / raw
  To: gentoo-commits

commit:     b00981f41e6273900cefff55f26e70089cba2855
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 23 21:08:58 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jun 23 21:08:58 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=b00981f4

Simplify test runner.

---
 setup.py |   21 +++++++--------------
 1 files changed, 7 insertions(+), 14 deletions(-)

diff --git a/setup.py b/setup.py
index 839b5a7..d603e45 100755
--- a/setup.py
+++ b/setup.py
@@ -93,21 +93,14 @@ class TestCommand(Command):
 	def run(self):
 		import unittest, doctest
 
-		import PMSTestSuite.cli
-		import PMSTestSuite.library
-		import PMSTestSuite.pm
-		import PMSTestSuite.pm.pkgcorepm
-		import PMSTestSuite.pm.portagepm
-		import PMSTestSuite.repository
-
 		tests = unittest.TestSuite()
-		tests.addTests(doctest.DocTestSuite(PMSTestSuite.cli))
-		tests.addTests(doctest.DocTestSuite(PMSTestSuite.library))
-		tests.addTests(doctest.DocTestSuite(PMSTestSuite.library.case))
-		tests.addTests(doctest.DocTestSuite(PMSTestSuite.pm))
-		tests.addTests(doctest.DocTestSuite(PMSTestSuite.pm.pkgcorepm))
-		tests.addTests(doctest.DocTestSuite(PMSTestSuite.pm.portagepm))
-		tests.addTests(doctest.DocTestSuite(PMSTestSuite.repository))
+		tests.addTests(doctest.DocTestSuite('PMSTestSuite.cli'))
+		tests.addTests(doctest.DocTestSuite('PMSTestSuite.library'))
+		tests.addTests(doctest.DocTestSuite('PMSTestSuite.library.case'))
+		tests.addTests(doctest.DocTestSuite('PMSTestSuite.pm'))
+		tests.addTests(doctest.DocTestSuite('PMSTestSuite.pm.pkgcorepm'))
+		tests.addTests(doctest.DocTestSuite('PMSTestSuite.pm.portagepm'))
+		tests.addTests(doctest.DocTestSuite('PMSTestSuite.repository'))
 
 		r = unittest.TextTestRunner()
 		res = r.run(tests)



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

* [gentoo-commits] proj/pms-test-suite:master commit in: /
@ 2011-06-25  8:39 Michał Górny
  0 siblings, 0 replies; 33+ messages in thread
From: Michał Górny @ 2011-06-25  8:39 UTC (permalink / raw
  To: gentoo-commits

commit:     9591b0b7741360471d16225543cf20d9e99805f6
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 25 08:40:15 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jun 25 08:40:15 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=9591b0b7

Install the D-Bus service config file as well.

---
 setup.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/setup.py b/setup.py
index b832b28..365968d 100755
--- a/setup.py
+++ b/setup.py
@@ -131,6 +131,9 @@ setup(
 			'doc/library-format.md',
 			'doc/ebuild-test-case.md'
 		],
+		data_files = [
+			('/etc/dbus-1/system.d', ['org.gentoo.pmstestsuite.conf'])
+		],
 
 		classifiers = [
 			'Development Status :: 2 - Pre-Alpha',



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

* [gentoo-commits] proj/pms-test-suite:master commit in: /
@ 2011-06-25  8:39 Michał Górny
  0 siblings, 0 replies; 33+ messages in thread
From: Michał Górny @ 2011-06-25  8:39 UTC (permalink / raw
  To: gentoo-commits

commit:     6c9327e87a7998b7ea8e1c8722ed0b45e87c08ed
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 25 08:35:59 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jun 25 08:35:59 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=6c9327e8

Rename the D-Bus config file.

---
 ...STestSuite.conf => org.gentoo.pmstestsuite.conf |    0
 1 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/org.gentoo.PMSTestSuite.conf b/org.gentoo.pmstestsuite.conf
similarity index 100%
rename from org.gentoo.PMSTestSuite.conf
rename to org.gentoo.pmstestsuite.conf



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

* [gentoo-commits] proj/pms-test-suite:master commit in: /
@ 2011-06-28  7:13 Michał Górny
  0 siblings, 0 replies; 33+ messages in thread
From: Michał Górny @ 2011-06-28  7:13 UTC (permalink / raw
  To: gentoo-commits

commit:     6cd91be17b48384399deba3cc2335eec6ba675cb
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 28 07:13:35 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jun 28 07:13:35 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=6cd91be1

Clean up setup.py a little.

---
 setup.py |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/setup.py b/setup.py
index 6931681..e961633 100755
--- a/setup.py
+++ b/setup.py
@@ -14,14 +14,12 @@ except ImportError:
 	PV = 'unknown'
 
 class DocCommand(Command):
+	description = 'create HTML docs'
 	user_options = []
 
-	def __init__(self, distr):
-		Command.__init__(self, distr)
-		self.docs = distr.docs
-
 	def initialize_options(self):
-		pass
+		self.docs = self.distribution.docs
+		self.outfiles = []
 
 	def finalize_options(self):
 		pass
@@ -80,8 +78,16 @@ class DocCommand(Command):
 			d = '%s.html' % os.path.splitext(f)[0]
 			print('Creating %s (from %s)' % (d, f))
 			m.convertFile(f, d)
+			self.outfiles.append(d)
+
+	def get_inputs(self):
+		return self.docs or []
+
+	def get_outputs(self):
+		return self.outfiles
 
 class TestCommand(Command):
+	description = 'run tests'
 	user_options = []
 
 	def initialize_options(self):



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

* [gentoo-commits] proj/pms-test-suite:master commit in: /
@ 2011-06-28  7:13 Michał Górny
  0 siblings, 0 replies; 33+ messages in thread
From: Michał Górny @ 2011-06-28  7:13 UTC (permalink / raw
  To: gentoo-commits

commit:     47f6ed2a74e8492f5d699492b8666ec2dc09e9d7
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 28 07:14:13 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jun 28 07:14:13 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=47f6ed2a

Include docs in sdist.

---
 MANIFEST.in |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/MANIFEST.in b/MANIFEST.in
index eb762f3..0d58d17 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1 +1,2 @@
 include COPYING
+include doc/*.md



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

* [gentoo-commits] proj/pms-test-suite:master commit in: /
@ 2011-06-29 12:58 Michał Górny
  0 siblings, 0 replies; 33+ messages in thread
From: Michał Górny @ 2011-06-29 12:58 UTC (permalink / raw
  To: gentoo-commits

commit:     48857d9328fd504577577e28456eebb3b16a0f37
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 29 12:27:02 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun 29 12:27:02 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=48857d93

Include .css in dist.

---
 MANIFEST.in |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/MANIFEST.in b/MANIFEST.in
index 0d58d17..059cab7 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,2 +1,3 @@
 include COPYING
 include doc/*.md
+include doc/*.css



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

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

commit:     e70e4e1bbe1d9671374fe6f4de4093b9149426ab
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 10 09:01:03 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jul 10 09:04:14 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=e70e4e1b

Support generating docs using epydoc.

---
 .gitignore |    1 +
 setup.py   |    6 +++++-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/.gitignore b/.gitignore
index ce6c37d..7208896 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
 /build
 /dist
 /doc/*.html
+/doc/html/

diff --git a/setup.py b/setup.py
index e961633..3cea20c 100755
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@
 
 from distutils.core import setup, Command, Distribution
 
-import os.path, sys
+import os.path, subprocess, sys
 
 sys.path.insert(0, os.path.dirname(__file__))
 try:
@@ -80,6 +80,10 @@ class DocCommand(Command):
 			m.convertFile(f, d)
 			self.outfiles.append(d)
 
+		print('Creating API docs')
+		subprocess.check_call(['epydoc', '--verbose', '--html',
+			'--output', os.path.join('doc', 'html'), 'pmstestsuite'])
+
 	def get_inputs(self):
 		return self.docs or []
 



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

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

commit:     a18c93feb60e6151044affec1663eb685529b16e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 31 14:44:38 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jul 31 14:44:38 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=a18c93fe

Update README on test execution.

---
 README |   31 +++++++++++++++++++++++--------
 1 files changed, 23 insertions(+), 8 deletions(-)

diff --git a/README b/README
index a0bc0bb..c05f9b5 100644
--- a/README
+++ b/README
@@ -20,18 +20,33 @@ to determine whether the PM does comply to the PMS [1].
 How to run it
 -------------
 
-The code is currently in early stage of development, you can try out some
-of the functions already implemented.
+First, you need to have an overlay for the tests. If you intend to use portage,
+`pms-tester` can create an temporary repository and use it automatically. To do
+so, run:
 
-First you need to clone the project's git repo:
+	pms-tester -R /tmp/your-repo-location
 
-	git clone git://git.overlays.gentoo.org/proj/pms-test-suite.git
+If you intend to test another PM, you need to either create the repository
+yourself or use the above command to let `pms-tester` create it for you. Notice
+you'll need to have portage installed for that. Afterwards, you need to add
+the repository to your PM configuration.
 
-Then run the `pms-tester` script, passing the path to a temporary overlay
-location as its -R option:
+For example, setting up a test repository for portage configs can be achieved
+through:
 
-	cd pms-test-suite
 	umask 022
-	./pms-tester -R /tmp/pms-test-suite-overlay
+	mkdir -p /usr/local/portage/pms-tests/profiles
+	echo 'pms-tests' > /usr/local/portage/pms-tests/profiles/repo_name
+	echo 'PORTDIR_OVERLAY="${PORTDIR_OVERLAY}
+		/usr/local/portage/pms-tests' >> /etc/make.conf
+
+The newly-created repository can be then referenced by name:
+
+	pms-tester -r pms-tests -p yourpm
+
+`pms-tests` is the default name, and pms-tester will use it when no `-r`
+nor `-R` is specified. Thus, the above could be simplified to:
+
+	pms-tester -p yourpm
 
 <!-- vim:se syn=markdown :-->



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

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

commit:     77afc9c476bc6bcc1c40d467f6bae95d492fae51
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 31 14:59:08 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jul 31 14:59:08 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=77afc9c4

README: fix repo name.

---
 README |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/README b/README
index c05f9b5..606cf24 100644
--- a/README
+++ b/README
@@ -36,15 +36,15 @@ through:
 
 	umask 022
 	mkdir -p /usr/local/portage/pms-tests/profiles
-	echo 'pms-tests' > /usr/local/portage/pms-tests/profiles/repo_name
+	echo 'pms-test-suite' > /usr/local/portage/pms-tests/profiles/repo_name
 	echo 'PORTDIR_OVERLAY="${PORTDIR_OVERLAY}
 		/usr/local/portage/pms-tests' >> /etc/make.conf
 
 The newly-created repository can be then referenced by name:
 
-	pms-tester -r pms-tests -p yourpm
+	pms-tester -r pms-test-suite -p yourpm
 
-`pms-tests` is the default name, and pms-tester will use it when no `-r`
+`pms-test-suite` is the default name, and pms-tester will use it when no `-r`
 nor `-R` is specified. Thus, the above could be simplified to:
 
 	pms-tester -p yourpm



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

* [gentoo-commits] proj/pms-test-suite:master commit in: /
@ 2011-08-08 22:15 Michał Górny
  0 siblings, 0 replies; 33+ messages in thread
From: Michał Górny @ 2011-08-08 22:15 UTC (permalink / raw
  To: gentoo-commits

commit:     b96ba0b0a36e492ee649e0e8d3dbcafaa96deedd
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  8 22:13:01 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Aug  8 22:13:01 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=b96ba0b0

Add a note on D-Bus and HTML output.

---
 README |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/README b/README
index 606cf24..ed474f7 100644
--- a/README
+++ b/README
@@ -17,6 +17,18 @@ to determine whether the PM does comply to the PMS [1].
 [1]:http://www.gentoo.org/proj/en/qa/pms.xml
 
 
+D-Bus setup
+-----------
+
+Right now, the standard test library requires the system-wide D-Bus daemon to
+be set up and running. The `setup.py` install script installs the necessary
+configuration file along with the Python modules but one needs to start or
+restart the daemon as required before running the test suite.
+
+A future version will most probably drop D-Bus dependency and replace it with
+a less painful IPC.
+
+
 How to run it
 -------------
 
@@ -49,4 +61,20 @@ nor `-R` is specified. Thus, the above could be simplified to:
 
 	pms-tester -p yourpm
 
+
+Getting nice HTML results
+-------------------------
+
+By default, pms-tester simply runs all tests and returns information about test
+failures. If you'd like to get a nice HTML output instead (like the one
+published by me [1]), please use:
+
+	pms-tester -p yourpm -o html -O myoutput.html
+
+You can run the test suite using multiple PMs as well:
+
+	pms-tester -p pkgcore -p portage -p paludis -o html -O myoutput.html
+
+[1]:http://dev.gentoo.org/~mgorny/pms-test-suite-output.html
+
 <!-- vim:se syn=markdown :-->



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

* [gentoo-commits] proj/pms-test-suite:master commit in: /
@ 2011-08-13  8:54 Michał Górny
  0 siblings, 0 replies; 33+ messages in thread
From: Michał Górny @ 2011-08-13  8:54 UTC (permalink / raw
  To: gentoo-commits

commit:     e585546c1da94a59f7cb64693920ce0709250d8c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 13 07:47:28 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Aug 13 07:47:28 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=e585546c

Bump development status.

---
 setup.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/setup.py b/setup.py
index 5b996ba..ad08d83 100755
--- a/setup.py
+++ b/setup.py
@@ -78,7 +78,7 @@ setup(
 		],
 
 		classifiers = [
-			'Development Status :: 3 - Alpha',
+			'Development Status :: 4 - Beta',
 			'Environment :: Console',
 			'Intended Audience :: System Administrators',
 			'License :: OSI Approved :: BSD License',



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

* [gentoo-commits] proj/pms-test-suite:master commit in: /
@ 2011-08-14 15:04 Michał Górny
  0 siblings, 0 replies; 33+ messages in thread
From: Michał Górny @ 2011-08-14 15:04 UTC (permalink / raw
  To: gentoo-commits

commit:     c436c7d851512075106b902d9a59db0b1981031b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 14 15:02:57 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Aug 14 15:05:47 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=c436c7d8

Fix markdown syntax in README.

---
 README |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/README b/README
index ed474f7..94f28a3 100644
--- a/README
+++ b/README
@@ -3,7 +3,7 @@ PMS Test Suite
 
 A GSoC 2011 project by Michał Górny.
 
-http://www.gentoo.org/proj/en/qa/pms/pms-test-suite.xml
+[Homepage]( http://www.gentoo.org/proj/en/qa/pms/pms-test-suite.xml )
 
 
 Few words of introduction
@@ -12,7 +12,7 @@ Few words of introduction
 The PMS Test Suite projects aims to create a comprehensive, universal test suite
 for Gentoo Package Managers. It is supposed to create a set of test ebuilds, run
 them using a particular Package Manager (like portage) and check their results
-to determine whether the PM does comply to the PMS [1].
+to determine whether the PM does comply to the [PMS][1].
 
 [1]:http://www.gentoo.org/proj/en/qa/pms.xml
 
@@ -66,8 +66,8 @@ Getting nice HTML results
 -------------------------
 
 By default, pms-tester simply runs all tests and returns information about test
-failures. If you'd like to get a nice HTML output instead (like the one
-published by me [1]), please use:
+failures. If you'd like to get a nice HTML output instead (like [the one
+published by me][1]), please use:
 
 	pms-tester -p yourpm -o html -O myoutput.html
 



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

* [gentoo-commits] proj/pms-test-suite:master commit in: /
@ 2011-08-20  6:23 Michał Górny
  0 siblings, 0 replies; 33+ messages in thread
From: Michał Górny @ 2011-08-20  6:23 UTC (permalink / raw
  To: gentoo-commits

commit:     ed17dd342132d5237785c6ef9615d8588494c9ca
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 20 06:25:22 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Aug 20 06:25:22 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=ed17dd34

Rewrite the README a little.

---
 README |   66 +++++++++++++++++++++++++++++++++++++--------------------------
 1 files changed, 39 insertions(+), 27 deletions(-)

diff --git a/README b/README
index 94f28a3..96d1933 100644
--- a/README
+++ b/README
@@ -29,52 +29,64 @@ A future version will most probably drop D-Bus dependency and replace it with
 a less painful IPC.
 
 
-How to run it
--------------
+Running tests using Portage
+---------------------------
 
-First, you need to have an overlay for the tests. If you intend to use portage,
-`pms-tester` can create an temporary repository and use it automatically. To do
-so, run:
+The Portage backend is the only backend supporting running tests using a random,
+unconfigured directory. Thus, running the test suite is as simple as:
 
-	pms-tester -R /tmp/your-repo-location
+	pms-tester -R /tmp/temporary-repo-location
 
-If you intend to test another PM, you need to either create the repository
-yourself or use the above command to let `pms-tester` create it for you. Notice
-you'll need to have portage installed for that. Afterwards, you need to add
-the repository to your PM configuration.
+This will cover all the necessary steps of setting up the repository, creating
+ebuilds, setting `PORTDIR_OVERLAY` and running the test suite. Please note that
+it doesn't remove the repository afterwards -- it is intended to be reusable.
 
-For example, setting up a test repository for portage configs can be achieved
-through:
+
+Running tests using other PMs
+-----------------------------
+
+If the intent is to use another PM than Portage, one must first create
+an (empty) repository for test suite and add it to PMs repository list.
+
+The simplest way of doing that involves using the Portage backend once again:
+
+	pms-tester -R /var/cache/pms-tests --create-repo-only
+
+One may also create and name the repository manually:
 
 	umask 022
-	mkdir -p /usr/local/portage/pms-tests/profiles
-	echo 'pms-test-suite' > /usr/local/portage/pms-tests/profiles/repo_name
+	mkdir -p /var/cache/pms-tests/profiles
+	echo 'pms-test-suite' > /var/cache/pms-tests/profiles/repo_name
+
+In both cases, it is necessary to add the repository to PMs config; for Portage
+that would be:
+
 	echo 'PORTDIR_OVERLAY="${PORTDIR_OVERLAY}
-		/usr/local/portage/pms-tests' >> /etc/make.conf
+		/var/cache/pms-tests' >> /etc/make.conf
 
-The newly-created repository can be then referenced by name:
+The newly-created repository will be then referenced by its name:
 
-	pms-tester -r pms-test-suite -p yourpm
+	pms-tester -p pkgcore
 
-`pms-test-suite` is the default name, and pms-tester will use it when no `-r`
-nor `-R` is specified. Thus, the above could be simplified to:
+If a different name was used, that would be:
 
-	pms-tester -p yourpm
+	pms-tester -r repository-name -p pkgcore
 
 
 Getting nice HTML results
 -------------------------
 
-By default, pms-tester simply runs all tests and returns information about test
-failures. If you'd like to get a nice HTML output instead (like [the one
-published by me][1]), please use:
+By default, pms-tester simply runs all tests and prints status information
+and details on test failures. If you'd like to get a nice HTML output instead
+(like [the one published by me][1]), please use:
 
-	pms-tester -p yourpm -o html -O myoutput.html
+	pms-tester -o html -O myoutput.html
 
-You can run the test suite using multiple PMs as well:
+This will, however, create output for a single PM only. In order to use multiple
+ones, just specify all of them:
 
-	pms-tester -p pkgcore -p portage -p paludis -o html -O myoutput.html
+	pms-tester -p paludis -p pkgcore -p portage -o html -O myoutput.html
 
-[1]:http://dev.gentoo.org/~mgorny/pms-test-suite-output.html
+[1]:http://www.gentoo.org/proj/en/qa/pms/pms-test-suite-output.html
 
 <!-- vim:se syn=markdown :-->



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

* [gentoo-commits] proj/pms-test-suite:master commit in: /
@ 2012-01-02 22:03 Michał Górny
  0 siblings, 0 replies; 33+ messages in thread
From: Michał Górny @ 2012-01-02 22:03 UTC (permalink / raw
  To: gentoo-commits

commit:     d90e319bcbec2a7fee924bb3888a272956e6949b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 23 21:24:49 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 23 21:24:49 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=d90e319b

Fill in the actual name in COPYING.

---
 COPYING |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/COPYING b/COPYING
index a995d54..1632652 100644
--- a/COPYING
+++ b/COPYING
@@ -1,4 +1,4 @@
-Copyright (c) <YEAR>, <OWNER>
+Copyright (c) 2011, Michał Górny
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without



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

* [gentoo-commits] proj/pms-test-suite:master commit in: /
@ 2012-01-04 16:49 Michał Górny
  0 siblings, 0 replies; 33+ messages in thread
From: Michał Górny @ 2012-01-04 16:49 UTC (permalink / raw
  To: gentoo-commits

commit:     86f75f2dd4eafccbfd542ec858cf3c95ecb705fe
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan  4 16:50:19 2012 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jan  4 16:50:19 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=86f75f2d

Drop outdated D-Bus info from README.

---
 README |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/README b/README
index 96d1933..e92e3da 100644
--- a/README
+++ b/README
@@ -17,18 +17,6 @@ to determine whether the PM does comply to the [PMS][1].
 [1]:http://www.gentoo.org/proj/en/qa/pms.xml
 
 
-D-Bus setup
------------
-
-Right now, the standard test library requires the system-wide D-Bus daemon to
-be set up and running. The `setup.py` install script installs the necessary
-configuration file along with the Python modules but one needs to start or
-restart the daemon as required before running the test suite.
-
-A future version will most probably drop D-Bus dependency and replace it with
-a less painful IPC.
-
-
 Running tests using Portage
 ---------------------------
 



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

end of thread, other threads:[~2012-01-04 16:49 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-10 10:12 [gentoo-commits] proj/pms-test-suite:master commit in: / Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2012-01-04 16:49 Michał Górny
2012-01-02 22:03 Michał Górny
2011-08-20  6:23 Michał Górny
2011-08-14 15:04 Michał Górny
2011-08-13  8:54 Michał Górny
2011-08-08 22:15 Michał Górny
2011-07-31 14:57 Michał Górny
2011-07-31 14:43 Michał Górny
2011-06-29 12:58 Michał Górny
2011-06-28  7:13 Michał Górny
2011-06-28  7:13 Michał Górny
2011-06-25  8:39 Michał Górny
2011-06-25  8:39 Michał Górny
2011-06-23 21:14 Michał Górny
2011-06-23 16:28 Michał Górny
2011-06-22 11:50 Michał Górny
2011-06-22  8:18 Michał Górny
2011-06-22  8:18 Michał Górny
2011-06-19 10:54 Michał Górny
2011-06-08 12:44 Michał Górny
2011-06-05 18:37 Michał Górny
2011-05-31 19:18 Michał Górny
2011-05-31 19:18 Michał Górny
2011-05-31 18:10 Michał Górny
2011-05-31 18:10 Michał Górny
2011-05-29 17:55 Michał Górny
2011-05-27  6:21 Michał Górny
2011-05-26  7:25 Michał Górny
2011-05-25 20:40 Michał Górny
2011-05-25 18:18 Michał Górny
2011-05-24 14:28 Michał Górny
2011-05-16 20:00 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