/[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.12 - (show annotations) (download)
Tue Jun 29 04:45:57 2010 UTC (4 years, 1 month ago) by arfrever
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +5 -6 lines
Don't use NEED_PYTHON.
(Portage version: HEAD/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20