Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Williams2014-07-08 09:44:33 +0000
committerDavid Williams2014-07-08 09:44:33 +0000
commit4963b1d0b591a7a7eae80682d0a9780e0a12b844 (patch)
treeb3fd1cc4423229fc9e9e097337c8864fd9e77d11
parent09bc7ec37b451629f290cc4c9f11686686472570 (diff)
downloadeclipse.platform.releng.aggregator-4963b1d0b591a7a7eae80682d0a9780e0a12b844.tar.gz
eclipse.platform.releng.aggregator-4963b1d0b591a7a7eae80682d0a9780e0a12b844.tar.xz
eclipse.platform.releng.aggregator-4963b1d0b591a7a7eae80682d0a9780e0a12b844.zip
Bug 387066 - Remove Red X's (and the few green checkmarks) from main DL
page Changes to "main" script, to make "test platform names" more variable.
-rw-r--r--eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/staticDropFiles/testConfigs.php9
-rw-r--r--eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/templateFiles/buildproperties.phpHoldForLocalTests63
-rw-r--r--eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/templateFiles/example-buildproperties.php62
-rw-r--r--eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/templateFiles/index.php.template1029
-rw-r--r--eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/templateFiles/utilityFunctions.php220
5 files changed, 827 insertions, 556 deletions
diff --git a/eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/staticDropFiles/testConfigs.php b/eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/staticDropFiles/testConfigs.php
new file mode 100644
index 000000000..86ca33d94
--- /dev/null
+++ b/eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/staticDropFiles/testConfigs.php
@@ -0,0 +1,9 @@
+<?php
+
+// This file is "static" for now, but eventually may compute and upload
+// this file more dynamically.
+
+$expectedTestConfigs = array();
+$expectedTestConfigs[]="linux.gtk.x86_64_8.0";
+$expectedTestConfigs[]="macosx.cocoa.x86_64_7.0";
+$expectedTestConfigs[]="win32.win32.x86_7.0";
diff --git a/eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/templateFiles/buildproperties.phpHoldForLocalTests b/eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/templateFiles/buildproperties.phpHoldForLocalTests
new file mode 100644
index 000000000..81e8fc7ea
--- /dev/null
+++ b/eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/templateFiles/buildproperties.phpHoldForLocalTests
@@ -0,0 +1,63 @@
+<?php
+
+// This is purely an example, to use as reference while in workspace.
+// The actual file, named 'buildproperties.php,
+// is produced during the build, and so will not only be different values for each build,
+// but will likely have variables
+// some and go as the build changes over the months and years. So, for
+// accurate reference, be sure to get
+// a recent copy. This was copied circa July 8, 2014.
+
+// properties written for N20140707-2000
+$PATH = "/shared/common/jdk1.7.0-latest/bin:/shared/common/apache-maven-3.1.1/bin:/shared/common/apache-ant-1.9.2/bin:/usr/local/bin:/usr/bin:/bin:/opt/buildhomes/e4Build/bin";
+$INITIAL_ENV_FILE = "/shared/eclipse/builds/4N/production/build_eclipse_org.shsource";
+$BUILD_ROOT = "/shared/eclipse/builds/4N";
+$BRANCH = "master";
+$STREAM = "4.5.0";
+$BUILD_TYPE = "N";
+$TIMESTAMP = "20140707-2000";
+$TMP_DIR = "/shared/eclipse/builds/4N/tmp";
+$JAVA_HOME = "/shared/common/jdk1.7.0-latest";
+$MAVEN_OPTS = "-Xmx2560m -XX:MaxPermSize=256M -Djava.io.tmpdir=/shared/eclipse/builds/4N/tmp -Dtycho.localArtifacts=ignore -Declipse.p2.mirrors=false";
+$MAVEN_PATH = "/shared/common/apache-maven-3.1.1/bin";
+$AGGREGATOR_REPO = "file:///gitroot/platform/eclipse.platform.releng.aggregator.git";
+$BASEBUILDER_TAG = "R38M6PlusRC3G";
+$B_GIT_EMAIL = "e4Build@eclipse.org";
+$B_GIT_NAME = "E4 Build";
+$COMMITTER_ID = "e4Build";
+$MVN_DEBUG = "true";
+$MVN_QUIET = "false";
+$SIGNING = "false";
+$REPO_AND_ACCESS = "file:///gitroot";
+$MAVEN_BREE = "-Pbree-libs";
+$GIT_PUSH = "echo no git push done since Nightly";
+$LOCAL_REPO = "/shared/eclipse/builds/4N/localMavenRepo";
+$SCRIPT_PATH = "/shared/eclipse/builds/4N/production";
+$STREAMS_PATH = "/shared/eclipse/builds/4N/gitCache/eclipse.platform.releng.aggregator/streams";
+$BUILD_KIND = "CBI";
+$CBI_JDT_REPO_URL = "";
+$CBI_JDT_REPO_URL_ARG = "";
+$CBI_JDT_VERSION = "";
+$CBI_JDT_VERSION_ARG = "";
+$PATCH_BUILD = "";
+$ALT_POM_FILE = "";
+$JAVA_DOC_TOOL = "-Declipse.javadoc=/shared/common/jdk1.8.0_x64-latest/bin/javadoc";
+$BUILD_ENV_FILE = "/shared/eclipse/builds/4N/siteDir/eclipse/downloads/drops4/N20140707-2000/buildproperties.shsource";
+$BUILD_ENV_FILE_PHP = "/shared/eclipse/builds/4N/siteDir/eclipse/downloads/drops4/N20140707-2000/buildproperties.php";
+$BUILD_ENV_FILE_PROP = "/shared/eclipse/builds/4N/siteDir/eclipse/downloads/drops4/N20140707-2000/buildproperties.properties";
+$BUILD_ID = "N20140707-2000";
+$BUILD_DIR_SEG = "N20140707-2000";
+$EQ_BUILD_DIR_SEG = "N20140707-2000";
+$BUILD_PRETTY_DATE = "Mon Jul 7 20:00:08 EDT 2014";
+$BUILD_TYPE_NAME = "Nightly (HEAD)";
+$TRACE_OUTPUT = "/shared/eclipse/builds/4N/siteDir/eclipse/downloads/drops4/N20140707-2000/buildlogs/trace_output.txt";
+$comparatorRepository = "NOT_CURRENTLY_USED";
+$logsDirectory = "/shared/eclipse/builds/4N/siteDir/eclipse/downloads/drops4/N20140707-2000/buildlogs";
+$BUILD_TIME_PATCHES = "false";
+$BUILD_HOME = "/shared/eclipse/builds";
+$EBUILDER_HASH = "09bc7ec37b451629f290cc4c9f11686686472570";
+$POM_UPDATES = "<li><a href='rt.equinox.framework.diff'>rt.equinox.framework</a></li>";
+$API_PREV_REF_LABEL = "4.4.0";
+$API_FREEZE_REF_LABEL = " ";
+// finished properties for N20140707-2000
+?>
diff --git a/eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/templateFiles/example-buildproperties.php b/eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/templateFiles/example-buildproperties.php
deleted file mode 100644
index 50088c96d..000000000
--- a/eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/templateFiles/example-buildproperties.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-
-// This is purely an example, to use as reference while in workspace.
-// The actual file, named 'buildproperties.php,
-// is produced during the build, and so will not only be different values for each build,
-// but will likely have variables
-// some and go as the build changes over the months and years. So, for
-// accurate reference, be sure to get
-// a recent copy. This was copied circa June 25, 2014.
-
-// properties written for 4.4
-$PATH = "/shared/common/jdk1.7.0-latest/bin:/shared/common/apache-maven-3.1.1/bin:/shared/common/apache-ant-1.9.2/bin:/usr/local/bin:/usr/bin:/bin:/opt/buildhomes/e4Build/bin";
-$INITIAL_ENV_FILE = "/shared/eclipse/builds/4I/production/build_eclipse_org.shsource";
-$BUILD_ROOT = "/shared/eclipse/builds/4I";
-$BRANCH = "master";
-$STREAM = "4.4.0";
-$BUILD_TYPE = "R";
-$TIMESTAMP = "20140606-1215";
-$TMP_DIR = "/shared/eclipse/builds/4I/tmp";
-$JAVA_HOME = "/shared/common/jdk1.7.0-latest";
-$MAVEN_OPTS = "-Xmx2560m -XX:MaxPermSize=256M -Djava.io.tmpdir=/shared/eclipse/builds/4I/tmp -Dtycho.localArtifacts=ignore -Declipse.p2.mirrors=false";
-$MAVEN_PATH = "/shared/common/apache-maven-3.1.1/bin";
-$AGGREGATOR_REPO = "file:///gitroot/platform/eclipse.platform.releng.aggregator.git";
-$BASEBUILDER_TAG = "R38M6PlusRC3G";
-$B_GIT_EMAIL = "e4Build@eclipse.org";
-$B_GIT_NAME = "E4 Build";
-$COMMITTER_ID = "e4Build";
-$MVN_DEBUG = "true";
-$MVN_QUIET = "false";
-$SIGNING = "true";
-$REPO_AND_ACCESS = "file:///gitroot";
-$MAVEN_BREE = "-Pbree-libs";
-$GIT_PUSH = "git push";
-$LOCAL_REPO = "/shared/eclipse/builds/4I/localMavenRepo";
-$SCRIPT_PATH = "/shared/eclipse/builds/4I/production";
-$STREAMS_PATH = "/shared/eclipse/builds/4I/gitCache/eclipse.platform.releng.aggregator/streams";
-$BUILD_KIND = "CBI";
-$CBI_JDT_REPO_URL = "";
-$CBI_JDT_REPO_URL_ARG = "";
-$CBI_JDT_VERSION = "";
-$CBI_JDT_VERSION_ARG = "";
-$PATCH_BUILD = "";
-$ALT_POM_FILE = "";
-$JAVA_DOC_TOOL = "-Declipse.javadoc=/shared/common/jdk1.8.0_x64-latest/bin/javadoc";
-$BUILD_ENV_FILE = "/shared/eclipse/builds/4I/siteDir/eclipse/downloads/drops4/R-4.4-201406061215/buildproperties.shsource";
-$BUILD_ENV_FILE_PHP = "/shared/eclipse/builds/4I/siteDir/eclipse/downloads/drops4/R-4.4-201406061215/buildproperties.php";
-$BUILD_ENV_FILE_PROP = "/shared/eclipse/builds/4I/siteDir/eclipse/downloads/drops4/R-4.4-201406061215/buildproperties.properties";
-$BUILD_ID = "4.4";
-$BUILD_DIR_SEG = "R-4.4-201406061215";
-$EQ_BUILD_DIR_SEG = "R-Luna-201406061215";
-$BUILD_PRETTY_DATE = "Fri Jun 6 12:15:11 EDT 2014";
-$BUILD_TYPE_NAME = "Release";
-$TRACE_OUTPUT = "/shared/eclipse/builds/4I/siteDir/eclipse/downloads/drops4/R-4.4-201406061215/buildlogs/trace_output.txt";
-$comparatorRepository = "NOT_CURRENTLY_USED";
-$logsDirectory = "/shared/eclipse/builds/4I/siteDir/eclipse/downloads/drops4/R-4.4-201406061215/buildlogs";
-$BUILD_TIME_PATCHES = "false";
-$BUILD_HOME = "/shared/eclipse/builds";
-$EBUILDER_HASH = "163582accf19622102b335521e12474a74499450";
-$API_PREV_REF_LABEL = "4.3.2";
-$API_FREEZE_REF_LABEL = "4.4M6";
-// finished properties for 4.4
-?>
diff --git a/eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/templateFiles/index.php.template b/eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/templateFiles/index.php.template
index f59815f07..c5e52acac 100644
--- a/eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/templateFiles/index.php.template
+++ b/eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/templateFiles/index.php.template
@@ -1,518 +1,559 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
-<?php
-//ini_set("display_errors", "true");
-//error_reporting (E_ALL);
-
-include("buildproperties.php");
-
-$streamArr = explode(".", $STREAM);
-$STREAM_MAJOR = $streamArr[0];
-$STREAM_MINOR = $streamArr[1];
-$STREAM_SERVICE = $streamArr[2];
-
-if (array_key_exists("SERVER_NAME", $_SERVER)) {
- $servername = $_SERVER["SERVER_NAME"];
- if ($servername === "build.eclipse.org") {
- $imagesource="http://download.eclipse.org/eclipse.org-common/themes/Phoenix/images";
- $csssource="http://download.eclipse.org/eclipse.org-common//themes/Phoenix/css";
- $clickthroughstr="";
- }
- else {
- $imagesource="../../../eclipse.org-common/stylesheets";
- $csssource="../../../eclipse.org-common/stylesheets";
- $clickthroughstr="download.php?dropFile=";
-
- }
-}
-else {
- $servername = "localhost";
- $imagesource="http://download.eclipse.org/eclipse.org-common/themes/Phoenix/images";
- $csssource="http://download.eclipse.org/eclipse.org-common//themes/Phoenix/css";
- $clickthroughstr="";
-}
-
-?>
-<head>
- <title>Eclipse Project</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <meta name="author" content="Eclipse Foundation, Inc." />
- <meta name="keywords" content="eclipse,project,plug-ins,plugins,java,ide,swt,refactoring,free java ide,tools,platform,open source,development environment,development,ide" />
- <link rel="stylesheet" type="text/css" href="<?php echo $csssource;?>/visual.css" media="screen" />
- <link rel="stylesheet" type="text/css" href="<?php echo $csssource;?>/layout.css" media="screen" />
- <link rel="stylesheet" type="text/css" href="<?php echo $csssource;?>/print.css" media="print" />
-<script type="text/javascript">
-
-sfHover = function() {
- var sfEls = document.getElementById("leftnav").getElementsByTagName("LI");
- for (var i=0; i<sfEls.length; i++) {
- sfEls[i].onmouseover=function() {
+ <?php
+ //ini_set("display_errors", "true");
+ //error_reporting (E_ALL);
+
+ include_once("buildproperties.php");
+ include_once("utilityFunctions.php");
+
+ // global variables
+ $expectedtestConfigs=0;
+ $testConfigs = array();
+ $foundConfigs= array();
+
+ $streamArr = explode(".", $STREAM);
+ $STREAM_MAJOR = $streamArr[0];
+ $STREAM_MINOR = $streamArr[1];
+ $STREAM_SERVICE = $streamArr[2];
+
+ if (array_key_exists("SERVER_NAME", $_SERVER)) {
+ $servername = $_SERVER["SERVER_NAME"];
+ if ($servername === "build.eclipse.org") {
+ $imagesource="http://download.eclipse.org/eclipse.org-common/themes/Phoenix/images";
+ $csssource="http://download.eclipse.org/eclipse.org-common//themes/Phoenix/css";
+ $clickthroughstr="";
+ }
+ else {
+ $imagesource="../../../eclipse.org-common/stylesheets";
+ $csssource="../../../eclipse.org-common/stylesheets";
+ $clickthroughstr="download.php?dropFile=";
+
+ }
+ }
+ else {
+ $servername = "localhost";
+ $imagesource="http://download.eclipse.org/eclipse.org-common/themes/Phoenix/images";
+ $csssource="http://download.eclipse.org/eclipse.org-common//themes/Phoenix/css";
+ $clickthroughstr="";
+ }
+
+ ?>
+ <head>
+ <title>Eclipse Project</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta name="author" content="Eclipse Foundation, Inc." />
+ <meta name="keywords" content="eclipse,project,plug-ins,plugins,java,ide,swt,refactoring,free java ide,tools,platform,open source,development environment,development,ide" />
+ <link rel="stylesheet" type="text/css" href="<?php echo $csssource;?>/visual.css" media="screen" />
+ <link rel="stylesheet" type="text/css" href="<?php echo $csssource;?>/layout.css" media="screen" />
+ <link rel="stylesheet" type="text/css" href="<?php echo $csssource;?>/print.css" media="print" />
+ <script type="text/javascript">
+
+ sfHover = function() {
+ var sfEls = document.getElementById("leftnav").getElementsByTagName("LI");
+ for (var i=0; i<sfEls.length; i++) {
+ sfEls[i].onmouseover=function() {
this.className+=" sfhover";
- }
- sfEls[i].onmouseout=function() {
+ }
+ sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
+ }
}
- }
-}
+ }
if (window.attachEvent) window.attachEvent("onload", sfHover);
</script>
</head>
<body>
-<div id="header">
+ <div id="header">
<a href="http://www.eclipse.org/"><img src="<?php echo $imagesource;?>/header_logo.gif" width="163" height="68" border="0" alt="Eclipse Logo" class="logo" /></a>
<div id="searchbar">
- <img src="<?php echo $imagesource;?>/searchbar_transition.gif" width="92" height="26" class="transition" alt="" />
- <img src="<?php echo $imagesource;?>/searchbar_header.gif" width="64" height="17" class="header" alt="Search" />
- <form method="get" action="http://www.eclipse.org/search/search.cgi">
- <input type="hidden" name="t" value="All" />
- <input type="hidden" name="t" value="Doc" />
- <input type="hidden" name="t" value="Downloads" />
- <input type="hidden" name="t" value="Wiki" />
- <input type="hidden" name="wf" value="574a74" />
- <input type="text" name="q" value="" />
- <input type="image" class="button" src="<?php echo $imagesource;?>/searchbar_submit.gif" alt="Submit" onclick="this.submit();" />
- </form>
+ <img src="<?php echo $imagesource;?>/searchbar_transition.gif" width="92" height="26" class="transition" alt="" />
+ <img src="<?php echo $imagesource;?>/searchbar_header.gif" width="64" height="17" class="header" alt="Search" />
+ <form method="get" action="http://www.eclipse.org/search/search.cgi">
+ <input type="hidden" name="t" value="All" />
+ <input type="hidden" name="t" value="Doc" />
+ <input type="hidden" name="t" value="Downloads" />
+ <input type="hidden" name="t" value="Wiki" />
+ <input type="hidden" name="wf" value="574a74" />
+ <input type="text" name="q" value="" />
+ <input type="image" class="button" src="<?php echo $imagesource;?>/searchbar_submit.gif" alt="Submit" onclick="this.submit();" />
+ </form>
</div>
<ul id="headernav">
- <li class="first"><a href="http://www.eclipse.org/org/foundation/contact.php">Contact</a></li>
- <li><a href="http://www.eclipse.org/legal/">Legal</a></li>
+ <li class="first"><a href="http://www.eclipse.org/org/foundation/contact.php">Contact</a></li>
+ <li><a href="http://www.eclipse.org/legal/">Legal</a></li>
</ul>
-</div>
-<?php if (! isset ($BUILD_FAILED) ) { ?>
-
-<div id="leftcol">
-<ul id="leftnav">
-<li><a href="#Repository">Eclipse p2 Repository</a></li>
-<li><a href="#EclipseSDK">Eclipse SDK</a></li>
-<li><a href="#JUnitPlugin">JUnit Plugin Tests and Automated Testing Framework</a></li>
-<li><a href="#ExamplePlugins">Example Plug-ins</a></li>
-<li><a href="#RCPRuntime">RCP Runtime Binary</a></li>
-<li><a href="#RCPSDK">RCP SDK</a></li>
-<li><a href="#DeltaPack">Delta Pack</a></li>
-<li><a href="#PlatformRuntime">Platform Runtime Binary</a></li>
-<li><a href="#JDTRuntime">JDT Runtime Binary</a></li>
-<li><a href="#JDTSDK">JDT SDK</a></li>
-<li><a href="#JDTCORE">JDT Core Batch Compiler</a></li>
-<li><a href="#PDERuntime">PDE Runtime Binary</a></li>
-<li><a href="#PDESDK">PDE SDK</a></li>
-<li><a href="#CVSRuntime">CVS Runtim</a></li>
-<li><a href="#CVSSDK">CVS SDK</a></li>
-<li><a href="#SWT">SWT binary and Source</a></li>
-<li><a href="#org.eclipse.releng">Releng Tools</a></li>
-</ul>
-
-</div>
-<!-- end 'not build failed' -->
-<?php } ?>
+ </div>
+ <?php if (! isset ($BUILD_FAILED) ) { ?>
+
+ <div id="leftcol">
+ <ul id="leftnav">
+ <li><a href="#Repository">Eclipse p2 Repository</a></li>
+ <li><a href="#EclipseSDK">Eclipse SDK</a></li>
+ <li><a href="#JUnitPlugin">JUnit Plugin Tests and Automated Testing Framework</a></li>
+ <li><a href="#ExamplePlugins">Example Plug-ins</a></li>
+ <li><a href="#RCPRuntime">RCP Runtime Binary</a></li>
+ <li><a href="#RCPSDK">RCP SDK</a></li>
+ <li><a href="#DeltaPack">Delta Pack</a></li>
+ <li><a href="#PlatformRuntime">Platform Runtime Binary</a></li>
+ <li><a href="#JDTRuntime">JDT Runtime Binary</a></li>
+ <li><a href="#JDTSDK">JDT SDK</a></li>
+ <li><a href="#JDTCORE">JDT Core Batch Compiler</a></li>
+ <li><a href="#PDERuntime">PDE Runtime Binary</a></li>
+ <li><a href="#PDESDK">PDE SDK</a></li>
+ <li><a href="#CVSRuntime">CVS Runtim</a></li>
+ <li><a href="#CVSSDK">CVS SDK</a></li>
+ <li><a href="#SWT">SWT binary and Source</a></li>
+ <li><a href="#org.eclipse.releng">Releng Tools</a></li>
+ </ul>
+ </div>
+ <!-- end 'not build failed' -->
+ <?php } ?>
-<div id="midcolumn">
+
+ <div id="midcolumn">
<table BORDER=0 CELLSPACING=5 CELLPADDING=2 WIDTH="100%" >
- <tr>
+ <tr>
<td>
- <b><font face="Verdana" size="+3">Eclipse <?php echo $STREAM; ?> <?php echo $BUILD_TYPE_NAME; ?> Build: <?php echo $BUILD_ID; ?></font></b>
+ <b><font face="Verdana" size="+3">Eclipse <?php echo $STREAM; ?> <?php echo $BUILD_TYPE_NAME; ?> Build: <?php echo $BUILD_ID; ?></font></b>
</td>
<tr>
- <tr>
-<?php
-if (file_exists("pom_updates/index.html")) {
- echo "<tr><td width=\"75%\"><font size=\"+1\">";
- echo "<a href=\"pom_updates/\"><b>POM updates made</b></a></font></td></tr>";
-}
-?>
-<?php
-// check if test build only, just to give warning of oversite.
-// see bug 404545
-if (isset($testbuildonly) && ($testbuildonly)) {
- echo "<tr><td width=\"75%\">\n";
- echo "<font size=\"+1\">\n";
- echo "Test-Build-Only flag found set. Input was not tagged.\n";
- echo "</font>\n";
- echo "</td></tr>\n";
-}
-?>
-<?php
-
-// Use of "BUILD_ID" should work for milestones, and releases, but would require a "copy"
-// being made, say for "4.5RC4" during that period we have prepared final bits, but haven't
-// made visible yet (if we want "N&N" visible from RC build).
-
-if (file_exists("news/")) {
- echo "<tr><td width=\"75%\"><font size=\"+1\">";
- echo "<a href=\"http://www.eclipse.org/eclipse/news/${BUILD_ID}/eclipse_news_${BUILD_ID}.php\"><b>New and Noteworthy</b></a></font></td></tr>";
-}
-// linkToAcknowledgements is a pure "marker file"
-if (file_exists("linkToAcknowledgements")) {
- echo "<tr><td width=\"75%\"><font size=\"+1\">";
- echo "<a href=\"http://www.eclipse.org/eclipse/development/acknowledgements_${BUILD_ID}.php\"><b>Acknowledgments</b></a>";
- echo "</font></td></tr>";
-}
-// linkToReadme is a pure marker file
-if (file_exists("linkToReadme")) {
- echo "<tr><td width=\"75%\"><font size=\"+1\">";
- echo "<a href=\"http://www.eclipse.org/eclipse/development/readme_eclipse_${BUILD_ID}.php\"><b>Eclipse Project ${BUILD_ID} Readme</b></a>";
- echo "</font></td></tr>";
-}
-
-
-if (isset ($BUILD_FAILED) ) {
- echo "<tr><td width=\"75%\"><font size=\"+1\">";
- echo "Build Failed. See <a href=\"buildlogs.php\">logs</a>. <br />\n";
- $PATTERN='!(.*)(/buildlogs/)(.*)!';
- $result = preg_match($PATTERN, $BUILD_FAILED, $MATCHES);
- // cheap short cut, since we expect only 1 such file
- $summaryFile=glob("buildFailed-*");
- if ($result !== FALSE) {
- $SPECIFIC_LOG=$MATCHES[3];
- echo "Specifically, see <a href=\"buildlogs/$SPECIFIC_LOG\">the log with errors</a>, \n";
- echo "or a <a href=\"$summaryFile[0]\">summary</a>. <br /> \n";
- echo "Or see traditional <a href=\"testResults.php\">Compile Logs</a> (if any). \n";
- }
- echo "</td><tr>";
- // early end to table, since build failed is all we'll print.
- echo "</table>";
-
-
-}
-else {
-?>
- <tr>
- <td width="75%">
- The page provides access to the various sections of Eclipse Platform build along with details
- relating to its results and unit tests.
- </td>
- </tr>
- </table>
-
-
- <div>
- <table BORDER=0 CELLSPACING=5 CELLPADDING=2 WIDTH="100%" >
-<?php
-//$servername = $_SERVER["SERVER_NAME"];
-if (! preg_match("/.eclipse.org/i",$servername)) {
- echo "<tr> To download a file via HTTP click on its corresponding http link below.";
-} else {
- echo "<tr>";
-} ?>
- </table>
- </div>
-
- <div class="homeitem">
- <h3>Related Links</h3>
- <ul class="midlist">
-
-<?php
- $testResultsStatus = "%testsStatus%";
- if (file_exists("overrideTestColor")) {
- $testResultsStatus="successful";
- }
-if($testResultsStatus == "pending") {
- echo "<li><a title=\"Tests are pending\" href=\"testResults.php\">View the <b>test results</b> for the current build.</a></li>";
-}
-else if($testResultsStatus == "successful") {
- echo "<li><a title=\"Test results have no failures\" href=\"testResults.php\">View the <b><font color=\"#00FF00\">test results</font></b> for the current build.</a></li>";
-}
-else if($testResultsStatus == "failed") {
- echo "<li><a title=\"Test results have failures\" href=\"testResults.php\">View the <b><font color=\"#FF0000\">test results</font></b> for the current build.</a></li>";
-}
-else {
- echo "<li><a href=\"testResults.php\">View the <b>test results</b> for the current build.</a></li>";
-}
-if (file_exists("performance/performance.php")) {
- echo "<li>";
- $generated=file_exists("performance/global_fp.php");
- if (!$generated) echo "<i>";
- echo "<a href=\"performance/performance.php\">View the <b>performance results</b> for the current build.</a>";
- if (!$generated) echo "</i>";
- echo "</li>";
-}
-?>
-
- <li><a href="https://www.eclipse.org/eclipse/development/plans/eclipse_project_plan_4_4.xml#target_environments">Target Platforms and Environments</a></li>
- <li><a href="directory.txt">View the repositories used for the current build.</a></li>
- <li><a href="http://wiki.eclipse.org/Platform-releng/How_to_check_integrity_of_downloads">How to verify a download.</a></li>
-
-<?php
-# place holder: we don't currently produce these reports, and
-# when we do, will need some work here.
-# FWIW, we may want to construct elaborate query into CGit for this,
-# even though that'd be elaborate, would get user to an area where
-# they coudl tweak query, if desired?
-if (file_exists("report.txt")) {
- echo "<p><a href=\"report.txt\">Report of changes</a> from previous build.</p>";
-}
-?>
-
-<?php
- if (file_exists("buildnotes/")) {
- echo "<li><a href=\"buildNotes.php\">View build notes for the current build.</a></li>";
- }
-?>
- </ul>
- </div>
-
-<hr class="clearer" />
-</div>
-
-<?php
-
-function column($servername) {
-
- echo "<td width=\"7%\"><b>Download</b></td>";
- echo "<td width=\"7%\"><b>Size</b></td>";
- echo "<td width=\"37%\"><b>File</b></td>";
- echo "<td width=\"11%\"><b>Checksum</b></td>";
- return;
-}
-
-function getDropSize($zipfile) {
-
- $filesize = "N/A";
- $filesizebytes = filesize($zipfile);
- if($filesizebytes > 0) {
- if($filesizebytes < 1048576)
- $filesize = round($filesizebytes / 1048576, 2) . " MB";
- else if ($filesizebytes >= 1048576 && $filesizebytes < 10485760)
- $filesize = round($filesizebytes / 1048576, 1) . " MB";
- else
- $filesize = round($filesizebytes / 1048576, 0) . " MB";
- }
- return($filesize);
-}
-
-function genLinks($servername,$BUILD_ID,$zipfile) {
-
- global $clickthroughstr;
- global $BUILD_DIR_SEG;
-
- $httplink = "$clickthroughstr$zipfile";
- $httplabel = "(http)";
- $httpline = "<div align=\"left\"><a href=\"$httplink\">$httplabel</a>";
- $filesize = getDropSize($zipfile);
-
- echo "$httpline";
- echo "&nbsp;&nbsp";
- echo "<td>$filesize</td>";
- echo "<td>$zipfile</td>";
- // make relative so works on build.eclipse.org -- should not be relative. link to checksum should be absolute, so a "mirror" couldn't change it,
- // bsed on changes it made to the package.
- // TODO: can make some future variables so it has one value on "build" server, and another value on
- // downloads, such as in buildproperties.php (value would get changed in "promtoe" script).
- // Also handy/needed when doing "local test builds".
- // Remember, md5 and sha1 are still in "checksum" directory, for at least initial Luna release, just not linked to. See bug
- // https://bugs.eclipse.org/bugs/show_bug.cgi?id=423714
- echo "<td><a href=\"http://download.eclipse.org/eclipse/downloads/drops4/$BUILD_DIR_SEG/checksum/$zipfile.sha512\">[SHA512]</a></td>";
- //echo "<td><a href=\"./checksum/$zipfile.md5\">(md5)</a>";
- //echo " <a href=\"./checksum/$zipfile.sha1\">(sha1)</a>";
-}
-?>
-
-<table align="left" BORDER=0 CELLSPACING=5 CELLPADDING=2 WIDTH="100%">
-
-<tr><td><div class="homeitem3col">
-<h3><a name="Repository"> Eclipse p2 Repository&nbsp;<a href="details.html#Repository"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
-<table BORDER=0 CELLSPACING=2 CELLPADDING=0 WIDTH="99%" bordercolor="#999999" >
-
-<?php
-
-
-// We expect $BUILD_ID to be defined in buildproperties.php
-// But it can be defined several times in reference URI, such as once in directory name,
-// and once in filename. We want the directory-like part.
-// And to complicate things, in S and R builds, the segment is no longer BUILD_ID,
-// but a more complicated concatination.
-if ($BUILD_TYPE === "N" || $BUILD_TYPE === "I" || $BUILD_TYPE === "M" || $BUILD_TYPE === "P" || $BUILD_TYPE === "X" || $BUILD_TYPE === "Y") {
- $STREAM_REPO_NAME=$STREAM_MAJOR.".".$STREAM_MINOR."-".$BUILD_TYPE."-"."builds";
-} else {
- if ($BUILD_TYPE === "S") {
- $STREAM_REPO_NAME=$STREAM_MAJOR.".".$STREAM_MINOR."milestones";
- } else {
- if ($BUILD_TYPE === "R") {
- $STREAM_REPO_NAME=$STREAM_MAJOR.".".$STREAM_MINOR;
- }
- else {
- echo "Unexpected value of BUILD_TYPE: $BUILD_TYPE. <br />";
- // We'll make an assumption that might work.
- $STREAM_REPO_NAME=$STREAM_MAJOR.".".$STREAM_MINOR."-".$BUILD_TYPE."-"."builds";
- }
- }
-}
-
-$STREAM_REPO_URL="http://download.eclipse.org/eclipse/updates/".$STREAM_REPO_NAME;
-
-$pos = strpos($BUILD_ID, "RC");
-if ($pos === false) {
- $isRC = false;
-} else {
- $isRC = true;
-}
-
-// There are two types of M builds, some RCs, some not.
-if ($BUILD_TYPE === "N" || $BUILD_TYPE === "I" || $BUILD_TYPE === "P" || $BUILD_TYPE === "X" || $BUILD_TYPE === "Y" || ($BUILD_TYPE === "M" && ! $isRC)) {
- $BUILD_REPO_NAME=$STREAM_REPO_NAME."/".$BUILD_ID;
-} else {
- $timestamp = str_replace('-', '', $TIMESTAMP);
- if ($BUILD_TYPE === "S" || $BUILD_TYPE === "R" || ($BUILD_TYPE === "M" && $isRC)) {
- $BUILD_REPO_NAME=$STREAM_REPO_NAME."/".$BUILD_TYPE."-".$BUILD_ID."-".$timestamp;
- } else {
- echo "Unexpected value of BUILD_TYPE: $BUILD_TYPE. <br />\n";
- // We'll make an assumption that might work.
- $BUILD_REPO_NAME=$STREAM_REPO_NAME."/".$BUILD_ID;
- }
-}
-
-$BUILD_REPO_URL="http://download.eclipse.org/eclipse/updates/".$BUILD_REPO_NAME;
-// checking for existence is especially important for BUILD_REPOs, since they might have been removed.
-// but we do it here too for sanity check.
-// relative patch can be either 3 or 4 "up", depending on if on downloads, or build machine.
-// either can be used to "prove existance".
-$relativePath4="../../../..";
-$relativePath3="../../..";
-if ((file_exists("$relativePath3/updates/".$STREAM_REPO_NAME)) || (file_exists("$relativePath4/updates/".$STREAM_REPO_NAME))) {
- echo "<tr> \n";
- echo "<p>To update your Eclipse installation to this development stream, you can use the software repository at<br />\n";
- echo "&nbsp;&nbsp;<a href=\"$STREAM_REPO_URL\">$STREAM_REPO_URL</a><br />\n";
- echo "</tr> \n";
-}
-if ((file_exists("$relativePath3/updates/"."$BUILD_REPO_NAME")) || (file_exists("$relativePath4/updates/"."$BUILD_REPO_NAME")) ) {
- echo "<tr> \n";
- echo "<p>To update your build to use this specific build, you can use the software repository at<br />\n";
- echo "&nbsp;&nbsp;<a href=\"$BUILD_REPO_URL\">$BUILD_REPO_URL</a><br />\n";
- echo "</tr> \n";
-}
-?>
-
-</table>
-
-<tr><td><div class="homeitem3col">
-<h3><a name="EclipseSDK"> Eclipse SDK&nbsp;<a href="details.html#EclipseSDK"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
-<table BORDER=0 CELLSPACING=2 CELLPADDING=0 WIDTH="99%" bordercolor="#999999" >
-<tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"><b>Status</b></div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
-</tr> %sdk% </table><?php
-
-?>
-</div></td></tr>
-
-<tr><td><div class="homeitem3col">
-<h3><a name="JUnitPlugin"> JUnit Plugin Tests and Automated Testing Framework&nbsp;<a href="details.html#JUnitPlugin"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
-<table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
-<tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"><b>Status</b></div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
-</tr> %tests% </table>
-</div></td></tr>
-
-<tr><td><div class="homeitem3col">
-<h3><a name="ExamplePlugins"> Example Plug-ins&nbsp;<a href="details.html#ExamplePlugins"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
-<table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
-<tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"><b>Status</b></div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
-</tr> %example% </table>
-</div></td></tr>
-
-<tr><td><div class="homeitem3col">
-<h3><a name="RCPRuntime"> RCP Runtime Binary&nbsp;<a href="details.html#RCPRuntime"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
-<table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
-<tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"><b>Status</b></div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
-</tr> %rcpruntime% </table>
-</div></td></tr>
-
-<tr><td><div class="homeitem3col">
-<h3><a name="RCPSDK"> RCP SDK&nbsp;<a href="details.html#RCPSDK"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
-<table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
-<tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"><b>Status</b></div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
-</tr> %rcpsdk% </table>
-</div></td></tr>
-
-<tr><td><div class="homeitem3col">
-<h3><a name="DeltaPack"> DeltaPack&nbsp;<a href="details.html#DeltaPack"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
-<table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
-<tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"><b>Status</b></div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
-</tr> %deltapack% </table>
-</div></td></tr>
-
-
-<tr><td><div class="homeitem3col">
-<h3><a name="PlatformRuntime"> Platform Runtime Binary&nbsp;<a href="details.html#PlatformRuntime"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
-<table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
-<tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"><b>Status</b></div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
-</tr> %runtime% </table>
-</div></td></tr>
-
-<tr><td><div class="homeitem3col">
-<h3><a name="JDTRuntime"> JDT Runtime Binary&nbsp;<a href="details.html#JDTRuntime"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
-<table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
-<tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"><b>Status</b></div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
-</tr> %jdt% </table>
-</div></td></tr>
-
-<tr><td><div class="homeitem3col">
-<h3><a name="JDTSDK"> JDT SDK &nbsp;<a href="details.html#JDTSDK"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
-<table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
-<tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"><b>Status</b></div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
-</tr> %jdtsdk% </table>
-</div></td></tr>
-
-<tr><td><div class="homeitem3col">
-<h3><a name="JDTCORE"> JDT Core Batch Compiler &nbsp;<a href="details.html#JDTCORE"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
-<table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
-<tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"><b>Status</b></div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
-</tr> %jdtc% </table>
-</div></td></tr>
-
-<tr><td><div class="homeitem3col">
-<h3><a name="PDERuntime"> PDE Runtime Binary&nbsp;<a href="details.html#PDERuntime"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
-<table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
-<tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"><b>Status</b></div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
-</tr> %pde% </table>
-</div></td></tr>
-
-<tr><td><div class="homeitem3col">
-<h3><a name="PDESDK"> PDE SDK&nbsp;<a href="details.html#PDESDK"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
-<table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
-<tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"><b>Status</b></div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
-%pdesdk% </table>
-</div></td></tr>
-
-<tr><td><div class="homeitem3col">
-<h3><a name="CVSRuntime"> CVS Client Runtime Binary&nbsp;<a href="details.html#CVSRuntime"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
-<table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
-<tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"><b>Status</b></div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
-</tr> %cvs% </table>
-</div></td></tr>
-
-<tr><td><div class="homeitem3col">
-<h3><a name="CVSSDK"> CVS Client SDK&nbsp;<a href="details.html#CVSSDK"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
-<table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
-<tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"><b>Status</b></div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
-%cvssdk% </table>
-</div></td></tr>
-
-<tr><td><div class="homeitem3col">
-<h3><a name="SWT"> SWT Binary and Source&nbsp;<a href="details.html#SWT"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
-<table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
-<tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"><b>Status</b></div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
-</tr> %swt% </table>
-</div></td></tr>
-
-<tr><td><div class="homeitem3col">
-<h3><a name="org.eclipse.releng"> org.eclipse.releng.tools plug-in&nbsp;<a href="details.html#org.eclipse.releng"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
-<table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
-<tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"><b>Status</b></div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
-</tr> %relengtools% </table>
-</div></td></tr>
-</table>
-<p><br /></p>
+ <tr>
+ <?php
+ if (file_exists("pom_updates/index.html")) {
+ echo "<tr><td width=\"75%\"><font size=\"+1\">";
+ echo "<a href=\"pom_updates/\"><b>POM updates made</b></a></font></td></tr>";
+ }
+ ?>
+ <?php
+ // check if test build only, just to give warning of oversite.
+ // see bug 404545
+ if (isset($testbuildonly) && ($testbuildonly)) {
+ echo "<tr><td width=\"75%\">\n";
+ echo "<font size=\"+1\">\n";
+ echo "Test-Build-Only flag found set. Input was not tagged.\n";
+ echo "</font>\n";
+ echo "</td></tr>\n";
+ }
+ ?>
+ <?php
+
+ // Use of "BUILD_ID" should work for milestones, and releases, but would require a "copy"
+ // being made, say for "4.5RC4" during that period we have prepared final bits, but have not
+ // made visible yet (if we want "N&N" visible from RC build).
+
+ if (file_exists("news/")) {
+ echo "<tr><td width=\"75%\"><font size=\"+1\">";
+ echo "<a href=\"http://www.eclipse.org/eclipse/news/${BUILD_ID}/eclipse_news_${BUILD_ID}.php\"><b>New and Noteworthy</b></a></font></td></tr>";
+ }
+ // linkToAcknowledgements is a pure "marker file"
+ if (file_exists("linkToAcknowledgements")) {
+ echo "<tr><td width=\"75%\"><font size=\"+1\">";
+ echo "<a href=\"http://www.eclipse.org/eclipse/development/acknowledgements_${BUILD_ID}.php\"><b>Acknowledgments</b></a>";
+ echo "</font></td></tr>";
+ }
+ // linkToReadme is a pure marker file
+ if (file_exists("linkToReadme")) {
+ echo "<tr><td width=\"75%\"><font size=\"+1\">";
+ echo "<a href=\"http://www.eclipse.org/eclipse/development/readme_eclipse_${BUILD_ID}.php\"><b>Eclipse Project ${BUILD_ID} Readme</b></a>";
+ echo "</font></td></tr>";
+ }
+
+
+ if (isset ($BUILD_FAILED) ) {
+ echo "<tr><td width=\"75%\"><font size=\"+1\">";
+ echo "Build Failed. See <a href=\"buildlogs.php\">logs</a>. <br />\n";
+ $PATTERN='!(.*)(/buildlogs/)(.*)!';
+ $result = preg_match($PATTERN, $BUILD_FAILED, $MATCHES);
+ // cheap short cut, since we expect only 1 such file
+ $summaryFile=glob("buildFailed-*");
+ if ($result !== FALSE) {
+ $SPECIFIC_LOG=$MATCHES[3];
+ echo "Specifically, see <a href=\"buildlogs/$SPECIFIC_LOG\">the log with errors</a>, \n";
+ echo "or a <a href=\"$summaryFile[0]\">summary</a>. <br /> \n";
+ echo "Or see traditional <a href=\"testResults.php\">Compile Logs</a> (if any). \n";
+ }
+ echo "</td><tr>";
+ // early end to table, since build failed is all we will print.
+ echo "</table>";
+
+
+ }
+ else {
+ ?>
+ <tr>
+ <td width="75%">
+ The page provides access to the various sections of Eclipse Platform build along with details
+ relating to its results and unit tests.
+ </td>
+ </tr>
+ </table>
+
+ <div>
+ <table BORDER=0 CELLSPACING=5 CELLPADDING=2 WIDTH="100%" >
+ <?php
+ //$servername = $_SERVER["SERVER_NAME"];
+ if (! preg_match("/.eclipse.org/i",$servername)) {
+ echo "<tr> To download a file via HTTP click on its corresponding http link below.";
+ } else {
+ echo "<tr>";
+ } ?>
+ </table>
+ </div>
+
+ <div class="homeitem">
+ <h3>Related Links</h3>
+ <ul class="midlist">
+
+ <?php
+ // for current (modern) builds, test results are always in
+ // 'testresults'. That directory only exists after first results
+ // have finished and been "published".
+ if (file_exists("testresults")) {
+ $testResultsDirName="testresults";
+ } elseif (file_exists("results")) {
+ $testResultsDirName="results";
+ } else {
+ $testResultsDirName="";
+ }
+
+ // The %testsStatus% is given a value by the "generate Index" tasks,
+ // but it is supplimented by "nBoxes" and "expectedtestConfigs"
+ // BUT, we want to maintain ability to override color with presence
+ // of 'overrideTestColor' marker file.
+
+ $boxes=calcTestConfigsRan($testResultsDirName);
+
+ $testResultsStatus = "%testsStatus%";
+ if (file_exists("overrideTestColor")) {
+ $testResultsStatus="successful";
+ }
+ // -3 is special code meaning no testResults directory exists yet.
+ elseif ($boxes == -3) {
+ echo "<li><a title=\"Tests are pending\" href=\"testResults.php\">Tests are pending, view the <b>logs</b> for the current build.</a></li>";
+ }
+ elseif ($testResultsStatus == "pending") {
+ echo "<li><a title=\"Tests are pending\" href=\"testResults.php\">Tests are pending. View the <b>logs</b> for the current build.</a></li>";
+ }
+ elseif ($testResultsStatus == "successful") {
+ echo "<li><a title=\"Test results have no failures\" href=\"testResults.php\">View the <b><font color=\"#00FF00\">logs and test results</font></b> for the current build.</a></li>";
+ }
+ elseif ($testResultsStatus == "failed") {
+ echo "<li><a title=\"Test results have failures\" href=\"testResults.php\">View the <b><font color=\"#FF0000\">logs and test results</font></b> for the current build.</a></li>";
+ }
+ else {
+ echo "<li><a href=\"testResults.php\">View the <b>logs and test results</b> for the current build.</a></li>\n";
+ }
+
+ if ($boxes > -1) {
+ echo "<ul>\n";
+ echo "<li>".$boxes." of ".$expectedtestConfigs." test configurations are complete.</li>\n";
+ if ($boxes > 0) {
+ echo "<ul>\n";
+ for ($i = 0 ; $i < $boxes ; $i++) {
+ echo "<li>".$foundConfigs[$i]."</li>\n";
+ }
+ echo "</ul>\n";
+ }
+ echo "</ul>\n";
+ }
+
+ // if (file_exists("performance/performance.php")) {
+ // echo "<li>";
+ // $generated=file_exists("performance/global_fp.php");
+ // if (!$generated)
+ // {
+ // echo "<i>";
+ // echo "<a href=\"performance/performance.php\">View the <b>performance results</b> for the current build.</a>";
+ // if (!$generated) echo "</i>";
+ // echo "</li>";
+ // }
+ ?>
+
+ <li><a href="https://www.eclipse.org/eclipse/development/plans/eclipse_project_plan_4_4.xml#target_environments">Target Platforms and Environments</a></li>
+ <li><a href="directory.txt">View the Git repositories used for the current build.</a></li>
+ <li><a href="http://wiki.eclipse.org/Platform-releng/How_to_check_integrity_of_downloads">How to verify a download.</a></li>
+
+ <?php
+ # place holder: we don't currently produce these reports, and
+ # when we do, will need some work here.
+ # FWIW, we may want to construct elaborate query into CGit for this,
+ # even though that'd be elaborate, would get user to an area where
+ # they coudl tweak query, if desired?
+ if (file_exists("report.txt")) {
+ echo "<p><a href=\"report.txt\">Report of changes</a> from previous build.</p>";
+ }
+ ?>
+
+ <?php
+ if (file_exists("buildnotes/")) {
+ echo "<li><a href=\"buildNotes.php\">View build notes for the current build.</a></li>";
+ }
+ ?>
+ </ul>
+ </div>
+
+ <hr class="clearer" />
+ </div>
+
+ <?php
+
+ function column($servername) {
+
+ echo "<td width=\"7%\"><b>Download</b></td>";
+ echo "<td width=\"7%\"><b>Size</b></td>";
+ echo "<td width=\"37%\"><b>File</b></td>";
+ echo "<td width=\"11%\"><b>Checksum</b></td>";
+ return;
+ }
+
+ function getDropSize($zipfile) {
+
+ $filesize = "N/A";
+ $filesizebytes = filesize($zipfile);
+ if($filesizebytes > 0) {
+ if($filesizebytes < 1048576)
+ $filesize = round($filesizebytes / 1048576, 2) . " MB";
+ else if ($filesizebytes >= 1048576 && $filesizebytes < 10485760)
+ $filesize = round($filesizebytes / 1048576, 1) . " MB";
+ else
+ $filesize = round($filesizebytes / 1048576, 0) . " MB";
+ }
+ return($filesize);
+ }
+
+ function genLinks($servername,$BUILD_ID,$zipfile) {
+
+ global $clickthroughstr;
+ global $BUILD_DIR_SEG;
+
+ $httplink = "$clickthroughstr$zipfile";
+ $httplabel = "(http)";
+ $httpline = "<div align=\"left\"><a href=\"$httplink\">$httplabel</a>";
+ $filesize = getDropSize($zipfile);
+
+ echo "$httpline";
+ echo "&nbsp;&nbsp;";
+ echo "<td>$filesize</td>";
+ echo "<td>$zipfile</td>";
+ // make relative so works on build.eclipse.org -- should not be relative. link to checksum should be absolute, so a "mirror" could not change it,
+ // bsed on changes it made to the package.
+ // TODO: can make some future variables so it has one value on "build" server, and another value on
+ // downloads, such as in buildproperties.php (value would get changed in "promtoe" script).
+ // Also handy/needed when doing "local test builds".
+ // Remember, md5 and sha1 are still in "checksum" directory, for at least initial Luna release, just not linked to. See bug
+ // https://bugs.eclipse.org/bugs/show_bug.cgi?id=423714
+ echo "<td><a href=\"http://download.eclipse.org/eclipse/downloads/drops4/$BUILD_DIR_SEG/checksum/$zipfile.sha512\">[SHA512]</a></td>";
+ //echo "<td><a href=\"./checksum/$zipfile.md5\">(md5)</a>";
+ //echo " <a href=\"./checksum/$zipfile.sha1\">(sha1)</a>";
+ }
+ ?>
+
+ <table align="left" BORDER=0 CELLSPACING=5 CELLPADDING=2 WIDTH="100%">
+
+ <tr><td><div class="homeitem3col">
+ <h3><a name="Repository"> Eclipse p2 Repository&nbsp;<a href="details.html#Repository"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
+ <table BORDER=0 CELLSPACING=2 CELLPADDING=0 WIDTH="99%" bordercolor="#999999" >
+
+ <?php
+
+
+ // We expect $BUILD_ID to be defined in buildproperties.php
+ // But it can be defined several times in reference URI, such as once in directory name,
+ // and once in filename. We want the directory-like part.
+ // And to complicate things, in S and R builds, the segment is no longer BUILD_ID,
+ // but a more complicated concatination.
+ if ($BUILD_TYPE === "N" || $BUILD_TYPE === "I" || $BUILD_TYPE === "M" || $BUILD_TYPE === "P" || $BUILD_TYPE === "X" || $BUILD_TYPE === "Y") {
+ $STREAM_REPO_NAME=$STREAM_MAJOR.".".$STREAM_MINOR."-".$BUILD_TYPE."-"."builds";
+ } else {
+ if ($BUILD_TYPE === "S") {
+ $STREAM_REPO_NAME=$STREAM_MAJOR.".".$STREAM_MINOR."milestones";
+ } else {
+ if ($BUILD_TYPE === "R") {
+ $STREAM_REPO_NAME=$STREAM_MAJOR.".".$STREAM_MINOR;
+ }
+ else {
+ echo "Unexpected value of BUILD_TYPE: $BUILD_TYPE. <br />";
+ // We will make an assumption that might work.
+ $STREAM_REPO_NAME=$STREAM_MAJOR.".".$STREAM_MINOR."-".$BUILD_TYPE."-"."builds";
+ }
+ }
+ }
+
+ $STREAM_REPO_URL="http://download.eclipse.org/eclipse/updates/".$STREAM_REPO_NAME;
+
+ $pos = strpos($BUILD_ID, "RC");
+ if ($pos === false) {
+ $isRC = false;
+ } else {
+ $isRC = true;
+ }
+
+ // There are two types of M builds, some RCs, some not.
+ if ($BUILD_TYPE === "N" || $BUILD_TYPE === "I" || $BUILD_TYPE === "P" || $BUILD_TYPE === "X" || $BUILD_TYPE === "Y" || ($BUILD_TYPE === "M" && ! $isRC)) {
+ $BUILD_REPO_NAME=$STREAM_REPO_NAME."/".$BUILD_ID;
+ } else {
+ $timestamp = str_replace('-', '', $TIMESTAMP);
+ if ($BUILD_TYPE === "S" || $BUILD_TYPE === "R" || ($BUILD_TYPE === "M" && $isRC)) {
+ $BUILD_REPO_NAME=$STREAM_REPO_NAME."/".$BUILD_TYPE."-".$BUILD_ID."-".$timestamp;
+ } else {
+ echo "Unexpected value of BUILD_TYPE: $BUILD_TYPE. <br />\n";
+ // We will make an assumption that might work.
+ $BUILD_REPO_NAME=$STREAM_REPO_NAME."/".$BUILD_ID;
+ }
+ }
+
+ $BUILD_REPO_URL="http://download.eclipse.org/eclipse/updates/".$BUILD_REPO_NAME;
+ // checking for existence is especially important for BUILD_REPOs, since they might have been removed.
+ // but we do it here too for sanity check.
+ // relative patch can be either 3 or 4 "up", depending on if on downloads, or build machine.
+ // either can be used to "prove existance".
+ $relativePath4="../../../..";
+ $relativePath3="../../..";
+ if ((file_exists("$relativePath3/updates/".$STREAM_REPO_NAME)) || (file_exists("$relativePath4/updates/".$STREAM_REPO_NAME))) {
+ echo "<tr> \n";
+ echo "<p>To update your Eclipse installation to this development stream, you can use the software repository at<br />\n";
+ echo "&nbsp;&nbsp;<a href=\"$STREAM_REPO_URL\">$STREAM_REPO_URL</a><br />\n";
+ echo "</tr> \n";
+ }
+ if ((file_exists("$relativePath3/updates/"."$BUILD_REPO_NAME")) || (file_exists("$relativePath4/updates/"."$BUILD_REPO_NAME")) ) {
+ echo "<tr> \n";
+ echo "<p>To update your build to use this specific build, you can use the software repository at<br />\n";
+ echo "&nbsp;&nbsp;<a href=\"$BUILD_REPO_URL\">$BUILD_REPO_URL</a><br />\n";
+ echo "</tr> \n";
+ }
+ ?>
+
+ </table>
+
+ <tr><td><div class="homeitem3col">
+ <h3><a name="EclipseSDK"> Eclipse SDK&nbsp;<a href="details.html#EclipseSDK"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
+ <table BORDER=0 CELLSPACING=2 CELLPADDING=0 WIDTH="99%" bordercolor="#999999" >
+ <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left">&nbsp;</div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
+ </tr> %sdk% </table>
+ </div></td></tr>
+
+ <tr><td><div class="homeitem3col">
+ <h3><a name="JUnitPlugin"> JUnit Plugin Tests and Automated Testing Framework&nbsp;<a href="details.html#JUnitPlugin"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
+ <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
+ <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left">&nbsp;</div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
+ </tr> %tests% </table>
+ </div></td></tr>
+
+ <tr><td><div class="homeitem3col">
+ <h3><a name="ExamplePlugins"> Example Plug-ins&nbsp;<a href="details.html#ExamplePlugins"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
+ <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
+ <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left">&nbsp;</div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
+ </tr> %example% </table>
+ </div></td></tr>
+
+ <tr><td><div class="homeitem3col">
+ <h3><a name="RCPRuntime"> RCP Runtime Binary&nbsp;<a href="details.html#RCPRuntime"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
+ <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
+ <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left">&nbsp;</div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
+ </tr> %rcpruntime% </table>
+ </div></td></tr>
+
+ <tr><td><div class="homeitem3col">
+ <h3><a name="RCPSDK"> RCP SDK&nbsp;<a href="details.html#RCPSDK"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
+ <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
+ <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left">&nbsp;</div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
+ </tr> %rcpsdk% </table>
+ </div></td></tr>
+
+ <tr><td><div class="homeitem3col">
+ <h3><a name="DeltaPack"> DeltaPack&nbsp;<a href="details.html#DeltaPack"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
+ <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
+ <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left">&nbsp;</div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
+ </tr> %deltapack% </table>
+ </div></td></tr>
+
+
+ <tr><td><div class="homeitem3col">
+ <h3><a name="PlatformRuntime"> Platform Runtime Binary&nbsp;<a href="details.html#PlatformRuntime"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
+ <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
+ <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left">&nbsp;</div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
+ </tr> %runtime% </table>
+ </div></td></tr>
+
+ <tr><td><div class="homeitem3col">
+ <h3><a name="JDTRuntime"> JDT Runtime Binary&nbsp;<a href="details.html#JDTRuntime"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
+ <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
+ <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left">&nbsp;</div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
+ </tr> %jdt% </table>
+ </div></td></tr>
+
+ <tr><td><div class="homeitem3col">
+ <h3><a name="JDTSDK"> JDT SDK &nbsp;<a href="details.html#JDTSDK"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
+ <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
+ <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left">&nbsp;</div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
+ </tr> %jdtsdk% </table>
+ </div></td></tr>
+
+ <tr><td><div class="homeitem3col">
+ <h3><a name="JDTCORE"> JDT Core Batch Compiler &nbsp;<a href="details.html#JDTCORE"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
+ <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
+ <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left">&nbsp;</div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
+ </tr> %jdtc% </table>
+ </div></td></tr>
+
+ <tr><td><div class="homeitem3col">
+ <h3><a name="PDERuntime"> PDE Runtime Binary&nbsp;<a href="details.html#PDERuntime"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
+ <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
+ <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left">&nbsp;</div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
+ </tr> %pde% </table>
+ </div></td></tr>
+
+ <tr><td><div class="homeitem3col">
+ <h3><a name="PDESDK"> PDE SDK&nbsp;<a href="details.html#PDESDK"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
+ <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
+ <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left">&nbsp;</div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
+ %pdesdk% </table>
+ </div></td></tr>
+
+ <tr><td><div class="homeitem3col">
+ <h3><a name="CVSRuntime"> CVS Client Runtime Binary&nbsp;<a href="details.html#CVSRuntime"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
+ <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
+ <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left">&nbsp;</div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
+ </tr> %cvs% </table>
+ </div></td></tr>
+
+ <tr><td><div class="homeitem3col">
+ <h3><a name="CVSSDK"> CVS Client SDK&nbsp;<a href="details.html#CVSSDK"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
+ <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
+ <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left">&nbsp;</div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
+ %cvssdk% </table>
+ </div></td></tr>
+
+ <tr><td><div class="homeitem3col">
+ <h3><a name="SWT"> SWT Binary and Source&nbsp;<a href="details.html#SWT"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
+ <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
+ <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left">&nbsp;</div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
+ </tr> %swt% </table>
+ </div></td></tr>
+
+ <tr><td><div class="homeitem3col">
+ <h3><a name="org.eclipse.releng"> org.eclipse.releng.tools plug-in&nbsp;<a href="details.html#org.eclipse.releng"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3>
+ <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" >
+ <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left">&nbsp;</div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?>
+ </tr> %relengtools% </table>
+ </div></td></tr>
+ </table>
+ <p><br /></p>
<?php } ?>
-<div id="footer">
- <ul id="footernav">
- <li class="first"><a href="http://www.eclipse.org">Home</a></li>
- <li><a href="http://www.eclipse.org/legal/privacy.php">Privacy Policy</a></li>
- <li><a href="http://www.eclipse.org/legal/termsofuse.php">Terms of Use</a></li>
- <li>Downloads provided under the <a href="http://www.eclipse.org/legal/epl/notice.html">Eclipse Foundation Software User Agreement</a></li>
- </ul>
- <p>Copyright &copy; 2006-2013 The Eclipse Foundation. All Rights
-Reserved</p>
-</div>
-</body>
-</html>
+ <div id="footer">
+ <ul id="footernav">
+ <li class="first"><a href="http://www.eclipse.org">Home</a></li>
+ <li><a href="http://www.eclipse.org/legal/privacy.php">Privacy Policy</a></li>
+ <li><a href="http://www.eclipse.org/legal/termsofuse.php">Terms of Use</a></li>
+ <li>Downloads provided under the <a href="http://www.eclipse.org/legal/epl/notice.html">Eclipse Foundation Software User Agreement</a></li>
+ </ul>
+ <p>Copyright &copy; 2006-2013 The Eclipse Foundation. All Rights
+ Reserved</p>
+ </div>
+ </body>
+ </html>
diff --git a/eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/templateFiles/utilityFunctions.php b/eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/templateFiles/utilityFunctions.php
new file mode 100644
index 000000000..a948b11ef
--- /dev/null
+++ b/eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/templateFiles/utilityFunctions.php
@@ -0,0 +1,220 @@
+<?php
+
+
+/*
+This funtion returns a proper "linux time stamp" so we can compute time
+elapsed since build started ... and give different messages if we exceed
+certain amounts.
+
+We expect the value to be in the form as saved in "buildproperties.php",
+namely
+$TIMESTAMP = "20140706-2000";
+ */
+function timeOfBuild ($timestamp) {
+
+ $year = substr($timestamp, 0, 4);
+ $month = substr($timestamp, 4, 2);
+ $day = substr($timestamp, 6, 2);
+ $hour = substr($timestamp,9,2);
+ $minute = substr($timestamp,11,2);
+ $seconds = 0;
+ $mktimeTime = mktime ($hour,$minute,$seconds,$month,$day,$year);
+
+ //echo "DEBUG: year: $year\n";
+ //echo "DEBUG: month: $month\n";
+ //echo "DEBUG: day: $day\n";
+ //echo "DEBUG: hour: $hour\n";
+ //echo "DEBUG: minute: $minute\n";
+ //echo "DEBUG: second: $seconds\n\n";
+ //echo "DEBUG: input timestamp: $timestamp\n";
+ //echo "DEBUG: mktimeTime: $mktimeTime\n";
+ //echo "DEBUG: date: ".date("r", $mktimeTime)."\n\n";
+ return $mktimeTime;
+}
+
+/*
+Sanity check. Make sure echo statements are not commented out.
+ */
+function testTimeOfBuild() {
+ timeOfBuild("20140706-2000");
+ timeOfBuild("20140201-2400");
+ timeOfBuild("20140201-1200");
+ timeOfBuild("20140201-0000");
+ timeOfBuild("20140241-1200");
+ timeOfBuild("20144101-0001");
+}
+/*
+This function was originally copied from 'createIndex4x.php'.
+Its purpose is to return number of "test runs completed", based
+on the names of "console logs" that are present in ./testResults/consolelogs
+directory.
+ */
+
+function calcTestConfigsRan($testResultsDirName) {
+
+ global $expectedtestConfigs;
+ global $foundConfigs;
+
+ $boxes=0;
+ // the include file, testConfigs.php defines 'testConfigs' array,
+ // which consists of strings defining what platforms and vms we test.
+ // For example, a testConfigs.php file might consist of
+ // <?php
+ // $expectedTestConfigs = array();
+ // $expectedTestConfigs[]="linux.gtk.x86_64_8.0";
+ // $expectedTestConfigs[]="macosx.cocoa.x86_64_7.0";
+ // $expectedTestConfigs[]="win32.win32.x86_7.0";
+
+ if (file_exists("testConfigs.php")) {
+ include "testConfigs.php";
+ $testConfigs = &$expectedTestConfigs;
+ }
+ else {
+ // minus 2 is code for "testConfigs not found"
+ $boxes=-2;
+ $testConfigs = array();
+ }
+ $expectedtestConfigs=count($testConfigs);
+
+ if (file_exists("buildproperties.php")) {
+ // be sure any previous are reset
+ unset ($BUILD_FAILED);
+ include "buildproperties.php";
+ if (isset ($BUILD_FAILED) && strlen($BUILD_FAILED) > 0) {
+ // minus 1 is taken as numeric code that "build failed".
+ $boxes=-1;
+ unset ($BUILD_FAILED);
+ }
+ }
+
+ // will be empty until there is at least one test result uploaded?
+ if (empty($testResultsDirName)) {
+ // contrived code to mean "no results yet"
+ $boxes = -3;
+ }
+ if ($boxes != -1 && $boxes != -2 && $boxes != -3) {
+
+ // TEMP? appears "old style" builds had directories named "results", but now "testresults"
+ // and we want to look in $testResultsDirName/consolelogs
+ if (file_exists("$testResultsDirName/consolelogs")) {
+ $buildDir = dir("$testResultsDirName/consolelogs");
+ while ($file = $buildDir->read()) {
+ for ($i = 0 ; $i < $expectedtestConfigs ; $i++) {
+ if (strncmp($file, $testConfigs[$i], count($testConfigs[$i])) == 0) {
+ $boxes++;
+ $foundConfigs[] = $testConfigs[$i];
+ break;
+ }
+ }
+ }
+ }
+ }
+ //echo "DEBUG: boxes: $boxes";
+ return $boxes;
+}
+
+/*
+This function was originally copied from 'createIndex4x.php', where
+the function was named 'printBuildColumns'. It's be heavily modified
+to be used on individual build DL page.
+
+Its purpose is to return a short summary of "state of the tests".
+ */
+function printTestSummaryStatus() {
+
+ include_once("buildproperties.php");
+
+
+ // date and time of build, and elapsed time
+
+ $buildTime=timeOfBuild($TIMESTAMP);
+
+ // compute minutes elapsed since build started
+ $day=intval(date("Ymd"));
+ $time=intval(date("H"))*60+intval(date("i"));
+ $diff=($day-$buildDay)*24*60+$time-$buildTime;
+
+
+
+ if (file_exists("testresults")) {
+ $testResultsDirName="testresults";
+ } elseif (file_exists("results")) {
+ $testResultsDirName="results";
+ } else {
+ // Neither directory exists at first ... until a tests completes and one result uploaded.
+ $testResultsDirName="";
+ }
+
+ $boxes=calcTestConfigsRan($fileName, $testResultsDirName);
+ // boxes == -1 is code that "bulid failed" and no tests are expected.
+ if ($boxes == -1) {
+ $buildimage="build_failed.gif";
+ $buildalt="Build failed";
+ } else {
+ $buildimage="build_done.gif";
+ $buildalt="Build is available";
+ }
+
+ // set to zero globally, but computed in calcTestConfigsRan
+ global $expectedtestConfigs;
+
+ $boxesTitle="";
+
+ // We skip the main "tests" part for patch builds, since don't expect any (for now).
+ if ($BUILD_TYPE !== "P" && $boxes !== -2) {
+
+ // always put in links, since someone may want to look at logs, even if not tests results, per se
+ // don't forget to end link, after images decided.
+
+ if ($boxes > -1) {
+ $boxesTitle=$boxes." of ".$expectedtestConfigs." test platforms finished.";
+ }
+ if ($testResultsDirName === "results") {
+ echo "<a href=\"results/testResults.html\" title=\"$boxesTitle\" style=\"text-decoration: none\">";
+ } else {
+ echo "<a href=\"testResults.php\" title=\"$boxesTitle\" style=\"text-decoration: none\">";
+ }
+
+ if ($boxes == -1) {
+ $testimage="caution.gif";
+ $testalt="Integration tests did not run due to failed build";
+ } elseif ($boxes == 0 && $diff > 720) {
+ // assume if no results at all, after 12 hours, assume they didn't run for unknown reasosn
+ $testimage="caution.gif";
+ $testalt="Integration tests did not run, due to unknown reasons.";
+ } elseif ($boxes > 0 && $boxes < $expectedtestConfigs) {
+ if ($diff > 1440) {
+ $testimage="junit.gif";
+ $testalt="Tests results are available but did not finish on all machines";
+ } else {
+ $testimage="runtests.gif";
+ $testalt="Integration tests are running ...";
+ }
+ } elseif ($boxes == $expectedtestConfigs) {
+ $testimage="junit.gif";
+ $testalt="Tests results are available";
+ } else {
+ $testimage="runtests.gif";
+ $testalt="Integration tests are running ...";
+ }
+ echo "<img style=\"border:0px\" src=\"../images/$testimage\" title=\"$testalt\" alt=\"$testalt\" />";
+ if ($boxes > -1) {
+ echo "&nbsp;(".$boxes." of ".$expectedtestConfigs." platforms)";
+ }
+ echo "</a>\n";
+ } else {
+ echo "<a href=\"testResults.php\" title=\"$boxesTitle\" style=\"text-decoration: none\">";
+ $testimage="results.gif";
+ $testalt="Logs from build";
+ echo "<img style=\"border:0px\" src=\"../images/$testimage\" title=\"$testalt\" alt=\"$testalt\" />";
+ if ($BUILD_TYPE == "P") {
+ echo "&nbsp;(No automated tests)";
+ } elseif ($boxes == -2) {
+ echo "&nbsp;(No expected tests)";
+ } else {
+ echo "&nbsp;(unexpected test boxes)";
+ }
+ }
+ echo "</a>\n";
+}
+

Back to the top