cvs: php4 / run-tests.php

From: Date: Sun, 01 Jun 2003 18:34:03 +0000
Subject: cvs: php4 / run-tests.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-21446@lists.php.net to get a copy of this message
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'));

« previous php.cvs (#21446) next »