tag 642817 patch pending thanks Mehdi Dogguy <me...@dogguy.org> (28/09/2011): > You can try to make tests check optional (iow, detect if you're > compiling on a buildd machine).
Until a better solution is found, here's the patch for my NMU, uploaded to DELAYED/5. It disables tests, unless DEB_BUILD_OPTIONS contains check-through-internet, making it explicit an internet connection is needed to perform tests. Mraw, KiBi.
diff -Nru pyxnat-0.9.0~dev0/debian/changelog pyxnat-0.9.0~dev0/debian/changelog --- pyxnat-0.9.0~dev0/debian/changelog 2011-09-09 14:57:13.000000000 +0000 +++ pyxnat-0.9.0~dev0/debian/changelog 2012-02-18 00:06:42.000000000 +0000 @@ -1,3 +1,14 @@ +pyxnat (0.9.0~dev0-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Since running tests currently means an internet connection is needed, + only run them when DEB_BUILD_OPTIONS contains “check-through-internet” + (unquoted), so that buildds can happily build packages without + performing any tests, and so that developers can still run the tests + if they so desire (Closes: #642817). + + -- Cyril Brulebois <k...@debian.org> Sat, 18 Feb 2012 00:00:39 +0000 + pyxnat (0.9.0~dev0-1) unstable; urgency=low * Initial release (Closes: #609820). diff -Nru pyxnat-0.9.0~dev0/debian/rules pyxnat-0.9.0~dev0/debian/rules --- pyxnat-0.9.0~dev0/debian/rules 2011-09-09 14:57:13.000000000 +0000 +++ pyxnat-0.9.0~dev0/debian/rules 2012-02-17 23:53:59.000000000 +0000 @@ -19,7 +19,7 @@ # All tests later on # cd build to prevent use of local/not-built source tree -ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) +ifneq (,$(filter check-through-internet,$(DEB_BUILD_OPTIONS))) cd build; \ for PYTHON in $(shell pyversions -r); do \ echo "I: Running pyxnat unittests using $$PYTHON"; \
signature.asc
Description: Digital signature