summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorLennart Kolmodin <kolmodin@gentoo.org>2010-03-30 22:18:37 +0000
committerLennart Kolmodin <kolmodin@gentoo.org>2010-03-30 22:18:37 +0000
commit0df2075a21d13be1765fa8630ef9ae4c82292114 (patch)
tree703db8e85b3fa243f0f5daa546f8eaab776f492d /eclass
parentUnmask KDE 4.4.2. (diff)
downloadhistorical-0df2075a21d13be1765fa8630ef9ae4c82292114.tar.gz
historical-0df2075a21d13be1765fa8630ef9ae4c82292114.tar.bz2
historical-0df2075a21d13be1765fa8630ef9ae4c82292114.zip
When using dummy haskell libraries, there is no test suite.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/haskell-cabal.eclass10
1 files changed, 7 insertions, 3 deletions
diff --git a/eclass/haskell-cabal.eclass b/eclass/haskell-cabal.eclass
index 3a1950241931..6328c1a51442 100644
--- a/eclass/haskell-cabal.eclass
+++ b/eclass/haskell-cabal.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.19 2010/03/27 09:10:46 kolmodin Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.20 2010/03/30 22:18:37 kolmodin Exp $
#
# Original authors: Andres Loeh <kosmikus@gentoo.org>
# Duncan Coutts <dcoutts@gentoo.org>
@@ -365,8 +365,12 @@ haskell-cabal_src_compile() {
haskell-cabal_src_test() {
pushd "${S}" > /dev/null
- einfo ">>> Test phase [cabal test]: ${CATEGORY}/${PF}"
- ./setup test || die "cabal test failed"
+ if cabal-is-dummy-lib; then
+ einfo ">>> No tests for dummy library: ${CATEGORY}/${PF}"
+ else
+ einfo ">>> Test phase [cabal test]: ${CATEGORY}/${PF}"
+ ./setup test || die "cabal test failed"
+ fi
popd > /dev/null
}