/[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.11 - (show annotations) (download)
Sun Dec 27 12:01:41 2009 UTC (8 years, 11 months ago) by armin76
Branch: MAIN
Changes since 1.10: +2 -2 lines
ia64/m68k/s390/sh/sparc stable wrt #288563
(Portage version: 2.1.6.13/cvs/Linux ia64)

1 # Copyright 1999-2009 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.10 2009/12/20 10:34:52 grobian Exp $
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 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
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