From: Lennart Kolmodin Date: Tue, 30 Mar 2010 22:18:37 +0000 (+0000) Subject: When using dummy haskell libraries, there is no test suite. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0df2075a21d13be1765fa8630ef9ae4c82292114;p=gentoo.git When using dummy haskell libraries, there is no test suite. --- 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 # Duncan Coutts @@ -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 }