Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libblockdev/
Date: Mon, 22 Nov 2021 09:44:57
Message-Id: 1637574248.51c86b17c89d06bacda268a75f9a8dfa88f36e7d.sam@gentoo
1 commit: 51c86b17c89d06bacda268a75f9a8dfa88f36e7d
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 22 09:44:08 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 22 09:44:08 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51c86b17
7
8 sys-libs/libblockdev: fix tests (to extent possible; they need root still)
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 sys-libs/libblockdev/libblockdev-2.26.ebuild | 11 ++++++++++-
13 sys-libs/libblockdev/libblockdev-9999.ebuild | 11 ++++++++++-
14 2 files changed, 20 insertions(+), 2 deletions(-)
15
16 diff --git a/sys-libs/libblockdev/libblockdev-2.26.ebuild b/sys-libs/libblockdev/libblockdev-2.26.ebuild
17 index 9dbccbc4377d..0682b4b778eb 100644
18 --- a/sys-libs/libblockdev/libblockdev-2.26.ebuild
19 +++ b/sys-libs/libblockdev/libblockdev-2.26.ebuild
20 @@ -25,7 +25,9 @@ fi
21 LICENSE="LGPL-2+"
22 SLOT="0"
23 IUSE="bcache +cryptsetup device-mapper dmraid escrow gtk-doc introspection lvm kbd test +tools vdo"
24 -RESTRICT="!test? ( test )"
25 +# Tests require root. In a future release, we may be able to run a smaller
26 +# subset with new run_tests.py arguments.
27 +RESTRICT="!test? ( test ) test"
28
29 RDEPEND="
30 >=dev-libs/glib-2.42.2
31 @@ -107,6 +109,13 @@ src_configure() {
32 econf "${myeconfargs[@]}"
33 }
34
35 +src_test() {
36 + # See http://storaged.org/libblockdev/ch03.html
37 + # The 'check' target just does Pylint.
38 + # ... but it needs root.
39 + emake test
40 +}
41 +
42 src_install() {
43 default
44 find "${ED}" -type f -name "*.la" -delete || die
45
46 diff --git a/sys-libs/libblockdev/libblockdev-9999.ebuild b/sys-libs/libblockdev/libblockdev-9999.ebuild
47 index 9dbccbc4377d..0682b4b778eb 100644
48 --- a/sys-libs/libblockdev/libblockdev-9999.ebuild
49 +++ b/sys-libs/libblockdev/libblockdev-9999.ebuild
50 @@ -25,7 +25,9 @@ fi
51 LICENSE="LGPL-2+"
52 SLOT="0"
53 IUSE="bcache +cryptsetup device-mapper dmraid escrow gtk-doc introspection lvm kbd test +tools vdo"
54 -RESTRICT="!test? ( test )"
55 +# Tests require root. In a future release, we may be able to run a smaller
56 +# subset with new run_tests.py arguments.
57 +RESTRICT="!test? ( test ) test"
58
59 RDEPEND="
60 >=dev-libs/glib-2.42.2
61 @@ -107,6 +109,13 @@ src_configure() {
62 econf "${myeconfargs[@]}"
63 }
64
65 +src_test() {
66 + # See http://storaged.org/libblockdev/ch03.html
67 + # The 'check' target just does Pylint.
68 + # ... but it needs root.
69 + emake test
70 +}
71 +
72 src_install() {
73 default
74 find "${ED}" -type f -name "*.la" -delete || die