[index] [test runs] [test cases] [failed tests]
query($sql); if (!$q) die("Last test run results not found"); $res = $q->fetch(); $run = $res[0]; } echo "

Run: $run

\n"; $sql = "SELECT build,commitid FROM results WHERE run=$run LIMIT 1"; $q = $db->query($sql); if (!$q) die("Last test run results could not be fetched"); $row = $q->fetch(); echo "Build: " . $row['build'] . "
\n"; echo 'Commit: ' . $row['commitid'] . "
\n"; $sql = "SELECT result, COUNT(result) FROM results WHERE run=$run GROUP BY result"; $q = $db->query($sql); if (!$q) die("Last test run results could not be fetched"); foreach ($q as $row) { echo $row[0] . ": " . $row[1] . "
\n"; } $sql = "SELECT test,result FROM results WHERE run=$run ORDER BY test"; $q = $db->query($sql); if (!$q) die("Last test run results could not be fetched"); echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; $alt = false; foreach ($q as $row) { $test = $row['test']; if ($alt) echo ''; else echo ''; $alt = !$alt; echo '"; $result = $row['result']; if ($result == "PASS") echo '\n"; echo ""; echo "\n"; } echo "\n"; echo "
testresultlogfiles
' . $test . "'; elseif ($result == "FAIL") echo ''; else echo ""; echo $result . ""; if ($result == "FAIL") { $sql = "SELECT type FROM logs WHERE run=$run AND test='$test' ORDER BY type"; $q2 = $db->query($sql); if ($q2) { foreach ($q2 as $logrow) { $type = $logrow['type']; echo "[$type]"; } } } echo "
\n"; ?>