mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
sys-libs/libblockdev: fix tests (to extent possible; they need root still)
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -25,7 +25,9 @@ fi
|
||||
LICENSE="LGPL-2+"
|
||||
SLOT="0"
|
||||
IUSE="bcache +cryptsetup device-mapper dmraid escrow gtk-doc introspection lvm kbd test +tools vdo"
|
||||
RESTRICT="!test? ( test )"
|
||||
# Tests require root. In a future release, we may be able to run a smaller
|
||||
# subset with new run_tests.py arguments.
|
||||
RESTRICT="!test? ( test ) test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2.42.2
|
||||
@@ -107,6 +109,13 @@ src_configure() {
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# See http://storaged.org/libblockdev/ch03.html
|
||||
# The 'check' target just does Pylint.
|
||||
# ... but it needs root.
|
||||
emake test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${ED}" -type f -name "*.la" -delete || die
|
||||
|
||||
@@ -25,7 +25,9 @@ fi
|
||||
LICENSE="LGPL-2+"
|
||||
SLOT="0"
|
||||
IUSE="bcache +cryptsetup device-mapper dmraid escrow gtk-doc introspection lvm kbd test +tools vdo"
|
||||
RESTRICT="!test? ( test )"
|
||||
# Tests require root. In a future release, we may be able to run a smaller
|
||||
# subset with new run_tests.py arguments.
|
||||
RESTRICT="!test? ( test ) test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2.42.2
|
||||
@@ -107,6 +109,13 @@ src_configure() {
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# See http://storaged.org/libblockdev/ch03.html
|
||||
# The 'check' target just does Pylint.
|
||||
# ... but it needs root.
|
||||
emake test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${ED}" -type f -name "*.la" -delete || die
|
||||
|
||||
Reference in New Issue
Block a user