summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2021-06-21 11:03:22 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2021-06-21 11:03:49 +0100
commit88943bb8fd6c8ef312bba83f35668bc860c8ee65 (patch)
tree020e1b9ab738616bd3ee6061c4298e3ab4501ec3 /dev-libs
parentdev-python/gast: Add python@ as co-maint. (diff)
downloadgentoo-88943bb8fd6c8ef312bba83f35668bc860c8ee65.tar.gz
gentoo-88943bb8fd6c8ef312bba83f35668bc860c8ee65.tar.bz2
gentoo-88943bb8fd6c8ef312bba83f35668bc860c8ee65.zip
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@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/distorm3/distorm3-3.5.2.ebuild23
1 files 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 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 }
+}