projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3545c42
)
dev-php/pecl-redis: Add unit tests
author
Brian Evans
<grknight@gentoo.org>
Fri, 19 Aug 2016 14:22:44 +0000
(10:22 -0400)
committer
Brian Evans
<grknight@gentoo.org>
Fri, 19 Aug 2016 14:22:44 +0000
(10:22 -0400)
Package-Manager: portage-2.3.0
dev-php/pecl-redis/pecl-redis-3.0.0.ebuild
patch
|
blob
|
history
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 7fe79dd26d6e784da0263479f61204cd72b4eaec..fe9fd03dae61f632ee42607f58424784db92ebd1 100644
(file)
--- 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
+}