From: Brian Evans Date: Fri, 19 Aug 2016 14:22:44 +0000 (-0400) Subject: dev-php/pecl-redis: Add unit tests X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=924f908d22360a68681f3aa6f47c030efc418f93;p=gentoo.git dev-php/pecl-redis: Add unit tests Package-Manager: portage-2.3.0 --- 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 7fe79dd26d6e..fe9fd03dae61 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 +}