| 1 | # Copyright 1999-2006 Gentoo Foundation |
1 | # Copyright 1999-2006 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.19 2010/03/27 09:10:46 kolmodin Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.20 2010/03/30 22:18:37 kolmodin Exp $ |
| 4 | # |
4 | # |
| 5 | # Original authors: Andres Loeh <kosmikus@gentoo.org> |
5 | # Original authors: Andres Loeh <kosmikus@gentoo.org> |
| 6 | # Duncan Coutts <dcoutts@gentoo.org> |
6 | # Duncan Coutts <dcoutts@gentoo.org> |
| 7 | # Maintained by: Haskell herd <haskell@gentoo.org> |
7 | # Maintained by: Haskell herd <haskell@gentoo.org> |
| 8 | # |
8 | # |
| … | |
… | |
| 363 | } |
363 | } |
| 364 | |
364 | |
| 365 | haskell-cabal_src_test() { |
365 | haskell-cabal_src_test() { |
| 366 | pushd "${S}" > /dev/null |
366 | pushd "${S}" > /dev/null |
| 367 | |
367 | |
|
|
368 | if cabal-is-dummy-lib; then |
|
|
369 | einfo ">>> No tests for dummy library: ${CATEGORY}/${PF}" |
|
|
370 | else |
| 368 | einfo ">>> Test phase [cabal test]: ${CATEGORY}/${PF}" |
371 | einfo ">>> Test phase [cabal test]: ${CATEGORY}/${PF}" |
| 369 | ./setup test || die "cabal test failed" |
372 | ./setup test || die "cabal test failed" |
|
|
373 | fi |
| 370 | |
374 | |
| 371 | popd > /dev/null |
375 | popd > /dev/null |
| 372 | } |
376 | } |
| 373 | |
377 | |
| 374 | # exported function: cabal-style copy and register |
378 | # exported function: cabal-style copy and register |