From d7c239bcfbbf8f770fca33143b82e8542c3dd8f2 Mon Sep 17 00:00:00 2001 From: Mart Raudsepp Date: Fri, 13 Aug 2021 19:26:06 +0300 Subject: dev-util/meld: Enable tests Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Mart Raudsepp --- dev-util/meld/meld-3.20.4.ebuild | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'dev-util/meld/meld-3.20.4.ebuild') diff --git a/dev-util/meld/meld-3.20.4.ebuild b/dev-util/meld/meld-3.20.4.ebuild index ca18cbcb9d0c..5f935a31e2e4 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 +} -- cgit v1.2.3-65-gdbad