forked from php/web-qa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildtest-process.php
38 lines (36 loc) · 1015 Bytes
/
buildtest-process.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
include("include/release-qa.php");
include("include/functions.php");
if (isset($_POST['php_test_data'])) {
if (strlen($_POST['php_test_data']) > 800000) {
die("can't handle input that large.");
}
if (isset($_GET['status'])) {
switch($_GET['status']) {
case 'failed':
$status = "failed";
break;
case 'success':
$status = "success";
break;
default:
$status = "unknown";
}
} else {
$status = "unknown";
}
if (isset($_GET['version'])) {
$version = $_GET['version'];
} else {
$version = "unknown";
}
if (in_array($version, $QA_RELEASES['reported'])) {
mail ("[email protected]", "Test results for $version [$status]", base64_decode($_POST['php_test_data']), "From: [email protected]");
}
// Aggregator (http://qa.php.net/reports/)
include 'reports/parserfunc.php';
$array = parse_phpmaketest($version, $status, base64_decode($_POST['php_test_data']));
insertToDb_phpmaketest($array, $QA_RELEASES);
}
?>
$Revision$