summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Bickel <mabi@gentoo.org>2011-01-28 13:33:53 +0000
committerMatti Bickel <mabi@gentoo.org>2011-01-28 13:33:53 +0000
commit855595a7da0e6345bd5c68d7ddd6d3d583c653c4 (patch)
tree2283f186d02f32129ad6728dcb70517196505fd3 /eclass/php-ext-pecl-r2.eclass
parentThis doesn't really need so old vala version, 0.10 slot is enough. (diff)
downloadgentoo-2-855595a7da0e6345bd5c68d7ddd6d3d583c653c4.tar.gz
gentoo-2-855595a7da0e6345bd5c68d7ddd6d3d583c653c4.tar.bz2
gentoo-2-855595a7da0e6345bd5c68d7ddd6d3d583c653c4.zip
switch to slot dir before running tests in php-ext-pecl-r2_src_test
Diffstat (limited to 'eclass/php-ext-pecl-r2.eclass')
-rw-r--r--eclass/php-ext-pecl-r2.eclass9
1 files changed, 4 insertions, 5 deletions
diff --git a/eclass/php-ext-pecl-r2.eclass b/eclass/php-ext-pecl-r2.eclass
index c5091b747403..d899fb64f406 100644
--- a/eclass/php-ext-pecl-r2.eclass
+++ b/eclass/php-ext-pecl-r2.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-pecl-r2.eclass,v 1.3 2011/01/20 12:13:30 olemarkus Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-pecl-r2.eclass,v 1.4 2011/01/28 13:33:53 mabi Exp $
#
# Author: Tal Peer <coredumb@gentoo.org>
# Author: Luca Longinotti <chtekk@gentoo.org>
@@ -92,12 +92,11 @@ php-ext-pecl-r2_src_install() {
# @FUNCTION: php-ext-pecl-r2_src_test
# @DESCRIPTION:
# Takes care of running any tests delivered with the PECL package.
-# Testing is somewhat standardized across pecl extensions through phpize's
-# run-tests.php - unfortunatly there are some quirks we need to work around
+# Standard phpize generates a run-tests.php file that is executed in make test
+# We only need to force it to non-interactive mode
php-ext-pecl-r2_src_test() {
-
for slot in `php_get_slots`; do
+ php_init_slot_env ${slot}
NO_INTERACTION="yes" emake test || die "emake test failed for slot ${slot}"
done
-
}