When using dummy haskell libraries, there is no test suite.
authorLennart Kolmodin <kolmodin@gentoo.org>
Tue, 30 Mar 2010 22:18:37 +0000 (22:18 +0000)
committerLennart Kolmodin <kolmodin@gentoo.org>
Tue, 30 Mar 2010 22:18:37 +0000 (22:18 +0000)
eclass/haskell-cabal.eclass

index 3a1950241931955b630d79f2215541b3abdbdf0d..6328c1a514421f89d4ef7a9bcab9f82030a0b201 100644 (file)
@@ -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
 }