[Python-modules-commits] r12450 - in packages/python-docutils/trunk/debian (5 files)
jwilk at users.alioth.debian.org
jwilk at users.alioth.debian.org
Wed Mar 31 09:26:03 UTC 2010
Date: Wednesday, March 31, 2010 @ 09:25:59
Author: jwilk
Revision: 12450
* Run tests at build time:
+ Modify debian/rules accordingly.
+ Build-depend on python-all.
+ Apply patch from upstream (alltests-exitcode.diff) to make test suite
runner exit with code 0 if all test passes.
Added:
packages/python-docutils/trunk/debian/patches/alltest-exitcode.diff
Modified:
packages/python-docutils/trunk/debian/changelog
packages/python-docutils/trunk/debian/control
packages/python-docutils/trunk/debian/patches/series
packages/python-docutils/trunk/debian/rules
Modified: packages/python-docutils/trunk/debian/changelog
===================================================================
--- packages/python-docutils/trunk/debian/changelog 2010-03-31 00:19:01 UTC (rev 12449)
+++ packages/python-docutils/trunk/debian/changelog 2010-03-31 09:25:59 UTC (rev 12450)
@@ -3,8 +3,13 @@
* Bump standards version to 3.8.4 (no changes needed).
* Update my e-mail address.
* Drop build-dependency on xsltproc; it's no longer used.
+ * Run tests at build time:
+ + Modify debian/rules accordingly.
+ + Build-depend on python-all.
+ + Apply patch from upstream (alltests-exitcode.diff) to make test suite
+ runner exit with code 0 if all test passes.
- -- Jakub Wilk <jwilk at debian.org> Sun, 31 Jan 2010 00:36:44 +0100
+ -- Jakub Wilk <jwilk at debian.org> Wed, 31 Mar 2010 11:16:44 +0200
python-docutils (0.6-3) unstable; urgency=low
Modified: packages/python-docutils/trunk/debian/control
===================================================================
--- packages/python-docutils/trunk/debian/control 2010-03-31 00:19:01 UTC (rev 12449)
+++ packages/python-docutils/trunk/debian/control 2010-03-31 09:25:59 UTC (rev 12450)
@@ -7,7 +7,7 @@
Simon McVittie <smcv at debian.org>,
Michael Schutte <michi at uiae.at>,
Ben Finney <ben+debian at benfinney.id.au>
-Build-Depends: debhelper (>= 5.0.37.1), python-setuptools (>= 0.6b3), python (>= 2.3)
+Build-Depends: debhelper (>= 5.0.37.1), python-setuptools (>= 0.6b3), python-all (>= 2.3)
Build-Depends-Indep: python-support (>= 0.6.4),
docbook-to-man
Standards-Version: 3.8.4
Added: packages/python-docutils/trunk/debian/patches/alltest-exitcode.diff
===================================================================
--- packages/python-docutils/trunk/debian/patches/alltest-exitcode.diff (rev 0)
+++ packages/python-docutils/trunk/debian/patches/alltest-exitcode.diff 2010-03-31 09:25:59 UTC (rev 12450)
@@ -0,0 +1,16 @@
+Description: Make test suite runner exit with code 0 if all test passes.
+Origin: upstream, http://svn.berlios.de/viewcvs/docutils/trunk/docutils/test/alltests.py?r1=6116&r2=6296
+Last-Update: 2010-03-31
+
+--- a/test/alltests.py
++++ b/test/alltests.py
+@@ -83,4 +83,8 @@
+ # print >>sys.stderr, pformat(suite) # check the test suite
+ finish = time.time()
+ print 'Elapsed time: %.3f seconds' % (finish - start)
+- sys.exit(result)
++ if result.errors or result.failures:
++ # return test result object to enable processing in programmatic use
++ sys.exit(result)
++ else: # no problems, exit with zero
++ sys.exit()
Modified: packages/python-docutils/trunk/debian/patches/series
===================================================================
--- packages/python-docutils/trunk/debian/patches/series 2010-03-31 00:19:01 UTC (rev 12449)
+++ packages/python-docutils/trunk/debian/patches/series 2010-03-31 09:25:59 UTC (rev 12450)
@@ -8,3 +8,4 @@
16_disable_picins.diff
17_revert_buildhtml.diff
decode-path-none.diff
+alltest-exitcode.diff
Modified: packages/python-docutils/trunk/debian/rules
===================================================================
--- packages/python-docutils/trunk/debian/rules 2010-03-31 00:19:01 UTC (rev 12449)
+++ packages/python-docutils/trunk/debian/rules 2010-03-31 09:25:59 UTC (rev 12450)
@@ -27,6 +27,11 @@
PYTHONPATH=.:extras $(PYTHON) tools/buildhtml.py \
--config=tools/docutils.conf $$dir --traceback; \
done
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
+ set -e && for python in $(shell pyversions -r); do \
+ PYTHONPATH=.:extras $$python test/alltests.py; \
+ done
+endif
touch build-stamp
clean:
More information about the Python-modules-commits
mailing list