[libtext-bidi-perl] 01/02: debian/rules: don't run t/ucd.t on slow architectures

gregor herrmann gregoa at debian.org
Mon Jan 6 22:46:55 UTC 2014


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libtext-bidi-perl.

commit af744173eca3c2a8ee720a147849f06581ddbe7e
Author: gregor herrmann <gregoa at debian.org>
Date:   Mon Jan 6 23:45:11 2014 +0100

    debian/rules: don't run t/ucd.t on slow architectures
    
    where it took over two hours for the last upload and partially caused a
    timeout.
---
 debian/rules | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/debian/rules b/debian/rules
index 09be065..141e82c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,15 @@
 PACKAGE = $(shell dh_listpackages)
 TMP     = $(CURDIR)/debian/$(PACKAGE)
 
+# don't run resource intensive test t/ucd.t on slow arches
+DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
+SLOW_ARCH = armel armhf mips mipsel sparc
+ifeq (,$(filter $(DEB_HOST_ARCH), $(SLOW_ARCH)))
+TEST_FILES = $(wildcard t/*.t)
+else
+TEST_FILES = $(filter-out t/ucd.t,$(wildcard t/*.t))
+endif
+
 %:
 	dh $@
 
@@ -17,3 +26,6 @@ override_dh_auto_install:
 	# Remove fribidi.pl script, installed as an example instead:
 	rm -rf $(TMP)/usr/bin
 	rm -rf $(TMP)/usr/share/man/man1
+
+override_dh_auto_test:
+	dh_auto_test -- TEST_FILES="$(TEST_FILES)"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libtext-bidi-perl.git



More information about the Pkg-perl-cvs-commits mailing list