Gentoo Archives: gentoo-commits

From: Alexey Sokolov <alexey+gentoo@××××××××.org>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-p2p/nuxhash/
Date: Thu, 02 Jul 2020 23:02:11
Message-Id: 1593730917.ee552316ae732521068dabfbc70914e2d6491857.DarthGandalf@gentoo
1 commit: ee552316ae732521068dabfbc70914e2d6491857
2 Author: Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org>
3 AuthorDate: Thu Jul 2 23:01:57 2020 +0000
4 Commit: Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org>
5 CommitDate: Thu Jul 2 23:01:57 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ee552316
7
8 net-p2p/nuxhash: add tests
9
10 They are broken though
11
12 Package-Manager: Portage-2.3.99, Repoman-2.3.23
13 Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
14
15 net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild | 7 +++++++
16 1 file changed, 7 insertions(+)
17
18 diff --git a/net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild b/net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild
19 index 62d08e3..170154d 100644
20 --- a/net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild
21 +++ b/net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild
22 @@ -16,6 +16,7 @@ LICENSE="GPL-3 excavator-EULA"
23 SLOT="0"
24 IUSE="gui"
25 KEYWORDS="~amd64"
26 +RESTRICT="test"
27
28 RDEPEND="
29 dev-libs/libbsd
30 @@ -39,3 +40,9 @@ python_prepare_all() {
31 use gui || eapply "${FILESDIR}/nuxhash-1.0.0_beta2_p20191013-remove-gui.patch"
32 distutils-r1_python_prepare_all
33 }
34 +
35 +python_test() {
36 + for t in tests/test_*.py; do
37 + "${EPYTHON}" "${t}" || die
38 + done
39 +}