From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 46AC013832E for ; Fri, 19 Aug 2016 14:23:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 14A07E0B02; Fri, 19 Aug 2016 14:23:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B46EBE0B02 for ; Fri, 19 Aug 2016 14:23:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 49656340754 for ; Fri, 19 Aug 2016 14:23:03 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B3DEE244C for ; Fri, 19 Aug 2016 14:23:00 +0000 (UTC) From: "Brian Evans" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Evans" Message-ID: <1471616564.924f908d22360a68681f3aa6f47c030efc418f93.grknight@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/pecl-redis/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-php/pecl-redis/pecl-redis-3.0.0.ebuild X-VCS-Directories: dev-php/pecl-redis/ X-VCS-Committer: grknight X-VCS-Committer-Name: Brian Evans X-VCS-Revision: 924f908d22360a68681f3aa6f47c030efc418f93 X-VCS-Branch: master Date: Fri, 19 Aug 2016 14:23:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: bf33f15d-f728-4e2c-b61d-8ad7c9391135 X-Archives-Hash: 5701deeae4612b33ae3e21f3e7759032 commit: 924f908d22360a68681f3aa6f47c030efc418f93 Author: Brian Evans gentoo org> AuthorDate: Fri Aug 19 14:22:44 2016 +0000 Commit: Brian Evans gentoo 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 +}