summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Schild <henning@hennsch.de>2022-02-26 11:27:48 +0100
committerJoonas Niilola <juippis@gentoo.org>2022-03-01 15:09:50 +0200
commitfe98a98381bc125a588cf46ea4f8634c845c1bd1 (patch)
tree3cd7f5b58b4eeb6eb31d777e175cda7c9f811489 /www-apps/radicale
parentsci-libs/cfitsio: add version 4.0.0 (diff)
downloadgentoo-fe98a98381bc125a588cf46ea4f8634c845c1bd1.tar.gz
gentoo-fe98a98381bc125a588cf46ea4f8634c845c1bd1.tar.bz2
gentoo-fe98a98381bc125a588cf46ea4f8634c845c1bd1.zip
www-apps/radicale: enable testing for 2.x as well
Signed-off-by: Henning Schild <henning@hennsch.de> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'www-apps/radicale')
-rw-r--r--www-apps/radicale/radicale-2.1.12-r1.ebuild11
1 files changed, 11 insertions, 0 deletions
diff --git a/www-apps/radicale/radicale-2.1.12-r1.ebuild b/www-apps/radicale/radicale-2.1.12-r1.ebuild
index 5d65b912db3b..6b206b0290e0 100644
--- a/www-apps/radicale/radicale-2.1.12-r1.ebuild
+++ b/www-apps/radicale/radicale-2.1.12-r1.ebuild
@@ -32,10 +32,21 @@ RDEPEND="
dev-python/passlib[${PYTHON_USEDEP}]
)"
+distutils_enable_tests --install pytest
+
S="${WORKDIR}/${MY_P}"
RDIR=/var/lib/${PN}
+src_prepare() {
+ sed -i '/^addopts =/d' setup.cfg || die
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ epytest radicale/tests/
+}
+
python_install_all() {
rm README* || die