summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-06-01 18:34:03 (GMT)
committerMarcus Boerger <helly@php.net>2003-06-01 18:34:03 (GMT)
commit070803a482e3da4c1b1cf86bbe056373b37556c0 (patch)
tree1a4fae86eedb15824e03df3c72134a650124c861 /run-tests.php
parenta023c1034b16f017e8e8cdbdeda48fd360fcdb53 (diff)
downloadphp-070803a482e3da4c1b1cf86bbe056373b37556c0.tar.gz
Allow optional directories
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/run-tests.php b/run-tests.php
index 1ed7898..e371300 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -313,7 +313,13 @@ $exts_tested = count($exts_to_test);
$exts_skipped = 0;
$ignored_by_ext = 0;
sort($exts_to_test);
-$test_dirs = array('tests', 'pear', 'ext');
+$test_dirs = array('tests', 'ext');
+$optionals = array('pear', 'Zend', 'ZendEngine2');
+foreach($optionals as $dir) {
+ if (@filetype($dir) == 'dir') {
+ $test_dirs[] = $dir;
+ }
+}
foreach ($test_dirs as $dir) {
find_files("{$cwd}/{$dir}", ($dir == 'ext'));