} if (is_array($releaseTables[releases])) { krsort($releaseTables[releases], SORT_NUMERIC); } //////////////////////////////// Regression ///////////////////////////////// $arrDataReg = getBranchDataReg("grenregResults"); $releaseTablesReg = array(); $relCountID = 50; if (is_array($arrDataReg) && count($arrDataReg) > 0) { foreach ($arrDataReg as $name => $rel) { $releaseTablesReg[releases][$name][buildTables] = array(); $buildCountID = 0; $regCount = 0; krsort($rel[builds], SORT_NUMERIC); foreach ($rel[builds] as $buildID => $build) { $releaseTablesReg[releases][$name][buildTables][$buildID] = createGrenRegBuildTable($build, $buildID, $arr[1]); $buildCountID++; $regCount++; } $releaseTablesReg[releases][$name][releaseTable] = createReleaseTable($rel, $name, $relCountID, count($rel[builds]), $regCount); $buildCountID = 0; $releaseTablesReg[releases][$name][countID] = $relCountID; $relCountID++; } krsort($releaseTablesReg[releases], SORT_NUMERIC); } ///////////////////////////////////////////////////////////////////////////// $smarty = new TLSmarty(); $smarty->assign('releaseTables', $releaseTables); $smarty->assign('releaseTablesReg', $releaseTablesReg); $smarty->assign('releaseCount', count($arrData));
$buildDataGrenReg = createDataForGrenRegBuild($_GET['buildID']); writeRegBuildCasesToFile($buildDataGrenReg, $_GET['buildID'], "grenreg"); $arrDataGrenReg = getDataForGrenRegBuild($_GET['buildID']); // get result for Alcatel build $buildDataOAWGrenReg = createDataForGrenRegBuild($_GET['buildID'] . "_OAW"); if (is_array($buildDataOAWGrenReg)) { writeRegBuildCasesToFile($buildDataOAWGrenReg, $_GET['buildID'] . "_OAW", "grenreg"); } $arrDataOAWGrenReg = getDataForGrenRegBuild($_GET['buildID'] . "_OAW"); if (!is_array($arrDataGrenReg)) { $errStrGrenReg = "NO GRENACHE REGRESSION RUNS FOUND FOR BUILD '" . $_GET['buildID'] . "'!"; } else { $buildTableGrenReg = createGrenRegBuildTable($arrDataGrenReg, $_GET['buildID'], $arr[1]); } if (is_array($arrDataOAWGrenReg)) { $buildTableOAWGrenReg = createGrenRegBuildTable($arrDataOAWGrenReg, $_GET['buildID'] . "_OAW", $arr[1], 1); } $tableHeaderGrenReg = "<tr>\r\n <th style=\"width: 6%\">Build</th>\r\n <th style=\"width: 6%\">Type</th>\r\n <th style=\"width: 3%\">Version</th>\r\n <th style=\"width: 3%\">Started</th>\r\n <th style=\"width: 23%\">Total-Pass-Fail</th>\r\n <th style=\"width: 3%\">RunStatus</th>\r\n <th style=\"width: 3%\">Analysis</th>\r\n <th style=\"width: 15%\">Chart</th>\r\n <th style=\"width: 35%\">Comments</th>\r\n <th style=\"width: 3%\">Bugs</th>\r\n\r\n </tr>\r\n <tr><td colspan=\"{\$columnCountGrenReg}\"></td></tr>\r\n <tr><td colspan=\"{\$columnCountGrenReg}\"></td></tr>\r\n <tr><td colspan=\"{\$columnCountGrenReg}\"></td></tr>"; } } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// $smarty = new TLSmarty(); $smarty->assign('valid_user', $arr[0]); $smarty->assign('none', $arr[1]); $smarty->assign('userString', $arr[2]); $smarty->assign('buildID', $_GET['buildID']); $smarty->assign('submitPHP', "search.php?type=" . $searchType . "&buildID=" . $_GET['buildID']); $smarty->assign('searchPHP', "search.php"); $smarty->assign('searchType', $searchType); // Smoke values $smarty->assign('buildTable', $buildTable);