summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2012-03-24 23:45:23 +0000
committerTim Harder <radhermit@gentoo.org>2012-03-24 23:45:23 +0000
commit8409cbcf61ad7a36e2295a79cf2d3dc3c87e66a7 (patch)
tree2832b7b74d31348bb4f905e0e35dc90a734d7795 /net-proxy/mitmproxy
parentInitial import required for running mitmproxy tests. Ebuild by me. (diff)
downloadgentoo-2-8409cbcf61ad7a36e2295a79cf2d3dc3c87e66a7.tar.gz
gentoo-2-8409cbcf61ad7a36e2295a79cf2d3dc3c87e66a7.tar.bz2
gentoo-2-8409cbcf61ad7a36e2295a79cf2d3dc3c87e66a7.zip
Add test support using pry.
(Portage version: 2.2.0_alpha95/cvs/Linux x86_64)
Diffstat (limited to 'net-proxy/mitmproxy')
-rw-r--r--net-proxy/mitmproxy/ChangeLog5
-rw-r--r--net-proxy/mitmproxy/mitmproxy-0.7.ebuild16
2 files changed, 17 insertions, 4 deletions
diff --git a/net-proxy/mitmproxy/ChangeLog b/net-proxy/mitmproxy/ChangeLog
index 94fcc857e364..4bfaeb16fb48 100644
--- a/net-proxy/mitmproxy/ChangeLog
+++ b/net-proxy/mitmproxy/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-proxy/mitmproxy
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/mitmproxy/ChangeLog,v 1.1 2012/03/21 09:50:06 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/mitmproxy/ChangeLog,v 1.2 2012/03/24 23:45:23 radhermit Exp $
+
+ 24 Mar 2012; Tim Harder <radhermit@gentoo.org> mitmproxy-0.7.ebuild:
+ Add test support using pry.
*mitmproxy-0.7 (21 Mar 2012)
diff --git a/net-proxy/mitmproxy/mitmproxy-0.7.ebuild b/net-proxy/mitmproxy/mitmproxy-0.7.ebuild
index 59f0c1d27ff2..45395761f2a8 100644
--- a/net-proxy/mitmproxy/mitmproxy-0.7.ebuild
+++ b/net-proxy/mitmproxy/mitmproxy-0.7.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/mitmproxy/mitmproxy-0.7.ebuild,v 1.1 2012/03/21 09:50:06 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/mitmproxy/mitmproxy-0.7.ebuild,v 1.2 2012/03/24 23:45:23 radhermit Exp $
EAPI="4"
@@ -18,11 +18,21 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="doc examples"
+IUSE="doc examples test"
RDEPEND="dev-libs/openssl
>=dev-python/urwid-0.9.8"
-DEPEND="${RDEPEND}"
+DEPEND="${RDEPEND}
+ test? ( dev-python/pry )"
+
+src_test() {
+ cd test
+
+ testing() {
+ PYTHONPATH="../build-${PYTHON_ABI}/lib" "$(PYTHON)" "${EROOT}"/usr/bin/pry
+ }
+ python_execute_function testing
+}
src_install() {
distutils_src_install