From 6f89da78d0eefd211402af0fe7f593de0fd85c4f Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Sun, 16 May 2021 16:55:28 +0200 Subject: [PATCH] Adjust run-tests.php to dynamic extension loading PR #6787 changed the behavior of the `--EXTENSIONS--` section, so that not yet loaded extensions are dynamically loaded if possible. However, when no tests are specified for the runner, only tests for already loaded extensions are run, what defeats the purpose of the improvement of the `--EXTENSIONS--` behavior. We cater to that by detecting loadable extensions, and also run their tests. --- run-tests.php | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/run-tests.php b/run-tests.php index e046857c66e..64d0980e686 100755 --- a/run-tests.php +++ b/run-tests.php @@ -860,9 +860,22 @@ More .INIs : " , (function_exists(\'php_ini_scanned_files\') ? str_replace("\n" } @unlink($info_file); - // load list of enabled extensions - save_text($info_file, - ''); + // load list of enabled and loadable extensions + save_text($info_file, <<<'PHP' + + PHP); $exts_to_test = explode(',', `$php $pass_options $info_params $no_file_cache "$info_file"`); // check for extensions that need special handling and regenerate $info_params_ex = [