/[gentoo-x86]/dev-python/sancho/sancho-2.4.ebuild
Gentoo

Contents of /dev-python/sancho/sancho-2.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Tue Sep 8 03:42:49 2009 UTC (8 years, 10 months ago) by arfrever
Branch: MAIN
Version bump. Set SUPPORT_PYTHON_ABIS.
(Portage version: 14215-svn/cvs/Linux x86_64)

1 arfrever 1.1 # Copyright 1999-2009 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: $
4    
5     EAPI="2"
6    
7     NEED_PYTHON="2.4"
8     SUPPORT_PYTHON_ABIS="1"
9    
10     inherit distutils
11    
12     MY_P=${P/s/S}
13     DESCRIPTION="Sancho is a unit testing framework"
14     HOMEPAGE="http://www.mems-exchange.org/software/sancho/"
15     SRC_URI="http://www.mems-exchange.org/software/files/${PN}/${MY_P}.tar.gz"
16    
17     LICENSE="CNRI"
18     SLOT="0"
19     KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
20     IUSE=""
21    
22     DEPEND=""
23     RDEPEND=""
24    
25     S="${WORKDIR}/${MY_P}"
26    
27     DOCS="CHANGES.txt"
28    
29     src_test() {
30     cd test
31     testing() {
32     local test test_failure test_failure_count=0
33     for test in *.py; do
34     test_failure="0"
35     ebegin "Testing ${test}"
36     PYTHONPATH="../build-${PYTHON_ABI}/lib" "$(PYTHON)" "${test}" > "${test}.output"
37     grep -Eqv "^${test}: .*:$" "${test}.output" && test_failure="1"
38     eend "${test_failure}"
39     if [[ "${test_failure}" == "1" ]]; then
40     ((test_failure_count++))
41     eerror "Failure output for ${test}"
42     cat "${test}.output"
43     fi
44     done
45     if [[ "${test_failure_count}" -gt "0" ]]; then
46     die "${test_failure_count} tests failed with Python ${PYTHON_ABI}"
47     fi
48     }
49     python_execute_function testing
50     }

  ViewVC Help
Powered by ViewVC 1.1.20