diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-09-10 21:37:58 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-09-10 21:37:58 +0000 |
commit | b943f8fc2e95f1695958dd99e2922d546cd5fb43 (patch) | |
tree | c7610c62f71daa8aa29f04f1d8006f225357e518 /dev-python/atpy | |
parent | whitespace (diff) | |
download | gentoo-2-b943f8fc2e95f1695958dd99e2922d546cd5fb43.tar.gz gentoo-2-b943f8fc2e95f1695958dd99e2922d546cd5fb43.tar.bz2 gentoo-2-b943f8fc2e95f1695958dd99e2922d546cd5fb43.zip |
Enable tests.
(Portage version: 2.2_rc79_p5/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/atpy')
-rw-r--r-- | dev-python/atpy/ChangeLog | 6 | ||||
-rw-r--r-- | dev-python/atpy/atpy-0.9.4.ebuild | 19 |
2 files changed, 21 insertions, 4 deletions
diff --git a/dev-python/atpy/ChangeLog b/dev-python/atpy/ChangeLog index 8cbe0929bfbd..f64991b0b158 100644 --- a/dev-python/atpy/ChangeLog +++ b/dev-python/atpy/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-python/atpy # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/atpy/ChangeLog,v 1.1 2010/09/02 16:35:17 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/atpy/ChangeLog,v 1.2 2010/09/10 21:37:58 arfrever Exp $ + + 10 Sep 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + atpy-0.9.4.ebuild: + Enable tests. *atpy-0.9.4 (02 Sep 2010) diff --git a/dev-python/atpy/atpy-0.9.4.ebuild b/dev-python/atpy/atpy-0.9.4.ebuild index 4142df4ff1b7..24f34499e677 100644 --- a/dev-python/atpy/atpy-0.9.4.ebuild +++ b/dev-python/atpy/atpy-0.9.4.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/atpy/atpy-0.9.4.ebuild,v 1.1 2010/09/02 16:35:17 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/atpy/atpy-0.9.4.ebuild,v 1.2 2010/09/10 21:37:58 arfrever Exp $ EAPI="2" @@ -9,11 +9,10 @@ SUPPORT_PYTHON_ABIS="1" inherit distutils -#DISTUTILS_SRC_TEST="test/test.py" MYPN=ATpy MYP="${MYPN}-${PV}" -DESCRIPTION="Astronomical tables support Python" +DESCRIPTION="Astronomical tables support for Python" HOMEPAGE="http://atpy.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${MYP}.tar.gz" @@ -36,3 +35,17 @@ KEYWORDS="~amd64 ~x86" LICENSE="GPL-3" S="${WORKDIR}/${MYP}" + +src_prepare() { + distutils_src_prepare + + # Disable failing MySQL tests. + sed -e "s/import MySQLdb/raise ImportError/" -i test/unittests.py || die "sed failed" +} + +src_test() { + testing() { + PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" test/unittests.py + } + python_execute_function testing +} |