From aad4e95bf007df0931a5c890c75613e2c00fd5fc Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 1 Nov 2026 21:43:25 +0000 Subject: [PATCH] dev-lang/php: run tests in parallel The only failure I saw on some runs was: > Test disk_free_space and its alias diskfreespace() functions : basic functionality [ext/standard/tests/file/disk_free_space_basic.phpt] (warn: Test passed on retry attempt) but I'm not sure it's related. It sped up testing iterations by quite a bit. Signed-off-by: Sam James Part-of: https://codeberg.org/gentoo/gentoo/pulls/2285 Merges: https://codeberg.org/gentoo/gentoo/pulls/2285 --- dev-lang/php/php-8.2.35.ebuild | 3 ++- dev-lang/php/php-8.3.36.ebuild | 3 ++- dev-lang/php/php-8.4.27.ebuild | 3 ++- dev-lang/php/php-8.5.12.ebuild | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/dev-lang/php/php-8.2.35.ebuild b/dev-lang/php/php-8.2.35.ebuild index 361bce83ff980..dfdc7adf47dca 100644 --- a/dev-lang/php/php-8.2.35.ebuild +++ b/dev-lang/php/php-8.2.35.ebuild @@ -5,7 +5,7 @@ EAPI=8 WANT_AUTOMAKE="none" -inherit flag-o-matic multilib systemd autotools +inherit flag-o-matic multilib multiprocessing systemd autotools DESCRIPTION="The PHP language runtime engine" HOMEPAGE="https://www.php.net/" @@ -831,6 +831,7 @@ src_test() { SKIP_IO_CAPTURE_TESTS=1 SKIP_PERF_SENSITIVE=1 REPORT_EXIT_STATUS=1 \ "${TEST_PHP_EXECUTABLE}" -n \ "${WORKDIR}/sapis-build/cli/run-tests.php" --offline -n -q \ + -j$(get_makeopts_jobs) \ -d "session.save_path=${T}" \ -d "sendmail_path=echo >/dev/null" \ || die "tests failed" diff --git a/dev-lang/php/php-8.3.36.ebuild b/dev-lang/php/php-8.3.36.ebuild index da2c0d43187af..2fe7f6d96294a 100644 --- a/dev-lang/php/php-8.3.36.ebuild +++ b/dev-lang/php/php-8.3.36.ebuild @@ -5,7 +5,7 @@ EAPI=8 WANT_AUTOMAKE="none" POSTGRES_COMPAT=( {15..18} ) -inherit autotools flag-o-matic multilib postgres systemd +inherit autotools flag-o-matic multilib multiprocessing postgres systemd DESCRIPTION="The PHP language runtime engine" HOMEPAGE="https://www.php.net/" @@ -746,6 +746,7 @@ src_test() { SKIP_IO_CAPTURE_TESTS=1 SKIP_PERF_SENSITIVE=1 REPORT_EXIT_STATUS=1 \ "${TEST_PHP_EXECUTABLE}" -n \ "${WORKDIR}/sapis-build/cli/run-tests.php" --offline -n -q \ + -j$(get_makeopts_jobs) \ -d "session.save_path=${T}" \ || die "tests failed" } diff --git a/dev-lang/php/php-8.4.27.ebuild b/dev-lang/php/php-8.4.27.ebuild index cba38387086aa..b74d7d824728b 100644 --- a/dev-lang/php/php-8.4.27.ebuild +++ b/dev-lang/php/php-8.4.27.ebuild @@ -5,7 +5,7 @@ EAPI=8 WANT_AUTOMAKE="none" POSTGRES_COMPAT=( {15..18} ) -inherit flag-o-matic multilib postgres systemd toolchain-funcs +inherit flag-o-matic multilib multiprocessing postgres systemd toolchain-funcs DESCRIPTION="The PHP language runtime engine" HOMEPAGE="https://www.php.net/" @@ -787,6 +787,7 @@ src_test() { "${TEST_PHP_EXECUTABLE}" -n \ "${WORKDIR}/sapis-build/cli/run-tests.php" --offline -n -q --show-diff \ $(usex test-full "--set-timeout 300" "") \ + -j$(get_makeopts_jobs) \ -d "session.save_path=${T}" \ || die "tests failed" } diff --git a/dev-lang/php/php-8.5.12.ebuild b/dev-lang/php/php-8.5.12.ebuild index 61ffcbb7ecde4..6a898e4d125ac 100644 --- a/dev-lang/php/php-8.5.12.ebuild +++ b/dev-lang/php/php-8.5.12.ebuild @@ -5,7 +5,7 @@ EAPI=8 WANT_AUTOMAKE="none" POSTGRES_COMPAT=( {15..18} ) -inherit flag-o-matic multilib postgres systemd toolchain-funcs +inherit flag-o-matic multilib multiprocessing postgres systemd toolchain-funcs DESCRIPTION="The PHP language runtime engine" HOMEPAGE="https://www.php.net/" @@ -777,6 +777,7 @@ src_test() { SKIP_SLOW_TESTS=$(usex test-full 0 1) SKIP_IO_CAPTURE_TESTS=1 SKIP_PERF_SENSITIVE=1 REPORT_EXIT_STATUS=1 \ "${TEST_PHP_EXECUTABLE}" -n \ "${WORKDIR}/sapis-build/cli/run-tests.php" --offline -n -q --show-diff \ + -j$(get_makeopts_jobs) \ $(usex test-full "--set-timeout 300" "") \ -d "session.save_path=${T}" \ || die "tests failed"