diff options
author | Julien Roy <julien@jroy.ca> | 2023-02-08 00:17:57 -0500 |
---|---|---|
committer | Julien Roy <julien@jroy.ca> | 2023-02-08 00:17:57 -0500 |
commit | a7e92a62528e85ad1bf3eafc8c824aa0ce066386 (patch) | |
tree | 4db8e59f8db74a6f7cbf651646be488b8a4923b6 /dev-python/zope-untrustedpython | |
parent | 39e99b03c3bdb85f20423662f9319b0edf0ddc85 (diff) | |
download | MrRoy-Overlay-a7e92a62528e85ad1bf3eafc8c824aa0ce066386.tar.gz MrRoy-Overlay-a7e92a62528e85ad1bf3eafc8c824aa0ce066386.tar.bz2 MrRoy-Overlay-a7e92a62528e85ad1bf3eafc8c824aa0ce066386.zip |
dev-python/*: WIP tests
Signed-off-by: Julien Roy <julien@jroy.ca>
Diffstat (limited to 'dev-python/zope-untrustedpython')
-rw-r--r-- | dev-python/zope-untrustedpython/zope-untrustedpython-5.0.ebuild | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/dev-python/zope-untrustedpython/zope-untrustedpython-5.0.ebuild b/dev-python/zope-untrustedpython/zope-untrustedpython-5.0.ebuild index 4a54cbc..87dce1f 100644 --- a/dev-python/zope-untrustedpython/zope-untrustedpython-5.0.ebuild +++ b/dev-python/zope-untrustedpython/zope-untrustedpython-5.0.ebuild @@ -16,17 +16,19 @@ S="${WORKDIR}/${PN/-/\.}-${PV}" LICENSE="ZPL" SLOT="0" KEYWORDS="~amd64" -# Zope Testrunner -RESTRICT="test" RDEPEND=" dev-python/restrictedpython[${PYTHON_USEDEP}] dev-python/zope-security[${PYTHON_USEDEP}] + test? ( + dev-python/zope-testing[${PYTHON_USEDEP}] + dev-python/zope-testrunner[${PYTHON_USEDEP}] + ) " DEPEND="${RDEPEND}" distutils_enable_sphinx docs -distutils_enable_tests unittest +distutils_enable_tests setup.py src_prepare() { # strip rdep specific to namespaces @@ -39,7 +41,8 @@ python_compile() { find "${BUILD_DIR}" -name '*.pth' -delete || die } -src_test() { - cd "${S}/src/zope/untrustedpython" || die - distutils-r1_src_test +python_test() { + distutils_write_namespace zope + zope-testrunner -pvc -j "$(nproc)" --usecompiled \ + --path "${BUILD_DIR}/install$(python_get_sitedir)/zope" || die } |