From: "Sergei Trofimovich" <slyfox@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/distorm3/
Date: Mon, 21 Jun 2021 10:03:54 +0000 (UTC) [thread overview]
Message-ID: <1624269829.88943bb8fd6c8ef312bba83f35668bc860c8ee65.slyfox@gentoo> (raw)
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 }
+}
next reply other threads:[~2021-06-21 10:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-21 10:03 Sergei Trofimovich [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-04-16 9:16 [gentoo-commits] repo/gentoo:master commit in: dev-libs/distorm3/ Patrick Lauer
2023-05-20 6:31 Michał Górny
2023-03-07 9:23 Sam James
2023-03-07 9:23 Sam James
2021-07-02 6:01 Sergei Trofimovich
2021-06-21 10:11 Sergei Trofimovich
2021-05-15 13:58 Sergei Trofimovich
2021-04-02 9:54 Sergei Trofimovich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1624269829.88943bb8fd6c8ef312bba83f35668bc860c8ee65.slyfox@gentoo \
--to=slyfox@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox