commit: 88943bb8fd6c8ef312bba83f35668bc860c8ee65 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> AuthorDate: Mon Jun 21 10:03:22 2021 +0000 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> CommitDate: Mon Jun 21 10:03:49 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88943bb8
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 <slyfox <AT> gentoo.org> dev-libs/distorm3/distorm3-3.5.2.ebuild | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/dev-libs/distorm3/distorm3-3.5.2.ebuild b/dev-libs/distorm3/distorm3-3.5.2.ebuild index ae5d013926a..a9f1ff42761 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 } +}