[mpfi] 16/39: Enable tests in debian/rules.

Jerome Benoit calculus-guest at moszumanska.debian.org
Sat May 23 02:12:11 UTC 2015


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

calculus-guest pushed a commit to branch master
in repository mpfi.

commit a02fca8229675066362805d0851420837e201ea0
Author: Laurent Fousse <laurent at komite.net>
Date:   Tue Jul 27 21:49:48 2010 +0200

    Enable tests in debian/rules.
---
 debian/rules | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 4b2f504..b7c3d07 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,6 +14,11 @@ export DH_OPTIONS
 export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
+with_check := yes
+ifneq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+        with_check := disabled through DEB_BUILD_OPTIONS
+endif
+
 ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
   confflags += --build $(DEB_HOST_GNU_TYPE)
 else
@@ -37,7 +42,11 @@ build-stamp:
 	./configure $(confflags) --prefix=/usr \
 		--enable-shared
 	$(MAKE)
-
+ifeq ($(with_check),yes)
+  ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+	MPFI_CHECK_RANDOMIZE=1 $(MAKE) check
+  endif
+endif
 	touch build-stamp
 
 clean:

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



More information about the debian-science-commits mailing list