derick Mon Oct 14 03:18:24 2002 EDT Modified files: /php4 run-tests.php Log: - Added the TEST_PHP_USER environment variable with which you can specify additional directories with tests to run. This is ideal for having your own test suite on your system. You can specify more directories by seperating them with a ",", for example: TEST_PHP_USER=/dat/dev/xdebug/tests,/dat/dev/srm/tests make test Index: php4/run-tests.php diff -u php4/run-tests.php:1.69 php4/run-tests.php:1.70 --- php4/run-tests.php:1.69 Sat Oct 12 15:29:56 2002 +++ php4/run-tests.php Mon Oct 14 03:18:23 2002 @@ -77,13 +77,19 @@ } // Check whether a detailed log is wanted. - if (getenv('TEST_PHP_DETAILED')) { define('DETAILED', getenv('TEST_PHP_DETAILED')); } else { define('DETAILED', 0); } +// Check whether user test dirs are requested. +if (getenv('TEST_PHP_USER')) { + $user_tests = explode (',', getenv('TEST_PHP_USER')); +} else { + $user_tests = NULL; +} + // Write test context information. echo " @@ -95,6 +101,11 @@ PHP_OS : " . PHP_OS . " INI actual : " . realpath(get_cfg_var('cfg_file_path')) . " More .INIs : " . str_replace("\n","", php_ini_scanned_files()) . " +Extra dirs : "; +foreach ($user_tests as $test_dir) { + echo "{$test_dir}\n "; +} +echo " ===================================================================== "; @@ -138,6 +149,10 @@ foreach ($test_dirs as $dir) { find_files("{$cwd}/{$dir}", ($dir == 'ext')); +} + +foreach ($user_tests as $dir) { + find_files("{$dir}", ($dir == 'ext')); } function find_files($dir,$is_ext_dir=FALSE,$ignore=FALSE)
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php