[arrayfire] 02/04: d/rules: disable build of testsuite if no check requested.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Nov 19 09:49:32 UTC 2015


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

ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.

commit 1d3c0b1f4439968b54f525141db08f2dd2a40125
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Nov 18 09:38:59 2015 +0000

    d/rules: disable build of testsuite if no check requested.
---
 debian/rules | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index e76fa67..a05ff4b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -19,13 +19,18 @@ CMAKE_BUILD_OPTIONS = \
 	-DBUILD_CUDA=OFF \
 	-DBUILD_EXAMPLES=OFF \
 	-DBUILD_GRAPHICS=OFF \
-	-DBUILD_GTEST=ON \
 	-DBUILD_NONFREE=OFF \
 	-DBUILD_OPENCL=OFF \
-	-DBUILD_TEST=ON \
 	-DBUILD_UNIFIED=OFF \
 	-DWITH_COVERAGE=OFF
 
+# Disable build of testsuite if no check requested.
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+CMAKE_BUILD_OPTIONS += -DBUILD_GTEST=ON -DBUILD_TEST=ON
+else
+CMAKE_BUILD_OPTIONS += -DBUILD_GTEST=OFF -DBUILD_TEST=OFF
+endif
+
 # Prevent execution of slow tests.
 CTEST_EXCLUDE_REGEX = large|dense
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git



More information about the debian-science-commits mailing list