helly           Sun Jun  1 14:34:03 2003 EDT

  Modified files:              
    /php4       run-tests.php 
  Log:
  Allow optional directories
  
Index: php4/run-tests.php
diff -u php4/run-tests.php:1.164 php4/run-tests.php:1.165
--- php4/run-tests.php:1.164    Sat May 31 10:10:27 2003
+++ php4/run-tests.php  Sun Jun  1 14:34:03 2003
@@ -313,7 +313,13 @@
 $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'));



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to