diff options
author | Tim Harder <radhermit@gentoo.org> | 2012-03-24 23:45:23 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2012-03-24 23:45:23 +0000 |
commit | ecc7d0d7ac1b16db9ca0336afa82daaea1b76057 (patch) | |
tree | 7de7805b913bcfc5bdf17ddb7199eafcf01ea7dc /net-proxy | |
parent | Initial import required for running mitmproxy tests. Ebuild by me. (diff) | |
download | historical-ecc7d0d7ac1b16db9ca0336afa82daaea1b76057.tar.gz historical-ecc7d0d7ac1b16db9ca0336afa82daaea1b76057.tar.bz2 historical-ecc7d0d7ac1b16db9ca0336afa82daaea1b76057.zip |
Add test support using pry.
Package-Manager: portage-2.2.0_alpha95/cvs/Linux x86_64
Diffstat (limited to 'net-proxy')
-rw-r--r-- | net-proxy/mitmproxy/ChangeLog | 5 | ||||
-rw-r--r-- | net-proxy/mitmproxy/Manifest | 18 | ||||
-rw-r--r-- | net-proxy/mitmproxy/mitmproxy-0.7.ebuild | 16 |
3 files changed, 26 insertions, 13 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/Manifest b/net-proxy/mitmproxy/Manifest index 5f2d996c381d..56db2f4b6669 100644 --- a/net-proxy/mitmproxy/Manifest +++ b/net-proxy/mitmproxy/Manifest @@ -2,17 +2,17 @@ Hash: SHA512 DIST mitmproxy-0.7.tar.gz 2171776 RMD160 30cd654a6e3d28119b1095a3b66c99c61963333e SHA1 e885ae4b9a80361cb99e63435848869e0bb80ae4 SHA256 f407988cc18448cf55c90282cfcdbaf698eecd54a3e762dbf3e77078944868b5 -EBUILD mitmproxy-0.7.ebuild 801 RMD160 bb830da6c87a2552cc197cb1d48e25079d8bbeaf SHA1 e0f8c3054aba89b21b3b4195345c91dd65b0962e SHA256 9fc418d6d86d7f7041d94155137f667c3d7e0b233b1ab5caabce509b9c5c7b9c -MISC ChangeLog 366 RMD160 18d74672a112f69a84640547ef6fe4615ce95006 SHA1 eecfe7ca9d3e52fa016105df620e142bc9a16206 SHA256 ec8b68aaa37938bdfe4a79ba9d1ce256d792a237bcbafcd14bba130b1a6ff7cd +EBUILD mitmproxy-0.7.ebuild 984 RMD160 3e17b4dda70732dee422ae09f3ac6e8b87a98398 SHA1 1b92e5494564c9a1bffafa9bcdb9c9d12c11d953 SHA256 99cf89f171523e28ea29cfacf18b79cf12d369f568459cb0034eb4695c63869c +MISC ChangeLog 468 RMD160 d6e2edeb39043a5b3b0a7c1b8920183ad44859dd SHA1 be63958faf4accf144f6b064efdb8aa220e853e2 SHA256 e7d915d28ca554ecd45019a0ca91431749757b49c3aa22caa9de0e4ae56cb00f MISC metadata.xml 236 RMD160 5aae0279e740410983bb7929bac4231bb0830f03 SHA1 a7d75412a029c27c9267363220a8bd74d3281060 SHA256 5285fd5ca6bc85e0392ff64ec8e54d0018ebd761d3977869c00c93dee45ea09d -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) -iQEcBAEBCgAGBQJPaaRYAAoJEEqz6FtPBkyjUhwH/jmlGCqHSL/5/DHbddwZz5Ij -QWn+vyMMFC0xCOoyo05C9iJE6ejyIiXwoSsLSPoeBqy/yuuMVMx/9k5SKGITNxeq -fkh7HgiJHufZbYcUhyyuYPE+YjTZ76Ki2vvAxEqjc7rupXzds9M8LxmvaGbZeYdL -613BBBzh6XTBMHJyBaRuQQKyQ7w9ItqnFswTbe6Pn7+aRdh+eIJlug/G3H4t3CdZ -e1MtO9qa2v9D9T10caFo+nhpSGbj2SzqvwVOyWhYlB9t1UiFqQmwqqHXfrr9xw4H -jPHB6hb0Zhm7frI69Yz+rjEIXrf5+2dDomOvJpNMOV0mrIonzVRNh0pN5LspFEA= -=siD0 +iQEcBAEBCgAGBQJPblyZAAoJEEqz6FtPBkyj1dsIAJ9qGhgWAbH7FxZePVdtKt7O +40pox2I16uavyqO03X9d3HRdTJRpjQN0/RYqbiohoUnt2oL8KHIRXZR7Y+6+pW/Y +Jfrk6MLt8af4M9K8F6xSPhQMmQ8b4ppHVfg//IeYquXAXlM5tzFiYbq0VMBJESg6 +I/5z8teO4EIZUV7+0hERxSKU2wV4UXEyTP5ELS5KzQxf8/U07zsA+MOsoXBuPf28 +3tXl+6rpa9YYvy6Eo3bSLhfpwZVO4jJKdHMO13p2VH4+m246bNxhgHoJJ2OT17oQ +LF78gm9kqezir+uGmpje+q4r7PB4iroQRM28qPoau3+LaL2lvQ0BYQLZjGRZ1+k= +=CecK -----END PGP SIGNATURE----- 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 |