[DHG_packages] 01/01: werewolf: only run tests on platforms with SMP support

Clint Adams clint at moszumanska.debian.org
Sun Apr 17 19:49:46 UTC 2016


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

clint pushed a commit to branch master
in repository DHG_packages.

commit ee595c027a85fdfbb7538005a295a388ea21a966
Author: Clint Adams <clint at debian.org>
Date:   Sun Apr 17 15:46:45 2016 -0400

    werewolf: only run tests on platforms with SMP support
---
 p/haskell-werewolf/debian/changelog | 7 +++++++
 p/haskell-werewolf/debian/rules     | 9 +++++++--
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/p/haskell-werewolf/debian/changelog b/p/haskell-werewolf/debian/changelog
index e94cbfb..12a9d58 100644
--- a/p/haskell-werewolf/debian/changelog
+++ b/p/haskell-werewolf/debian/changelog
@@ -1,3 +1,10 @@
+haskell-werewolf (0.5.1.0-2) unstable; urgency=medium
+
+  * Only run tests on platforms with SMP support.  This is not
+    a good solution.  closes: #819995.
+
+ -- Clint Adams <clint at debian.org>  Sun, 17 Apr 2016 15:46:03 -0400
+
 haskell-werewolf (0.5.1.0-1) unstable; urgency=low
 
   * Initial release.
diff --git a/p/haskell-werewolf/debian/rules b/p/haskell-werewolf/debian/rules
index 56aeeb0..2ca3f16 100755
--- a/p/haskell-werewolf/debian/rules
+++ b/p/haskell-werewolf/debian/rules
@@ -1,10 +1,15 @@
 #!/usr/bin/make -f
 
-DEB_ENABLE_TESTS = yes
 DEB_CABAL_PACKAGE = werewolf
 DEB_DEFAULT_COMPILER = ghc
 
+ifeq (yes,$(shell test -e /usr/bin/ghci && echo yes))
+ifeq (yes,$(shell ghc --info | grep -q 'Support SMP.*YES' && echo yes))
+DEB_ENABLE_TESTS := yes
+endif
+endif
+
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/hlibrary.mk
 
-build/haskell-werewolf-utils:: build-ghc-stamp
+build/werewolf:: build-ghc-stamp

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



More information about the Pkg-haskell-commits mailing list