[med-svn] [libhmsbeagle] 01/02: Skip tests on other architectures than amd64.

Andreas Tille tille at debian.org
Sun Oct 16 17:56:35 UTC 2016


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

tille pushed a commit to branch master
in repository libhmsbeagle.

commit 506b31a873df30966a047fe8fa082ca3ec7d6ffa
Author: Andreas Tille <tille at debian.org>
Date:   Sun Oct 16 15:08:29 2016 +0200

    Skip tests on other architectures than amd64.
---
 debian/changelog | 6 ++++++
 debian/control   | 2 +-
 debian/rules     | 5 +++++
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 7db6f12..1293b61 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+libhmsbeagle (2.1.2+20160831-2) UNRELEASED; urgency=medium
+
+  * Skip tests on other architectures than amd64.
+
+ -- Andreas Tille <tille at debian.org>  Sun, 16 Oct 2016 14:58:42 +0200
+
 libhmsbeagle (2.1.2+20160831-1) unstable; urgency=medium
 
   * New upstream commit
diff --git a/debian/control b/debian/control
index 9809398..2bc865f 100644
--- a/debian/control
+++ b/debian/control
@@ -16,7 +16,7 @@ Build-Depends: debhelper (>= 9),
                libjs-jquery,
                libpoclu-dev,
                ocl-icd-opencl-dev | opencl-dev,
-               pocl-opencl-icd | opencl-icd,
+               pocl-opencl-icd [amd64] | opencl-icd [amd64],
                clinfo
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/libhmsbeagle.git
diff --git a/debian/rules b/debian/rules
index 4f4c80a..c2028c7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,6 +11,7 @@ pkg := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
 lib := $(pkg)1v5
 use_sse := $(shell if [ `dpkg-architecture -qDEB_BUILD_ARCH` = amd64 ] ; then echo yes ; else echo no ; fi)
 BUILDGNUTYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+BUILDARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)
 
 %:
 	dh $@ --with autoreconf --with javahelper
@@ -49,10 +50,14 @@ override_dh_auto_test:
 	@echo "No OpenCL platform available, skipping test"	
 else
 override_dh_auto_test:
+ifeq ($(BUILDARCH),amd64)
 	# VERBOSE=1 dh_auto_test
 	# pbuilder has set HOME=/nonexistent.  Since some valid HOME is needed
 	# to pass the test this is set to /tmp
 	HOME=/tmp make check VERBOSE=1
+else
+	echo "Pocl works only on amd64 properly - skip the tests on $(BUILDARCH)."
+endif
 endif
 
 override_dh_link:

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



More information about the debian-med-commit mailing list