diff options
Diffstat (limited to 'sys-libs/libblockdev/libblockdev-2.26.ebuild')
-rw-r--r-- | sys-libs/libblockdev/libblockdev-2.26.ebuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys-libs/libblockdev/libblockdev-2.26.ebuild b/sys-libs/libblockdev/libblockdev-2.26.ebuild index 9dbccbc4377d..0682b4b778eb 100644 --- a/sys-libs/libblockdev/libblockdev-2.26.ebuild +++ b/sys-libs/libblockdev/libblockdev-2.26.ebuild @@ -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 |