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

build wtp jee product

parent f834605a
No related branches found
No related tags found
No related merge requests found
Showing
with 1015 additions and 0 deletions
releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/pending1.gif

958 B

<?php
function parse_testResults($filename)
{
$junitFailures = 0;
if (is_file($filename)) {
$handle = @fopen($filename, "r");
if ($handle)
{
$size = filesize($filename);
$content = fread($handle, $size);
fclose($handle);
$junitStart = strpos($content, "Errors &amp; Failures");
$junitEnd = strpos($content, "</table>", $junitStart);
$junitInfo = substr($content, $junitStart, $junitEnd - $junitStart);
$start = strpos($junitInfo, "<td><b><font color=\"#ff0000\">");
while ($start !== false)
{
$start += 29;
$stop = strpos($junitInfo, "</font></b></td>", $start);
if ($stop !== false)
{
$result = substr($junitInfo, $start, $stop - $start);
if (is_numeric($result))
{
$junitFailures += $result;
}
else if (strcmp($result, "DNF") == 0)
{
$junitFailures++;
}
}
$start = strpos($junitInfo, "<td><b><font color=\"#ff0000\">", $stop);
}
$results = array($junitFailures);
return $results;
}
}
}
?>
<html>
<head>
<?php
$parts = explode("/", getcwd());
$parts2 = explode("-", $parts[count($parts) - 1]);
$buildName = $parts2[1];
echo "<title>Compile Logs: Code Bundles for $buildName</title>";
?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
.bold, .bold TD, .bold TH, .bold TR
{
font-weight:bold;
}
.numeric, .numeric TD
{
text-align:right;
padding-right:2%;
}
.normaltable, .normaltable TD, .normaltable TH
{
font-family:Bitstream Vera Sans Mono, monospace;
font-size:0.9em;
color:Black;
background-color:White;
}
.errorltable, .errortable TD, .errortable TH
{
font-family:Bitstream Vera Sans Mono, monospace;
font-size:0.9em;
color:Black;
background-color:Red;
font-weight:bold;
}
.warningtable, .warningtable TD, .warningtable TH
{
font-family:Bitstream Vera Sans Mono, monospace;
font-size:0.9em;
color:Black;
background-color:khaki;
}
.extraWarningTable, .extraWarningTable TD, .extraWarningTable TH
{
font-family:Bitstream Vera Sans Mono, monospace;
font-size:0.9em;
color:Black;
background-color:Yellow;
}
</style>
</head>
<body>
<?php
echo "<h1>Compile Logs: Code Bundles for $buildName</h1>";
?>
<table id=tabledata align = "center" width="75%" border="1">
<tr>
<td class="bold" align="center">Compile Logs</td>
<td class="bold" align="center">Compile Errors</td>
<td class="bold" align="center">Compiler Warnings</td>
<td class="bold" align="center">Access Violations</td>
<td class="bold" align="center">Access Warnings</td>
</tr>
%compilelogs%
</table>
</body>
</html>
<?xml version="1.0" encoding="UTF-8"?>
<site>
<description> The update site contains the enabling features. </description>
<category-def
name="Enabling Features"
label="Enabling Features">
<description> This category contains features used by several
projects that enable some functionality, but which by
themselves are not very interesting. </description>
</category-def>
</site>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<site
pack200="true"
mirrorsURL="http://www.eclipse.org/downloads/download.php?file=/webtools/testUpdates/site.xml&amp;format=xml"
digestURL="http://download.eclipse.org/webtools/testUpdates/">
<description
url="http://download.eclipse.org/webtools/declaredUpdates/index.html"> The update site contains the features of the of Eclipse Web
Tools Project (WTP) </description>
<feature
url="features/org.eclipse.wst_@org.eclipse.wst@.jar"
id="org.eclipse.wst"
version="@org.eclipse.wst@">
<category
name="Web Tools Platform (WTP)"/>
</feature>
<feature
url="features/org.eclipse.wst.sdk_@org.eclipse.wst.sdk@.jar"
id="org.eclipse.wst.sdk"
version="@org.eclipse.wst.sdk@">
<category
name="Web Tools Platform (WTP)"/>
</feature>
<feature
url="features/org.eclipse.jst_@org.eclipse.jst@.jar"
id="org.eclipse.jst"
version="@org.eclipse.jst@">
<category
name="Web Tools Platform (WTP)"/>
</feature>
<feature
url="features/org.eclipse.jst.sdk_@org.eclipse.jst.sdk@.jar"
id="org.eclipse.jst.sdk"
version="@org.eclipse.jst.sdk@">
<category
name="Web Tools Platform (WTP)"/>
</feature>
<feature
url="features/org.eclipse.jpt.feature_@org.eclipse.jpt.feature@.jar"
id="org.eclipse.jpt.feature"
version="@org.eclipse.jpt.feature@">
<category
name="Web Tools Platform (WTP)"/>
</feature>
<feature
url="features/org.eclipse.jpt_sdk.feature_@org.eclipse.jpt_sdk.feature@.jar"
id="org.eclipse.jpt_sdk.feature"
version="@org.eclipse.jpt_sdk.feature@">
<category
name="Web Tools Platform (WTP)"/>
</feature>
<category-def
name="Web Tools Platform (WTP)"
label="Web Tools Platform (WTP)">
<description> This category contains the features of the Eclipse
Web Tools Project (WTP). </description>
</category-def>
</site>
\ No newline at end of file
<html>
<head>
<?php
$parts = explode("/", getcwd());
$parts2 = explode("-", $parts[count($parts) - 1]);
$buildName = $parts2[1];
echo "<title>Compile Logs: Test Bundles for $buildName</title>";
?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
.bold, .bold TD, .bold TH, .bold TR
{
font-weight:bold;
}
.numeric, .numeric TD
{
text-align:right;
padding-right:2em;
}
.normaltable, .normaltable TD, .normaltable TH
{
font-family:Bitstream Vera Sans Mono, monospace;
font-size:0.9em;
color:Black;
background-color:White;
}
.errorltable, .errortable TD, .errortable TH
{
font-family:Bitstream Vera Sans Mono, monospace;
font-size:0.9em;
color:Black;
background-color:Red;
font-weight:Bold;
}
.warningtable, .warningtable TD, .warningtable TH
{
font-family:Bitstream Vera Sans Mono, monospace;
font-size:0.9em;
color:Black;
background-color:khaki;
}
.extraWarningTable, .extraWarningTable TD, .extraWarningTable TH
{
font-family:Bitstream Vera Sans Mono, monospace;
font-size:0.9em;
color:Black;
background-color:Yellow;
}
</style>
</head>
<body>
<?php
echo "<h1>Compile Logs: Test Bundles for $buildName</h1>";
?>
<table id=tabledata align = "center" width="75%" border="1">
<tr>
<td class="bold" align="center">Compile Logs</td>
<td class="bold" align="center">Compile Errors</td>
<td class="bold" align="center">Compiler Warnings</td>
<td class="bold" align="center">Access Violations</td>
<td class="bold" align="center">Access Warnings</td>
</tr>
%compilelogs%
</table>
</body>
</html>
<html>
<head>
<?php
$parts = explode("/", getcwd());
$parts2 = explode("-", $parts[count($parts) - 1]);
$buildName = $parts2[1];
echo "<title>Test Results for $buildName </title>";
?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
.bold, .bold TD, .bold TH, .bold TR
{
font-weight:bold;
}
.numeric, .numeric TD
{
text-align:right;
padding-right:2em;
}
.normaltable, .normaltable TD, .normaltable TH
{
font-family:Bitstream Vera Sans Mono, monospace;
font-size:0.9em;
color:Black;
background-color:White;
}
.errorltable, .errortable TD, .errortable TH
{
font-family:Bitstream Vera Sans Mono, monospace;
font-size:0.9em;
color:Black;
background-color:Red;
font-weight:Bold;
}
.warningtable, .warningtable TD, .warningtable TH
{
font-family:Bitstream Vera Sans Mono, monospace;
font-size:0.9em;
color:Black;
background-color:khaki;
}
.extraWarningTable, .extraWarningTable TD, .extraWarningTable TH
{
font-family:Bitstream Vera Sans Mono, monospace;
font-size:0.9em;
color:Black;
background-color:Yellow;
}
</style>
</head>
<body>
<p><b><font face="Verdana" size="+3">Test Results</font></b> </p>
<table border=0 cellspacing=5 cellpadding=2 width="100%" >
<tr>
<td align=LEFT valign=TOP colspan="3" bgcolor="#0080C0"><b><font color="#FFFFFF" face="Arial,Helvetica">
Unit Test Results for <?php echo "$buildName"; ?> on Various Platforms and JRE</font></b></td>
</tr>
</table>
<?php
if (file_exists("testResults"))
{
$dir = dir("testResults");
while ($anEntry = $dir->read())
{
if ($anEntry != "." && $anEntry != ".." && $anEntry != "consolelogs" && $anEntry != "html" && $anEntry != "xml")
{
$link = "testResults/".$anEntry."/results/index.php";
echo "<p><a href=\"$link\">$anEntry</a></p>";
}
}
}
?>
<table border=0 cellspacing=5 cellpadding=2 width="100%" >
<tr>
<td align=LEFT valign=TOP colspan="3" bgcolor="#0080C0"><b><font color="#FFFFFF" face="Arial,Helvetica">Unit
Test Results for <?php echo "$buildName"; ?> </font></b></td>
</tr>
</table>
<table id=tableunittestdata align = "center" width="75%" border="1">
<tr>
<td class="bold" align="center" width="70%">Test Suite</td>
<td class="bold" align="center" width="10%">Errors &amp; Failures</td>
<td class="bold" align="center" width="10%">Total Tests</td>
<td class="bold" align="center" width="10%">Total Time (s)</td>
</tr>
%testresults%
</table>
<p></p>
<br>
<table border=0 cellspacing=5 cellpadding=2 width="100%" >
<tr>
<td align=LEFT valign=TOP colspan="3" bgcolor="#0080C0"><b><font color="#FFFFFF" face="Arial,Helvetica">
Console output logs
<?php echo "$buildName"; ?>
</font></b></td>
</tr>
</table>
<br>
These <a href="consoleLogs.php">logs</a> contain the console output captured while
running the JUnit automated tests. <br>
<br>
</body>
</html>
<?xml version="1.0" encoding="UTF-8"?>
<project
name="xsl-conversion"
default="main"
basedir=".">
<target
name="main"
description="example.@dot.xml to produce example.@dot.html">
<xslt
destdir="${resultDir}/compilelogs"
scanincludeddirectories="true"
style="compilerXMLOutputToHTML.xsl"
force="true" >
<fileset dir="${resultDir}/compilelogs" includes="**/*.xml" />
</xslt>
</target>
</project>
\ No newline at end of file
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