[Python-modules-commits] r16787 - in packages/preprocess/trunk/debian (rules)
johannr-guest at users.alioth.debian.org
johannr-guest at users.alioth.debian.org
Tue Apr 26 16:51:17 UTC 2011
Date: Tuesday, April 26, 2011 @ 16:51:14
Author: johannr-guest
Revision: 16787
Add target to run tests with all supported Python versions. Also minor updates in get-orig-source target.
Modified:
packages/preprocess/trunk/debian/rules
Modified: packages/preprocess/trunk/debian/rules
===================================================================
--- packages/preprocess/trunk/debian/rules 2011-04-26 16:18:50 UTC (rev 16786)
+++ packages/preprocess/trunk/debian/rules 2011-04-26 16:51:14 UTC (rev 16787)
@@ -7,14 +7,30 @@
DEB_INSTALL_CHANGELOGS_ALL = README.txt
DEB_INSTALL_MANPAGES_python-preprocess := debian/preprocess.1
+PY_VERSIONS = $(shell pyversions --requested debian/control)
+
+test-stamp-%:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ echo "-- Running tests ($*). Even if one of them fails the build is not canceled."
+ -cat /proc/meminfo
+ -cat /proc/cpuinfo
+ cd test; /usr/bin/$* test.py || true
+endif
+
+binary-post-install/python-preprocess:: $(addprefix test-stamp-, $(PY_VERSIONS))
+
+clean::
+ -rm -rf $(addprefix test-stamp-, $(PY_VERSIONS))
+
get-orig-source:
rm -rf $@
mkdir $@
- uscan --force-download --verbose --destdir $@ \
+ uscan --no-conf --force-download --verbose --destdir $@ \
--download-version $(DEB_UPSTREAM_VERSION) \
--upstream-version $(DEB_UPSTREAM_VERSION)
unzip -o $@/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).zip -d $@
rm -f $@/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION)/bin/preprocess.exe
- cd $@ && tar -cf - $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION) | \
- gzip -9f - > ../$(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz
+ cd $@ && GZIP=--best tar -cz --owner root --group root --mode a+rX -f \
+ ../$(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz \
+ $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION)
rm -r $@
More information about the Python-modules-commits
mailing list