[Pkg-golang-commits] [golang] 01/01: Skip tests on architectures where the tests fail

Tianon Gravi tianon at debian.org
Sat Oct 24 17:19:59 UTC 2015


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

tianon pushed a commit to branch debian-sid
in repository golang.

commit f342ff13ea38b8fa4c4d357293d92e3054053f3b
Author: Tianon Gravi <tianon at debian.org>
Date:   Sat Oct 24 10:19:51 2015 -0700

    Skip tests on architectures where the tests fail
---
 debian/changelog |  1 +
 debian/rules     | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index d514239..223b0ee 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ golang (2:1.5.1-1) UNRELEASED; urgency=medium
   * Upload to unstable.
   * Update to 1.5.1 upstream release (see notes from experimental uploads for
     what's changed).
+  * Skip tests on architectures where the tests fail.
 
  -- Tianon Gravi <tianon at debian.org>  Sat, 24 Oct 2015 09:26:20 -0700
 
diff --git a/debian/rules b/debian/rules
index fb8f131..268db73 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,12 @@
 export GOROOT := $(CURDIR)
 export GOROOT_FINAL := /usr/lib/go
 
+DEB_HOST_ARCH_CPU := $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU 2>/dev/null)
+RUN_TESTS := true
+ifeq (ppc64, $(DEB_HOST_ARCH_CPU))
+	RUN_TESTS := false
+endif
+
 %:
 	+dh --parallel $(opt_no_act) $@
 
@@ -19,11 +25,15 @@ override_dh_auto_clean:
 	rm -rf bin pkg
 
 override_dh_auto_test-arch:
+ifeq (true, $(RUN_TESTS))
 	set -ex; \
 		cd src; \
 		export PATH="$(GOROOT)/bin:$$PATH"; \
 		eval "$$(go tool dist env)"; \
 		bash run.bash --no-rebuild;
+else
+	# skip the tests on platforms where they fail
+endif
 
 override_dh_compress-indep:
 	dh_compress -Xusr/share/doc/golang-doc/html -Xusr/share/doc/golang-doc/godoc

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-golang/golang.git



More information about the pkg-golang-commits mailing list