Skip to content

Commit 646b851

Browse files
committed
Implement support for tests loading all extensions
When running the tests, extensions are already loaded, or are requested via the `--EXTENSIONS--` section explicitly. Some tests, though, would benefit from loading and testing all available extension. We make that possible by adding support for the `*` wildcard.
1 parent b445641 commit 646b851

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Zend/tests/arginfo_zpp_mismatch.phpt

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Test that there is no arginfo/zpp mismatch
55
if (getenv('SKIP_ASAN')) die("skip Intermittently crashes lsan");
66
if (getenv('SKIP_MSAN')) die("skip msan misses interceptors for some functions");
77
?>
8+
--EXTENSIONS--
9+
*
810
--FILE--
911
<?php
1012

run-tests.php

+4
Original file line numberDiff line numberDiff line change
@@ -1813,6 +1813,7 @@ function run_test(string $php, $file, array $env): string
18131813
global $slow_min_ms;
18141814
global $preload, $file_cache;
18151815
global $num_repeats;
1816+
global $exts_to_test;
18161817
// Parallel testing
18171818
global $workerID;
18181819
global $show_progress;
@@ -2027,6 +2028,9 @@ function run_test(string $php, $file, array $env): string
20272028
$extensions = [];
20282029
if ($test->hasSection('EXTENSIONS')) {
20292030
$extensions = preg_split("/[\n\r]+/", trim($test->getSection('EXTENSIONS')));
2031+
if (in_array("*", $extensions, true)) {
2032+
$extensions = array_diff($exts_to_test, ["php8apache2_4", "php8phpdbg", "php8ts_debug"]);
2033+
}
20302034
}
20312035
if (is_array($IN_REDIRECT) && $IN_REDIRECT['EXTENSIONS'] != []) {
20322036
$extensions = array_merge($extensions, $IN_REDIRECT['EXTENSIONS']);

0 commit comments

Comments
 (0)