Skip to content

Commit 073dcf6

Browse files
committed
Merge branch 'PHP-8.5'
* PHP-8.5: Add RUN_RESOURCE_HEAVY_TESTS env var
2 parents e4f727d + 07e29ac commit 073dcf6

File tree

27 files changed

+28
-6
lines changed

27 files changed

+28
-6
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ jobs:
166166
name: Test
167167
no_output_timeout: 30m
168168
command: |
169+
export RUN_RESOURCE_HEAVY_TESTS=1
169170
sapi/cli/php run-tests.php \
170171
-d opcache.enable_cli=1 \
171172
-d opcache.jit_buffer_size=64M \

.github/actions/freebsd/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ runs:
107107
export SKIP_IO_CAPTURE_TESTS=1
108108
export CI_NO_IPV6=1
109109
export STACK_LIMIT_DEFAULTS_CHECK=1
110+
export RUN_RESOURCE_HEAVY_TESTS=1
110111
sapi/cli/php run-tests.php \
111112
-P -q -j2 \
112113
-g FAIL,BORK,LEAK,XLEAK \

.github/actions/test-gentoo/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ runs:
2525
# Slow tests criteron is doubled because this runner isn't as fast as others
2626
export SKIP_IO_CAPTURE_TESTS=1
2727
export STACK_LIMIT_DEFAULTS_CHECK=1
28+
export RUN_RESOURCE_HEAVY_TESTS=1
2829
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
2930
-j$(nproc) \
3031
-g FAIL,BORK,LEAK,XLEAK \

.github/actions/test-libmysqlclient/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ runs:
99
export PDO_MYSQL_TEST_HOST=127.0.0.1
1010
export PDO_MYSQL_TEST_USER=root
1111
export PDO_MYSQL_TEST_PASS=root
12+
export RUN_RESOURCE_HEAVY_TESTS=1
1213
sapi/cli/php run-tests.php -P -q \
1314
-g FAIL,BORK,LEAK,XLEAK \
1415
--no-progress --offline --show-diff --show-slow 1000 --set-timeout 120 \

.github/actions/test-linux/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ runs:
4444
export PDO_ODBC_TEST_DSN="odbc:Driver={ODBC Driver 17 for SQL Server};Server=127.0.0.1;Database=pdo_odbc;uid=$ODBC_TEST_USER;pwd=$ODBC_TEST_PASS"
4545
export SKIP_IO_CAPTURE_TESTS=1
4646
export STACK_LIMIT_DEFAULTS_CHECK=1
47+
export RUN_RESOURCE_HEAVY_TESTS=1
4748
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
4849
${{ inputs.enableOpcache == 'true' && '-d opcache.enable_cli=1' || '' }} \
4950
-d opcache.jit=${{ inputs.jitType }} \

.github/actions/test-macos/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ runs:
1818
export SKIP_IO_CAPTURE_TESTS=1
1919
export CI_NO_IPV6=1
2020
export STACK_LIMIT_DEFAULTS_CHECK=1
21+
export RUN_RESOURCE_HEAVY_TESTS=1
2122
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
2223
${{ inputs.enableOpcache == 'true' && '-d opcache.enable_cli=1' || '' }} \
2324
-d opcache.jit=${{ inputs.jitType }} \

Zend/tests/bug55509.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Bug #55509 (segfault on x86_64 using more than 2G memory)
33
--SKIPIF--
44
<?php
5+
if (!getenv('RUN_RESOURCE_HEAVY_TESTS')) die('skip resource-heavy test');
56
if (PHP_INT_SIZE == 4) {
67
die('skip Not for 32-bits OS');
78
}

Zend/tests/bug74093.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Bug #74093 (Maximum execution time of n+2 seconds exceed not written in error_log)
33
--SKIPIF--
44
<?php
5+
if (!getenv('RUN_RESOURCE_HEAVY_TESTS')) die('skip resource-heavy test');
56
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
67
if (PHP_ZTS) die("skip only for no-zts build");
78
if (substr(PHP_OS, 0, 3) == 'WIN') die("skip not for Windows");

Zend/tests/gc/bug78010.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Bug #78010: Segmentation fault during GC
33
--SKIPIF--
44
<?php
5+
if (!getenv('RUN_RESOURCE_HEAVY_TESTS')) die('skip resource-heavy test');
56
if (getenv("SKIP_SLOW_TESTS")) die('skip slow test');
67
?>
78
--INI--

ext/bz2/tests/gh20620.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Bug GH-20620 (bzcompress with large source)
44
bz2
55
--SKIPIF--
66
<?php
7+
if (!getenv('RUN_RESOURCE_HEAVY_TESTS')) die('skip resource-heavy test');
78
if (PHP_INT_SIZE != 8) die('skip this test is for 64bit platforms only');
89
if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
910
?>

0 commit comments

Comments
 (0)