Exemple #1
0
} else {
    $to = $_GET[to];
}
// login user if required
$arr = loginUser($_POST);
$arr = logoutUser($_POST, $arr);
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;
Exemple #2
0
    }
}
if (isset($_POST['Save'])) {
    foreach ($_POST as $name => $smoke) {
        if ($smoke == "Save") {
            continue;
        }
        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);
Exemple #3
0
} else {
    $to = $_GET[to];
}
// login user if required
$arr = loginUser($_POST);
$arr = logoutUser($_POST, $arr);
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;