summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-09-15 10:02:41 +0200
committerRemi Collet <remi@php.net>2023-09-15 10:02:41 +0200
commit61eafc58dd5ed14c6050aa5c973727469793dfb7 (patch)
treefaa5b59896817291b7a22b3648eb8bd81cfd37c1
parentf8ed78aac762115ff2e0a9501095f344f815b314 (diff)
parallel tests
-rw-r--r--php-pecl-datadog-trace.spec4
1 files changed, 3 insertions, 1 deletions
diff --git a/php-pecl-datadog-trace.spec b/php-pecl-datadog-trace.spec
index 3cd7cc9..73658fa 100644
--- a/php-pecl-datadog-trace.spec
+++ b/php-pecl-datadog-trace.spec
@@ -228,7 +228,9 @@ rm tests/ext/sandbox/fatal_errors_ignored_in_tracing_closure.phpt
# DEP for ext dependencies, MOD for ext used in tests
DEP=""
MOD="-n -d ddtrace.request_init_hook="
+OPT="-q --show-diff"
%if "%{php_version}" > "8.0"
+OPT="$OPT %{?_smp_mflags}"
[ -f %{php_extdir}/curl.so ] && DEP="$DEP -d extension=curl.so"
%else
[ -f %{php_extdir}/curl.so ] && MOD="$MOD -d extension=curl.so"
@@ -246,7 +248,7 @@ MOD="-n -d ddtrace.request_init_hook="
TEST_PHP_EXECUTABLE=%{_bindir}/php \
TEST_PHP_ARGS="$DEP $MOD -d extension=$PWD/../NTS/modules/%{pecl_name}.so" \
REPORT_EXIT_STATUS=1 \
-%{_bindir}/php -n run-tests.php -q --show-diff
+%{_bindir}/php -n run-tests.php $OPT
%endif
%if %{with_zts}