commit: d7c239bcfbbf8f770fca33143b82e8542c3dd8f2
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 13 16:26:06 2021 +0000
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Fri Aug 13 16:27:26 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7c239bc
dev-util/meld: Enable tests
Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
dev-util/meld/meld-3.20.4.ebuild | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/dev-util/meld/meld-3.20.4.ebuild b/dev-util/meld/meld-3.20.4.ebuild
index ca18cbcb9d0..5f935a31e2e 100644
--- a/dev-util/meld/meld-3.20.4.ebuild
+++ b/dev-util/meld/meld-3.20.4.ebuild
@@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_{8..10} )
DISTUTILS_SINGLE_IMPL=1
DISTUTILS_USE_SETUPTOOLS=no
-inherit gnome2 distutils-r1
+inherit gnome2 distutils-r1 virtualx
DESCRIPTION="A graphical diff and merge tool"
HOMEPAGE="http://meldmerge.org/"
@@ -39,6 +39,8 @@ BDEPEND="
# but it's mainly needed for debian and derivatives - seems the fallback
# works fine, as we aren't a special_case, just an annoying warning.
+distutils_enable_tests pytest
+
python_check_deps() {
has_version -b "dev-python/distro[${PYTHON_USEDEP}]"
}
@@ -53,3 +55,8 @@ python_install() {
rm "${ED}"/usr/share/doc/meld-${PV}/{COPYING,NEWS} || die
rmdir "${ED}"/usr/share/doc/meld-${PV} || die
}
+
+python_test() {
+ # test_gutterrendererchunk.py needs a GdkScreen for
Gtk.IconTheme.get_default() to work
+ virtx epytest
+}