This is an identical duplication of the src_test phase function from the
inherited php-source-ext-r3, as such not needed.
pecl-brotli and pecl-mongodb invokes this directly so rather than
removing it completely (also for the sake of out-of-tree users) mark
this as DEPRECATED for now, invoke the php-source-ext-r3 version instead
(which also correctly sets local slot no leaking variables into global
scope).
Signed-off-by: Jaco Kroon <jkro…@gentoo.org>
---
eclass/php-ext-pecl-r3.eclass | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/eclass/php-ext-pecl-r3.eclass b/eclass/php-ext-pecl-r3.eclass
index 11ae34429fbb..8b5b4b10206a 100644
--- a/eclass/php-ext-pecl-r3.eclass
+++ b/eclass/php-ext-pecl-r3.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: php-ext-pecl-r3.eclass
@@ -83,17 +83,15 @@ php-ext-pecl-r3_src_install() {
# @FUNCTION: php-ext-pecl-r3_src_test
+# @DEPRECATED: php-ext-source-r3_src_test directly.
# @DESCRIPTION:
# Run tests delivered with the PECL package. Phpize will have generated
# a run-tests.php file to be executed by `make test`. We only need to
# force the test suite to run in non-interactive mode.
php-ext-pecl-r3_src_test() {
- for slot in $(php_get_slots); do
- php_init_slot_env "${slot}"
- NO_INTERACTION="yes" emake test
- done
+ php-ext-source-r3_src_test
}
fi
-EXPORT_FUNCTIONS src_install src_test
+EXPORT_FUNCTIONS src_install
--
2.55.0