From 88943bb8fd6c8ef312bba83f35668bc860c8ee65 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 21 Jun 2021 11:03:22 +0100 Subject: dev-libs/distorm3: enable tests Reported-by: Agostino Sarubbo Closes: https://bugs.gentoo.org/797280 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Sergei Trofimovich --- dev-libs/distorm3/distorm3-3.5.2.ebuild | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'dev-libs/distorm3') diff --git a/dev-libs/distorm3/distorm3-3.5.2.ebuild b/dev-libs/distorm3/distorm3-3.5.2.ebuild index ae5d013926ab..a9f1ff42761c 100644 --- a/dev-libs/distorm3/distorm3-3.5.2.ebuild +++ b/dev-libs/distorm3/distorm3-3.5.2.ebuild @@ -11,13 +11,18 @@ DESCRIPTION="The ultimate disassembler library (X86-32, X86-64)" HOMEPAGE="http://www.ragestorm.net/distorm/" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" -DEPEND="" -RDEPEND="" - LICENSE="BSD-4" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="test" + +RESTRICT="!test? ( test )" + +DEPEND="" +RDEPEND="" +BDEPEND="test? ( dev-lang/yasm )" + +distutils_enable_tests pytest python_install() { distutils-r1_python_install @@ -25,3 +30,13 @@ python_install() { # don't know why it does not happen by default python_optimize } + +python_test() { + local exclude=( + # outdated tests? API udage mismatch + python/test_distorm3.py::Test::test_dummy + python/test_distorm3.py::InstBin::test_dummy + python/test_distorm3.py::Inst::test_dummy + ) + epytest ${exclude[@]/#/--deselect } +} -- cgit v1.2.3-65-gdbad