commit: ee552316ae732521068dabfbc70914e2d6491857
Author: Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org>
AuthorDate: Thu Jul 2 23:01:57 2020 +0000
Commit: Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org>
CommitDate: Thu Jul 2 23:01:57 2020 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ee552316
net-p2p/nuxhash: add tests
They are broken though
Package-Manager: Portage-2.3.99, Repoman-2.3.23
Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild
b/net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild
index 62d08e3..170154d 100644
--- a/net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild
+++ b/net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild
@@ -16,6 +16,7 @@ LICENSE="GPL-3 excavator-EULA"
SLOT="0"
IUSE="gui"
KEYWORDS="~amd64"
+RESTRICT="test"
RDEPEND="
dev-libs/libbsd
@@ -39,3 +40,9 @@ python_prepare_all() {
use gui || eapply
"${FILESDIR}/nuxhash-1.0.0_beta2_p20191013-remove-gui.patch"
distutils-r1_python_prepare_all
}
+
+python_test() {
+ for t in tests/test_*.py; do
+ "${EPYTHON}" "${t}" || die
+ done
+}