[med-svn] [libhmsbeagle] 02/02: Follow hint of Ghislain and use pocl-opencl-icd as well as conditional testing
Andreas Tille
tille at debian.org
Wed Oct 21 14:24:29 UTC 2015
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository libhmsbeagle.
commit 8e94dad2a2ce149e0cbb3ee27dbc8007ec16771c
Author: Andreas Tille <tille at debian.org>
Date: Wed Oct 21 16:23:59 2015 +0200
Follow hint of Ghislain and use pocl-opencl-icd as well as conditional testing
---
debian/control | 6 +++---
debian/rules | 12 ++++++++++++
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/debian/control b/debian/control
index 8ead827..c05aed6 100644
--- a/debian/control
+++ b/debian/control
@@ -15,9 +15,9 @@ Build-Depends: debhelper (>= 9),
dh-linktree,
libjs-jquery,
libpoclu-dev,
- ocl-icd-opencl-dev,
- beignet-dev,
- mesa-opencl-icd
+ ocl-icd-opencl-dev | opencl-dev,
+ pocl-opencl-icd | opencl-icd,
+ clinfo
Standards-Version: 3.9.6
Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/libhmsbeagle.git
Vcs-Git: git://anonscm.debian.org/debian-med/libhmsbeagle.git
diff --git a/debian/rules b/debian/rules
index bc1f840..2f7769b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -42,5 +42,17 @@ override_dh_installdocs:
find debian/$(pkg)-dev -name jquery.js -delete
find debian/$(pkg)-dev -name "*.md5" -delete
+# run tests only on platforms supporting opencl
+# see https://lists.debian.org/debian-mentors/2015/08/msg00081.html
+num_opencl_platforms := $(shell clinfo | head -n1 | sed -e "s/.*[^0-9]\([0-9]\+\)[^0-9]*$$/\1/")
+
+ifeq ($(num_opencl_platforms), 0)
+override_dh_auto_test:
+ @echo "No OpenCL platform available, skipping test"
+else
+override_dh_auto_test:
+ dh_auto_test
+endif
+
get-orig-source:
. debian/get-orig-source
--
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