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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Jan 9 05:16:51 2015 UTC (3 years, 8 months ago) by idella4
Branch: MAIN
CVS Tags: HEAD
revbump; conversion -> distutils-r1

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)

1 # Copyright 1999-2015 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.12 2010/06/29 04:45:57 arfrever Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python2_7 )
7
8 inherit distutils-r1
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 python_test() {
27 cd test
28 local test test_failure test_failure_count=0
29 for test in *.py; do
30 test_failure="0"
31 ebegin "Testing ${test}"
32 "${PYTHON}" "${test}" > "${test}.output"
33 grep -Eqv "^${test}: .*:$" "${test}.output" && test_failure="1"
34 eend "${test_failure}"
35 if [[ "${test_failure}" == "1" ]]; then
36 ((test_failure_count++))
37 eerror "Failure output for ${test}"
38 cat "${test}.output"
39 fi
40 done
41 if [[ "${test_failure_count}" -gt "0" ]]; then
42 die "${test_failure_count} tests failed"
43 fi
44 }

  ViewVC Help
Powered by ViewVC 1.1.20