commit:     b2283a1ef41d140f4d5c88caf4f442961f0dd9ec
Author:     Tiziano Müller <dev-zero <AT> gentoo <DOT> org>
AuthorDate: Mon Sep  7 08:20:34 2015 +0000
Commit:     Tiziano Müller <dev-zero <AT> gentoo <DOT> org>
CommitDate: Mon Sep  7 08:20:34 2015 +0000
URL:        https://gitweb.gentoo.org/dev/dev-zero.git/commit/?id=b2283a1e

sys-cluster/glusterfs: add test deps and restrict them

 sys-cluster/glusterfs/glusterfs-3.7.3.ebuild | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/sys-cluster/glusterfs/glusterfs-3.7.3.ebuild 
b/sys-cluster/glusterfs/glusterfs-3.7.3.ebuild
index e653810..31c48ad 100644
--- a/sys-cluster/glusterfs/glusterfs-3.7.3.ebuild
+++ b/sys-cluster/glusterfs/glusterfs-3.7.3.ebuild
@@ -21,6 +21,9 @@ IUSE="bd-xlator crypt-xlator debug emacs +fuse 
+georeplication glupy infiniband
 REQUIRED_USE="georeplication? ( ${PYTHON_REQUIRED_USE} )
        glupy? ( ${PYTHON_REQUIRED_USE} )"
 
+# the tests must be run as root
+RESTRICT="test"
+
 # sys-apps/util-linux is required for libuuid
 RDEPEND="bd-xlator? ( sys-fs/lvm2 )
        emacs? ( virtual/emacs )
@@ -41,7 +44,14 @@ DEPEND="${RDEPEND}
        virtual/pkgconfig
        sys-devel/bison
        sys-devel/flex
-       test? ( >=dev-util/cmocka-1.0.1 )"
+       test? ( >=dev-util/cmocka-1.0.1
+               app-benchmarks/dbench
+               dev-vcs/git
+               net-fs/nfs-utils
+               virtual/perl-Test-Harness
+               dev-libs/yajl
+               sys-fs/xfsprogs
+               sys-apps/attr )"
 
 SITEFILE="50${PN}-mode-gentoo.el"
 
@@ -157,6 +167,10 @@ src_install() {
        use georeplication && python_fix_shebang "${ED}"
 }
 
+src_test() {
+       ./run-tests.sh || die
+}
+
 pkg_postinst() {
        elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to 
configure your"
        elog "volumes dynamically. To do so, simply use the gluster CLI after 
running:"

Reply via email to