Date: Monday, December 16, 2019 @ 11:56:51
  Author: pierre
Revision: 371565

Run tests in parallel

Modified:
  php/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2019-12-16 08:42:26 UTC (rev 371564)
+++ PKGBUILD    2019-12-16 11:56:51 UTC (rev 371565)
@@ -24,7 +24,7 @@
 pkgrel=2
 arch=('x86_64')
 license=('PHP')
-url='https://secure.php.net/'
+url='https://www.php.net/'
 makedepends=('apache' 'aspell' 'c-client' 'db' 'enchant' 'gd' 'gmp' 'icu' 
'libsodium' 'libxslt' 'libzip' 'net-snmp'
              'postgresql-libs' 'sqlite' 'systemd' 'tidy' 'unixodbc' 'curl' 
'libtool' 'postfix' 'freetds' 'pcre2' 'libnsl'
              'oniguruma')
@@ -164,17 +164,19 @@
 }
 
 check() {
-       cd ${srcdir}/${pkgbase}-${pkgver}
+       cd ${srcdir}/build
 
        # Check if sendmail was configured correctly (FS#47600)
-       ${srcdir}/build/sapi/cli/php -n -r 'echo ini_get("sendmail_path");' | 
grep -q '/usr/bin/sendmail'
+       sapi/cli/php -n -r 'echo ini_get("sendmail_path");' | grep -q 
'/usr/bin/sendmail'
 
        export REPORT_EXIT_STATUS=1
        export NO_INTERACTION=1
        export SKIP_ONLINE_TESTS=1
        export SKIP_SLOW_TESTS=1
+       export TEST_PHP_ARGS="-j$(nproc)"
+       export TESTS='tests Zend'
 
-       ${srcdir}/build/sapi/cli/php -n run-tests.php -n -P {tests,Zend}
+       make test
 }
 
 package_php() {

Reply via email to