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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Fri Oct 2 01:03:39 2009 UTC (4 years, 9 months ago) by arfrever
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Backport some changes to older slot. Delete older ebuilds.
(Portage version: 14471-svn/cvs/Linux x86_64)

1 # Copyright 1999-2007 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.1-r1.ebuild,v 1.6 2007/11/13 19:34:31 jer Exp $
4
5 inherit distutils
6
7 MY_P=${P/s/S}
8 DESCRIPTION="Sancho is a unit testing framework"
9 HOMEPAGE="http://www.mems-exchange.org/software/sancho/"
10 SRC_URI="http://www.mems-exchange.org/software/files/${PN}/${MY_P}.tar.gz"
11
12 LICENSE="CNRI"
13 SLOT="0"
14 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
15 IUSE=""
16 DEPEND=">=dev-lang/python-2.3"
17
18 S=${WORKDIR}/${MY_P}
19
20 src_install() {
21 DOCS="CHANGES.txt"
22 distutils_src_install
23 }
24
25 src_test() {
26 einfo "Setting up test env."
27 mkdir "${T}/tests"
28 "${python}" setup.py install --home="${T}/tests" "$@" \
29 || die "Failed to install tests"
30 pushd "${T}/tests"
31 einfo "Running"
32 failcount=0
33 for tst in ${S}/test/*.py ; do
34 b="$(basename ${tst})"
35 o=${T}/tests/output-${b}
36 ebegin "Testing ${b}"
37 PYTHONPATH=lib/python "${python}" ${tst} >>${o}
38 egrep -qv "^.*/${b}: .*:\$" ${o}
39 rcv=$?
40 eend $rc
41 if [ $rcv -eq 0 ]; then
42 let failcount=${failcount}+1
43 eerror "Failure output for ${b}"
44 cat ${o}
45 fi
46 done;
47 [ $failcount -gt 0 ] && die "${failcount} tests failed"
48 einfo "Cleaning up test env."
49 popd
50 #rm -rf "${T}/tests"
51 }

  ViewVC Help
Powered by ViewVC 1.1.20