Skip to content

Commit 7eec57c

Browse files
authored
Test ARM64 JIT on Travis (#7157)
Run tests with tracing JIT, function JIT and tracing JIT under --repeat 2. As the overall build with three test runs only takes ~15m, I'm enabling this unconditionally, rather than just for nightly builds.
1 parent c492c90 commit 7eec57c

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ env:
6868

6969
jobs:
7070
include:
71-
- env: ENABLE_ZTS=1 ENABLE_DEBUG=1 SKIP_IO_CAPTURE_TESTS=1 ARM64=1
71+
- env: ENABLE_ZTS=1 ENABLE_DEBUG=1 ARM64=1
7272
arch: arm64
73-
- env: ENABLE_ZTS=1 ENABLE_DEBUG=1 SKIP_IO_CAPTURE_TESTS=1 S390X=1
73+
- env: ENABLE_ZTS=1 ENABLE_DEBUG=1 S390X=1
7474
arch: s390x
7575

7676
before_script:
@@ -87,9 +87,9 @@ before_script:
8787

8888
# Run PHPs run-tests.php
8989
script:
90-
# ARM64 CI reports nproc=32, which is excessive.
91-
- if [ -z "$ARM64" ]; then export JOBS=$(nproc); else export JOBS=16; fi
92-
- ./sapi/cli/php run-tests.php -P -d extension=`pwd`/modules/zend_test.so $(if [ $ENABLE_DEBUG == 0 ]; then echo "-d opcache.enable_cli=1 -d opcache.protect_memory=1 -d opcache.jit_buffer_size=16M -d zend_extension=`pwd`/modules/opcache.so"; fi) -g "FAIL,XFAIL,BORK,WARN,LEAK,SKIP" --offline --show-diff --show-slow 1000 --set-timeout 120 -j$JOBS
90+
- ./travis/test.sh -d opcache.jit_buffer_size=16M -d opcache.jit=tracing
91+
- if [[ "$ARM64" == 1 ]]; then ./travis/test.sh -d opcache.jit_buffer_size=16M -d opcache.jit=function; fi
92+
- if [[ "$ARM64" == 1 ]]; then ./travis/test.sh -d opcache.jit_buffer_size=16M -d opcache.jit=tracing --repeat 2; fi
9393
- sapi/cli/php -d extension_dir=`pwd`/modules -r 'dl("zend_test");'
9494

9595
after_success:

travis/test.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
set -ex
3+
4+
# ARM64 CI reports nproc=32, which is excessive.
5+
if [ -z "$ARM64" ]; then export JOBS=$(nproc); else export JOBS=16; fi
6+
7+
export SKIP_IO_CAPTURE_TESTS=1
8+
./sapi/cli/php run-tests.php -P \
9+
-g "FAIL,XFAIL,BORK,WARN,LEAK,SKIP" --offline --show-diff --show-slow 1000 \
10+
--set-timeout 120 -j$JOBS \
11+
-d extension=`pwd`/modules/zend_test.so \
12+
-d zend_extension=`pwd`/modules/opcache.so \
13+
-d opcache.enable_cli=1 \
14+
-d opcache.protect_memory=1 \
15+
"$@"

0 commit comments

Comments
 (0)