Skip to content
Snippets Groups Projects
Commit aa450388 authored by david_williams's avatar david_williams
Browse files

[106963] location of build and tests workspaces not obvioius (or changeable)

parent 6765c9e4
No related branches found
No related tags found
No related merge requests found
<html> <html>
<head> <head>
<?php <?php
$parts = explode("/", getcwd()); $parts = explode("/", getcwd());
$parts2 = explode("-", $parts[count($parts) - 1]); $parts2 = explode("-", $parts[count($parts) - 1]);
$buildName = $parts2[1]; $buildName = $parts2[1];
echo "<title>Test Console Output for $buildName </title>"; echo "<title>Test Console Output for $buildName </title>";
?> ?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="http://dev.eclipse.org/default_style.css" type="text/css"> <link rel="stylesheet" href="http://dev.eclipse.org/default_style.css" type="text/css">
...@@ -15,9 +15,9 @@ ...@@ -15,9 +15,9 @@
<p><b><font face="Verdana" size="+3">Test Console Output</font></b> </p> <p><b><font face="Verdana" size="+3">Test Console Output</font></b> </p>
<table border=0 cellspacing=5 cellpadding=2 width="100%" > <table border=0 cellspacing=5 cellpadding=2 width="100%" >
<tr> <tr>
<td align=LEFT valign=TOP colspan="3" bgcolor="#0080C0"><b><font color="#FFFFFF" face="Arial,Helvetica">Console <td align=LEFT valign=TOP colspan="3" bgcolor="#0080C0"><b><font color="#FFFFFF" face="Arial,Helvetica">Console
output from running JUnit plugin tests for output from running JUnit plugin tests for
<?php echo "$buildName"; ?> <?php echo "$buildName"; ?>
</font></b></td> </font></b></td>
</tr> </tr>
...@@ -25,31 +25,53 @@ ...@@ -25,31 +25,53 @@
<table border="0"> <table border="0">
<?php <?php
$hasNotes = false; $hasNotes = false;
$aDirectory = dir("testResults/consolelogs"); $aDirectory = dir("testResults/consolelogs");
$index = 0; $index = 0;
while ($anEntry = $aDirectory->read()) { while ($anEntry = $aDirectory->read()) {
if ($anEntry != "." && $anEntry != "..") { if ($anEntry != "." && $anEntry != "..") {
$entries[$index] = $anEntry; $entries[$index] = $anEntry;
$index++; $index++;
} }
} }
aDirectory.closedir();
aDirectory.closedir();
sort($entries);
sort($entries);
for ($i = 0; $i < $index; $i++) {
$anEntry = $entries[$i]; $indentLevel = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
$line = "<td>Component: <a href=\"testResults/consolelogs/$anEntry\">$anEntry</a></td>"; for ($i = 0; $i < $index; $i++) {
echo "<tr>"; $anEntry = $entries[$i];
echo "$line"; $logsize = filesize("testResults/consolelogs/$anEntry");
echo "</tr>";
$hasNotes = true;
} $level = 0;
if ($logsize > 20000) {
if (!$hasNotes) { $level = 2;
echo "<br>There are no test logs for this build."; }
} else if ($logsize > 2000) {
$level = 1;
}
if ($level == 0) {
$line = "<td>$indentLevel$indentLevel<a href=\"testResults/consolelogs/$anEntry\">$anEntry</a> ($logsize bytes)</td>";
}
else if ($level == 1) {
$line = "<td><em>$indentLevel<a href=\"testResults/consolelogs/$anEntry\">$anEntry</a> ($logsize bytes)</em></td>";
} else if ($level == 2) {
$line = "<td><strong><a href=\"testResults/consolelogs/$anEntry\">$anEntry</a> ($logsize bytes)</strong></td>";
}
echo "<tr>";
echo "$line";
echo "</tr>";
$hasNotes = true;
}
if (!$hasNotes) {
echo "<br>There are no test logs for this build.";
}
?> ?>
</table> </table>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment