diff options
author | Brian Evans <grknight@gentoo.org> | 2016-08-19 10:22:44 -0400 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2016-08-19 10:22:44 -0400 |
commit | 924f908d22360a68681f3aa6f47c030efc418f93 (patch) | |
tree | 32a46daa033ec31eb33f4999382ec9d434075fbd /dev-php | |
parent | base/package.use.stable.mask: use.stable.mask for not needing to stabilize en... (diff) | |
download | gentoo-924f908d22360a68681f3aa6f47c030efc418f93.tar.gz gentoo-924f908d22360a68681f3aa6f47c030efc418f93.tar.bz2 gentoo-924f908d22360a68681f3aa6f47c030efc418f93.zip |
dev-php/pecl-redis: Add unit tests
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-php')
-rw-r--r-- | dev-php/pecl-redis/pecl-redis-3.0.0.ebuild | 9 |
1 files changed, 9 insertions, 0 deletions
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 +} |