1 |
mabi 11/01/28 13:33:53 |
2 |
|
3 |
Modified: php-ext-pecl-r2.eclass |
4 |
Log: |
5 |
switch to slot dir before running tests in php-ext-pecl-r2_src_test |
6 |
|
7 |
Revision Changes Path |
8 |
1.4 eclass/php-ext-pecl-r2.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/php-ext-pecl-r2.eclass?rev=1.4&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/php-ext-pecl-r2.eclass?rev=1.4&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/php-ext-pecl-r2.eclass?r1=1.3&r2=1.4 |
13 |
|
14 |
Index: php-ext-pecl-r2.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/php-ext-pecl-r2.eclass,v |
17 |
retrieving revision 1.3 |
18 |
retrieving revision 1.4 |
19 |
diff -u -r1.3 -r1.4 |
20 |
--- php-ext-pecl-r2.eclass 20 Jan 2011 12:13:30 -0000 1.3 |
21 |
+++ php-ext-pecl-r2.eclass 28 Jan 2011 13:33:53 -0000 1.4 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2007 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-pecl-r2.eclass,v 1.3 2011/01/20 12:13:30 olemarkus Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-pecl-r2.eclass,v 1.4 2011/01/28 13:33:53 mabi Exp $ |
27 |
# |
28 |
# Author: Tal Peer <coredumb@g.o> |
29 |
# Author: Luca Longinotti <chtekk@g.o> |
30 |
@@ -92,12 +92,11 @@ |
31 |
# @FUNCTION: php-ext-pecl-r2_src_test |
32 |
# @DESCRIPTION: |
33 |
# Takes care of running any tests delivered with the PECL package. |
34 |
-# Testing is somewhat standardized across pecl extensions through phpize's |
35 |
-# run-tests.php - unfortunatly there are some quirks we need to work around |
36 |
+# Standard phpize generates a run-tests.php file that is executed in make test |
37 |
+# We only need to force it to non-interactive mode |
38 |
php-ext-pecl-r2_src_test() { |
39 |
- |
40 |
for slot in `php_get_slots`; do |
41 |
+ php_init_slot_env ${slot} |
42 |
NO_INTERACTION="yes" emake test || die "emake test failed for slot ${slot}" |
43 |
done |
44 |
- |
45 |
} |