summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorMagnus M��tt� <magnus@php.net>2005-03-09 04:23:02 (GMT)
committerMagnus M��tt� <magnus@php.net>2005-03-09 04:23:02 (GMT)
commit27c43d599128c16cd9e8c9075b941527458f8bf3 (patch)
treefb741af2a742bb52c07ed2b941ba5e836a7e7efc /run-tests.php
parentd49ecd51c1b445b2831024e6e3b4df780ae3e5a9 (diff)
downloadphp-27c43d599128c16cd9e8c9075b941527458f8bf3.tar.gz
Since in_array is case sensitive we need to convert the names to lowercase
otherwise it won't run tests for extensions where the case of the name differ from the extension name.
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/run-tests.php b/run-tests.php
index 2d9a35e..80b7271 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -343,6 +343,11 @@ foreach($optionals as $dir) {
}
}
+// Convert extension names to lowercase
+foreach ($exts_to_test as $key => $val) {
+ $exts_to_test[$key] = strtolower($val);
+}
+
foreach ($test_dirs as $dir) {
find_files("{$cwd}/{$dir}", ($dir == 'ext'));
}
@@ -358,7 +363,7 @@ function find_files($dir,$is_ext_dir=FALSE,$ignore=FALSE)
$o = opendir($dir) or error("cannot open directory: $dir");
while (($name = readdir($o)) !== FALSE) {
if (is_dir("{$dir}/{$name}") && !in_array($name, array('.', '..', 'CVS'))) {
- $skip_ext = ($is_ext_dir && !in_array($name, $exts_to_test));
+ $skip_ext = ($is_ext_dir && !in_array(strtolower($name), $exts_to_test));
if ($skip_ext) {
$exts_skipped++;
}