commit: 924f908d22360a68681f3aa6f47c030efc418f93
Author: Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 19 14:22:44 2016 +0000
Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Fri Aug 19 14:22:44 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=924f908d
dev-php/pecl-redis: Add unit tests
Package-Manager: portage-2.3.0
dev-php/pecl-redis/pecl-redis-3.0.0.ebuild | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/dev-php/pecl-redis/pecl-redis-3.0.0.ebuild
b/dev-php/pecl-redis/pecl-redis-3.0.0.ebuild
index 7fe79dd..fe9fd03 100644
--- a/dev-php/pecl-redis/pecl-redis-3.0.0.ebuild
+++ b/dev-php/pecl-redis/pecl-redis-3.0.0.ebuild
@@ -39,3 +39,12 @@ src_install() {
php-ext-pecl-r2_src_install
fi
}
+
+src_test(){
+ local slot
+ for slot in `php_get_slots`; do
+ php_init_slot_env ${slot}
+ # Run tests for Redis class
+ ${PHPCLI} -d extension=modules/redis.so tests/TestRedis.php
--class Redis --host ${PECL_REDIS_HOST} || die
+ done
+}