summaryrefslogtreecommitdiffstats
path: root/php-pecl-ip2location.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-09-03 14:04:07 +0200
committerRemi Collet <remi@php.net>2025-09-03 14:04:07 +0200
commit0318770a0d3cfe207e9ffb6ec852d652db536a9a (patch)
tree3e085c5bbddf1ef7f867e51dd2ba513b8689d40f /php-pecl-ip2location.spec
parent66c145f15fd8bab82630a7b7064acde411f0b099 (diff)
test build with lib 8.7.0HEADmaster
Diffstat (limited to 'php-pecl-ip2location.spec')
-rw-r--r--php-pecl-ip2location.spec12
1 files changed, 12 insertions, 0 deletions
diff --git a/php-pecl-ip2location.spec b/php-pecl-ip2location.spec
index 15402fe..7944c84 100644
--- a/php-pecl-ip2location.spec
+++ b/php-pecl-ip2location.spec
@@ -143,6 +143,18 @@ TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so" \
REPORT_EXIT_STATUS=1 \
%{__php} -n run-tests.php -q --show-diff
+if [ -f %{php_extdir}/%{pecl_name}.so ]; then
+ : upstream test suite with old build
+ # Only if same version
+ if %{__php} -n -d extension=%{pecl_name} -r 'exit(phpversion("%{pecl_name}")==="%{upstream_version}%{?upstream_prever}" ? 0 : 1);'
+ then
+ : upstream test suite for extension built with previous version
+ %{__php} --ri %{pecl_name}
+ TEST_PHP_ARGS="-n -d imagick.skip_version_check=1 -d extension=%{pecl_name}" \
+ %{__php} -n run-tests.php -q --show-diff
+ fi
+fi
+
%if %{with_zts}
: simple ZTS module load test
%{__ztsphp} --no-php-ini \