} ereg("([a-z]+)-(.+)-([a-zA-Z]+)", $name, $regs); $type = $regs[1]; $build = $regs[2]; $platform = $regs[3]; if (ereg("(.*)\\_(.*)", $build, $regs)) { $build = $regs[1] . "." . $regs[2]; } if ($type == "comment") { updateRegComment($build, $platform, $smoke, "grenResults"); } if ($type == "bug") { updateBugs($build, $platform, $smoke, "grenResults"); } if ($type == "analysis") { updateAnalysisStatus($build, $platform, $smoke, "grenResults"); } } } if ($_GET['week'] == "") { $whereClause = " DATE_SUB(CURDATE(),INTERVAL " . $from . " DAY) <= started "; $arrData = getBranchData("grenResults", $whereClause); } elseif ($_GET['week'] == "prev") { $whereClause = " DATE_SUB(CURDATE(),INTERVAL " . $from . " DAY) <= started and DATE_SUB(CURDATE(),INTERVAL " . $to . " DAY)>= started"; $arrData = getBranchData("grenResults", $whereClause); } elseif ($_GET['week'] == "next") { $whereClause = " DATE_SUB(CURDATE(),INTERVAL " . $from . " DAY) <= started and DATE_SUB(CURDATE(),INTERVAL " . $to . " DAY)>=started"; $arrData = getBranchData("grenResults", $whereClause); } $releaseTables = array(); $releaseCountID = 0;
if (isset($_POST['Save'])) { foreach ($_POST as $name => $smoke) { if ($smoke == "Save") { continue; } ereg("([a-z]+)-([0-9]+)", $name, $regs); $type = $regs[1]; $build = $regs[2]; if ($type == "comment") { updateRegComment($build, "", $smoke, "smokeregResults"); } if ($type == "bug") { updateBugs($build, "", $smoke, "smokeregResults"); } if ($type == "analysis") { updateAnalysisStatus($build, "", $smoke, "smokeregResults"); } if ($type == "runstatus") { updateRunStatus($build, $smoke, "smokeregResults"); } } } $arrData = getDataForRegression("smokereg"); $releaseTables = array(); $releaseCountID = 0; if (is_array($arrData) && count($arrData) > 0) { $noPrev = ""; foreach ($arrData as $release_name => $release) { $releaseTables[releases][$release_name][buildTables] = array(); $buildCountID = 0; $smokeCount = 0;
} ereg("([a-z]+)-(.+)-([0-9a-zA-Z]+)", $name, $regs); $type = $regs[1]; $build = $regs[2]; $platform = $regs[3]; if (ereg("(.*)\\_(.*)", $build, $regs)) { $build = $regs[1] . "." . $regs[2]; } if ($type == "comment") { updateRegComment($build, $platform, $smoke, "privateResults"); } if ($type == "bug") { updateBugs($build, $platform, $smoke, "privateResults"); } if ($type == "analysis") { updateAnalysisStatus($build, $platform, $smoke, "privateResults"); } } } if ($_GET['week'] == "") { $whereClause = " DATE_SUB(CURDATE(),INTERVAL " . $from . " DAY) <= started "; } elseif ($_GET['week'] == "prev") { $whereClause = " DATE_SUB(CURDATE(),INTERVAL " . $from . " DAY) <= started and DATE_SUB(CURDATE(),INTERVAL " . $to . " DAY)>= started"; } elseif ($_GET['week'] == "next") { $whereClause = " DATE_SUB(CURDATE(),INTERVAL " . $from . " DAY) <= started and DATE_SUB(CURDATE(),INTERVAL " . $to . " DAY)>=started"; } $whereClause = $_GET[version] != "" ? " version='{$_GET[version]}'" : $whereClause; $arrData = getData($whereClause); $releaseTables = array(); $releaseCountID = 0; if (is_array($arrData) && count($arrData) > 0) {
if (isset($_POST['Save'])) { foreach ($_POST as $name => $smoke) { if ($smoke == "Save") { continue; } ereg("([a-z]+)-([0-9]+)", $name, $regs); $type = $regs[1]; $build = $regs[2]; if ($type == "comment") { updateRegComment($build, "", $smoke, "regressionResults"); } if ($type == "bug") { updateBugs($build, "", $smoke, "regressionResults"); } if ($type == "analysis") { updateAnalysisStatus($build, "", $smoke, "regressionResults"); } if ($type == "runstatus") { updateRunStatus($build, $smoke); } } } $arrData = getDataForRegression(); $releaseTables = array(); $releaseCountID = 0; if (is_array($arrData) && count($arrData) > 0) { $noPrev = ""; foreach ($arrData as $release_name => $release) { $releaseTables[releases][$release_name][buildTables] = array(); $buildCountID = 0; $smokeCount = 0;