Browse Source

- Allow to specify php executable on commandline

PECL
Marcus Boerger 19 years ago
parent
commit
bbf7260cde
  1. 9
      run-tests.php

9
run-tests.php

@ -122,8 +122,10 @@ if (getenv('TEST_PHP_CGI_EXECUTABLE')) {
$environment['TEST_PHP_CGI_EXECUTABLE'] = $php_cgi;
}
if ($argc !=2 || ($argv[1] != '-h' && $argv[1] != '-help' && $argv != '--help'))
function verify_config()
{
global $php;
if (empty($php) || !file_exists($php)) {
error("environment variable TEST_PHP_EXECUTABLE must be set to specify PHP executable!");
}
@ -350,6 +352,10 @@ if (isset($argc) && $argc > 1) {
case '--no-clean':
$no_clean = true;
break;
case 'p':
$php = $argv[++$i];
putenv("TEST_PHP_EXECUTABLE=$php");
break;
case 'q':
putenv('NO_INTERACTION=1');
break;
@ -541,6 +547,7 @@ HELP;
}
}
verify_config();
write_information($html_output);
// Compile a list of all test files (*.phpt).

Loading…
Cancel
Save