diff options
author | Remi Collet <remi@remirepo.net> | 2022-07-29 07:41:08 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2022-07-29 07:41:08 +0200 |
commit | 4608bd84352ed34ff31d4e1b06a9347b95296604 (patch) | |
tree | 609f608e13860332ee2a6dd72f832e9020d99da5 | |
parent | ae0ac99139c24b4c54cf80040b94ed97b814d7e5 (diff) |
allow to build without tests
-rw-r--r-- | php-pecl-datadog-trace.spec | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/php-pecl-datadog-trace.spec b/php-pecl-datadog-trace.spec index 31e97bd..87144d5 100644 --- a/php-pecl-datadog-trace.spec +++ b/php-pecl-datadog-trace.spec @@ -20,9 +20,10 @@ %global pecl_name ddtrace %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} -%global with_tests 0%{!?_without_tests:1} %global ini_name 40-%{pecl_name}.ini +%bcond_without tests + Summary: APM and distributed tracing for PHP Name: %{?scl_prefix}php-pecl-datadog-trace Version: 0.76.2 @@ -195,11 +196,13 @@ cd NTS --define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \ --modules | grep -i '^%{pecl_name}$' +%if %{with tests} : Upstream test suite for NTS extension TEST_PHP_EXECUTABLE=%{_bindir}/php \ TEST_PHP_ARGS="$DEP $MOD -d extension=$PWD/modules/%{pecl_name}.so" \ REPORT_EXIT_STATUS=1 \ %{_bindir}/php -n run-tests.php -q --show-diff +%endif %if %{with_zts} cd ../ZTS |