From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D37D71382C5 for ; Mon, 21 Jun 2021 10:03:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1B3E4E0864; Mon, 21 Jun 2021 10:03:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ED5CDE0864 for ; Mon, 21 Jun 2021 10:03:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3103B335D1E for ; Mon, 21 Jun 2021 10:03:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EC1627B3 for ; Mon, 21 Jun 2021 10:03:54 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1624269829.88943bb8fd6c8ef312bba83f35668bc860c8ee65.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/distorm3/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/distorm3/distorm3-3.5.2.ebuild X-VCS-Directories: dev-libs/distorm3/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 88943bb8fd6c8ef312bba83f35668bc860c8ee65 X-VCS-Branch: master Date: Mon, 21 Jun 2021 10:03:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0822d78a-7b7b-429e-8c1b-12c5a5c62d77 X-Archives-Hash: e12814fab867d78565d3f98355934225 commit: 88943bb8fd6c8ef312bba83f35668bc860c8ee65 Author: Sergei Trofimovich gentoo org> AuthorDate: Mon Jun 21 10:03:22 2021 +0000 Commit: Sergei Trofimovich gentoo 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 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 } +}