diff options
author | foobar <sniper@php.net> | 2003-03-17 12:24:09 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2003-03-17 12:24:09 +0000 |
commit | 908a942a38e7e0a9bb728c769b2b7108e4dd1799 (patch) | |
tree | 00dab8c1f384e94fb55ddfea273f6fa0f35c0ee6 /run-tests.php | |
parent | 3a26859829fbcb4c1f0f8a426e65bd140520940d (diff) | |
download | php-git-908a942a38e7e0a9bb728c769b2b7108e4dd1799.tar.gz |
added the version info to be send as-is to buildtest-process
Diffstat (limited to 'run-tests.php')
-rwxr-xr-x | run-tests.php | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/run-tests.php b/run-tests.php index a495452be6..d768766c4a 100755 --- a/run-tests.php +++ b/run-tests.php @@ -210,7 +210,7 @@ if (isset($argc) && $argc > 1) { $testfile = realpath($argv[$i]); if (is_dir($testfile)) { find_files($testfile); - } else if(preg_match("/\.phpt$/", $testfile)) { + } else if (preg_match("/\.phpt$/", $testfile)) { $test_files[] = $testfile; } } @@ -230,7 +230,7 @@ if (isset($argc) && $argc > 1) { compute_summary(); echo get_summary(false); } - if(getenv('REPORT_EXIT_STATUS') == 1 and ereg('FAILED( |$)', implode(' ', $test_results))) { + if (getenv('REPORT_EXIT_STATUS') == 1 and ereg('FAILED( |$)', implode(' ', $test_results))) { exit(1); } exit(0); @@ -391,7 +391,7 @@ if (!getenv('NO_INTERACTION')) { $cc_status=0; foreach($flags AS $flag) { system(getenv('CC')." $flag >/dev/null 2>&1", $cc_status); - if($cc_status == 0) { + if ($cc_status == 0) { $compiler = shell_exec(getenv('CC')." $flag 2>&1"); break; } @@ -419,8 +419,10 @@ if (!getenv('NO_INTERACTION')) { fwrite($fp, $failed_tests_data); fclose($fp); - if (!$just_save_results) + if (!$just_save_results) { echo "\nThe test script was unable to automatically send the report to PHP's QA Team\n"; + } + echo "Please send ".$output_file." to ".PHP_QA_EMAIL." manually, thank you.\n"; } else { fwrite($fp, "\nThank you for helping to make PHP better.\n"); @@ -429,7 +431,7 @@ if (!getenv('NO_INTERACTION')) { } } -if(getenv('REPORT_EXIT_STATUS') == 1 and $sum_results['FAILED']) { +if (getenv('REPORT_EXIT_STATUS') == 1 and $sum_results['FAILED']) { exit(1); } @@ -450,8 +452,10 @@ function mail_qa_team($data, $compression, $status = FALSE) return FALSE; } + $php_version = urlencode(phpversion()); + echo "\nPosting to {$url_bits['host']} {$url_bits['path']}\n"; - fwrite($fs, "POST ".$url_bits['path']."?status=$status HTTP/1.1\r\n"); + fwrite($fs, "POST ".$url_bits['path']."?status=$status&version=$php_version HTTP/1.1\r\n"); fwrite($fs, "Host: ".$url_bits['host']."\r\n"); fwrite($fs, "User-Agent: QA Browser 0.1\r\n"); fwrite($fs, "Content-Type: application/x-www-form-urlencoded\r\n"); |