harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r599387 - in /harmony/enhanced/buildtest/branches/2.0/tools: ./ snapshot/ snapshot/snapshots-table/
Date Thu, 29 Nov 2007 11:24:31 GMT
Author: smishura
Date: Thu Nov 29 03:24:27 2007
New Revision: 599387

URL: http://svn.apache.org/viewvc?rev=599387&view=rev
Log:
Add to the infra scripts from HARMONY-4350:
[site]Script for automatic generation of talbe with snapshots info (testing results, download path, etc)

Added:
    harmony/enhanced/buildtest/branches/2.0/tools/
    harmony/enhanced/buildtest/branches/2.0/tools/snapshot/
    harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/
    harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/print.css   (with props)
    harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/screen.css   (with props)
    harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/site.css   (with props)
    harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/snapshots.pl   (with props)
    harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/snapshots_exp_row.tpl   (with props)
    harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/snapshots_row.tpl   (with props)
    harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/snapshots_table.tpl   (with props)
    harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/testsuites_row.tpl   (with props)
    harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/testsuites_table.tpl   (with props)

Added: harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/print.css
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/print.css?rev=599387&view=auto
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/print.css (added)
+++ harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/print.css Thu Nov 29 03:24:27 2007
@@ -0,0 +1,36 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements. See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License. You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+body {
+    font-family: sans-serif;
+}
+
+#navigationmenu {
+    display: none;
+}
+
+#advertisement {
+    display: none;
+}
+
+#pageHeader {
+    text-align: left;
+}
+
+.backtotop {
+    display: none;
+}

Propchange: harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/print.css
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/screen.css
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/screen.css?rev=599387&view=auto
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/screen.css (added)
+++ harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/screen.css Thu Nov 29 03:24:27 2007
@@ -0,0 +1,49 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements. See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License. You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+#navigationmenu {
+	clear: left;
+    float: left;
+    width: 20%;
+}
+
+#pageHeader {
+    text-align: right;
+}
+
+#harmonyLogo {
+    float: left;
+}
+
+#top { /* Main Content */
+	clear: right;
+	float: right;
+    width: 80%;
+}
+
+h1 {
+	margin-top: 0.67em;
+}
+
+#navigationmenu {
+	margin-top: 0.67em;
+}
+
+
+#pageFooter {
+    clear: both;
+}

Propchange: harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/screen.css
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/site.css
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/site.css?rev=599387&view=auto
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/site.css (added)
+++ harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/site.css Thu Nov 29 03:24:27 2007
@@ -0,0 +1,267 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements. See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License. You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+body {
+    background-color: white;
+    color: black;
+    text-align: left;
+    font-family: Verdana, Arial, Helvetica, sans-serif;
+    font-size: small;
+}
+
+
+#pageHeader {
+    padding-bottom: 5px;
+    border-bottom: 1px solid gray;
+    margin-bottom: 5px;
+}
+
+#pageFooter {
+    margin-top: 5px;
+    border-top: 1px solid gray;
+    padding-top: 5px;
+}
+
+
+p.menuItem {
+    padding: 0pt;
+    margin: 0pt;
+    font-weight: bold;
+}
+
+#navigationmenu ul {
+    margin-top: 0pt;
+}
+
+li.menuItem {
+    margin-left: 0pt;
+}
+
+h1 {
+    font-weight: bold;
+    font-size: 115%;
+    background-color: #525D76;
+    color: white;
+    padding: 2pt;
+    margin-left: 0pt;
+}
+
+h2 {
+    font-weight: bold;
+    font-size: 110%;
+    background-color: #828DA6;
+    color: white;
+    padding: 2pt;
+    margin-left: 10pt;
+}
+
+h3 {
+    font-weight: bold;
+    margin-left: 20pt;
+    margin-top: 5pt;
+    margin-right: 0pt;
+    margin-bottom: 5pt;
+    font-size: 105%;
+}
+
+ol#TOC {
+    font-weight: bold;
+    font-size: 100%;
+    list-style-type: none;
+    margin-left: 10pt;
+    }
+
+ol#TOC li {
+    margin-left: 0pt;
+}
+
+ol#TOC ol {
+    list-style-type: none;
+    font-weight: lighter;
+}
+
+ol#TOC ol ol {
+    list-style-type: none;
+    font-weight: lighter;
+}
+
+a:link {
+    color:#525D76;
+}
+
+p {
+    padding-left: 2pt;
+    margin-left: 20pt;
+}
+
+td.TableCell {
+    vertical-align: top;
+    text-align: left;
+    background-color: #CCEEF8;
+}
+
+td.OddRowCell {
+    vertical-align: top;
+    text-align: left;
+    background-color: #CCFFCC;
+}
+
+th.TableHeading {
+    background-color: #039acc;
+    text-align: center;
+    color: white;
+    padding: 2pt;
+}
+
+table {
+    margin-left: 10pt;
+    margin-right: 0pt;
+}
+
+img {
+    border: none;
+}
+
+pre {
+    background: #F3F5F7;
+    border: thin solid;
+    border-color: #828DA6;
+    padding: 12pt;
+    margin-right: 10pt;
+    margin-left: 25pt;
+}
+
+.class {
+    font-weight: bold;
+    border-top: none;
+    border-right: none;
+    border-left: none;
+    border-bottom: solid #525D76 2px;
+}
+
+.special {
+    font-weight: bold;
+    text-align: center;
+    color: #525D76;
+    margin-top: 3pt;
+    margin-bottom: 3pt;
+}
+
+.backtotop {
+    margin-left: 0pt;
+}
+
+.backtotop a {
+	color: black;
+}
+
+.note {
+    color: red;
+    font-weight: bolder;
+    font-size: small;
+    margin-top: 5pt;
+    margin-bottom: 0pt;
+}
+
+.notetext {
+    padding-left: 20pt;
+    margin-top: 0pt;
+    font-style: italic;
+    font-size: small;
+    color: black;
+    margin-bottom: 5pt;
+}
+
+li .note {
+    margin-left: 0pt;
+    padding-left: 0pt;
+}
+
+li .notetext {
+    padding-left: 0pt;
+}
+
+.example {
+    font-weight: bolder;
+}
+
+.exampletext {
+    margin-left: 40pt;
+}
+
+.update {
+    color: #A9A9A9;
+    font-size: smaller;
+    font-style: italic;
+}
+
+li {
+    margin-left: 20pt;
+    padding-left: 1pt;
+    padding-top: 1pt;
+    padding-bottom: 1pt;
+    padding-right: 0pt;
+}
+
+ol {
+    list-style-type: decimal;
+}
+
+ul {
+    list-style-type: square;
+}
+
+ul ul {
+    list-style-type: disc;
+}
+
+dl {
+    margin: 5pt;
+}
+
+dd {
+    margin-left: 30pt;
+    margin-top: 5pt;
+    margin-right: 20pt;
+    margin-bottom: 5pt;
+    border-right: none;
+    border-bottom: none;
+    border-left: none;
+    border-top: none;
+    padding-bottom: 8px;
+}
+
+dd p {
+    margin-left: 0pt;
+}
+
+dt {
+    font-weight: bolder;
+    margin-left: 20pt;
+    margin-top: 5pt;
+    margin-right: 0pt;
+    margin-bottom: 5pt;
+    border-top: none;
+    border-right: none;
+    border-bottom: solid #828DA6 1px;
+    border-left: none;
+    padding-bottom: 3px;
+}
+
+code, pre {
+    font-size: 100%;
+}

Propchange: harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/site.css
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/snapshots.pl
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/snapshots.pl?rev=599387&view=auto
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/snapshots.pl (added)
+++ harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/snapshots.pl Thu Nov 29 03:24:27 2007
@@ -0,0 +1,478 @@
+require LWP::UserAgent;
+require HTTP::Request;
+
+#################### User difuned variables ####################
+
+#User defined variables
+#Proxy server to be used
+#$proxy = "proxy.com";
+
+#testuites results locations
+%test_results_links = (
+                        "file:///home/smishura/public_html/r{SNAPSHOT}"
+                        => "http://people.apache.org/~smishura/r{SNAPSHOT}",
+                        );
+
+#list of testsuites
+%testsuites = (
+               "hdk_by_hdk"      => "Ant Scenario (or Self-Hosting)",
+               "axis2_app"       => "Axis Application",
+               "classlib-test"   => "Classlib tests",
+               "dacapo"          => "Dacapo",
+               "ehwa"            => "Eclipse Hello World Application",
+               "eut"             => "Eclipse 3.2 Unit Tests",
+               "eut33"           => "Eclipse 3.3 Unit Tests",
+               "tptp"            => "Eclipse TPTP Tests",
+               "func"            => "Functional Test Suite",
+               "gut"             => "Geronimo Unit Tests",
+               "jdktools-test"   => "JDKTools Tests",
+               "JettyScenario"   => "Jetty scenario",
+               "scimark"         => "Scimark",
+               "struts_test"     => "Struts",
+               "tomcat-scenario" => "Tomcat scenario",
+               "stress"          => "Stress Test Suite",
+               "reliability"     => "Reliability Test Suite",
+               "jedit_test"      => "JEdit scenario",
+               "ega"             => "Eclipse Geronimo Application (EGA) scenario x 48h",
+               "drlvm-test"      => "DRLVM tests",
+               "drlvm-reg-test"  => "DRLVM regression tests",
+               "vtsvm"           => "VTS VM Test Suite"
+);   
+
+#list of platforms
+%platforms = ("WIN32" => "Windows_x86",
+              "LIN32" => "Linux_x86",
+              "WIN64" => "Windows_x86_64",
+              "LIN64" => "Linux_x86_64");
+
+#verbose printing
+#$verbose = 1;
+
+#Hide strings from snapshot results if there no results obtained for the testsuite
+#$hide_no_results = 1;
+
+#Directiry for caching testing data
+$cache_dir = "./cache";
+
+#Time period in seconds when script will try to download test reults not contained
+#in cache
+$snapshot_exp_period = 1000000; #1000000 - is about 11 days
+
+#Time period in seconds when script will try to (re)collect results even they are 
+#in cache
+$cache_lag = 300000; #300000 - is about 3 days
+
+#snapshots list page
+$snapshots_page = "http://people.apache.org/builds/harmony/snapshots";
+
+#template for snapshots summary table
+$snapshots_table_template = "snapshots_table.tpl";
+
+#template for snapshots summary table row
+$snapshot_row_template = "snapshots_row.tpl";
+
+#template for snapshots summary table row with removed binaries
+$snapshot_exp_row_template = "snapshots_exp_row.tpl";
+
+#template for testsuites summary table
+$testsuites_table_template = "testsuites_table.tpl";
+
+#template for testsuites summary table row
+$testsuites_row_template = "testsuites_row.tpl";
+
+
+#snapshots summary output file
+$snapshots_output_file = "snapshots_summary.html";
+
+#generated results base link
+$gen_results_base_link = ".";
+
+#testsuites summary base dir
+$test_results_output_path = ".";
+
+#testsuites summary file
+$test_results_output_file = "index.html";
+
+#################### Subroutines ####################
+
+sub get_result {
+    my $platform = $_[0];
+    my $testsuite = $_[1];
+    my @test_results_links_list = keys(%test_results_links);
+    my $i = 0;
+    #if period for reults update hasn't finished try to load results from all 
+    #the available places
+    while (!exists($testsuites_results{$platform}{$testsuite}) &&  
+                defined($test_results_links_list[$i]) &&
+                ($cur_timestamp - $cache_timestamp) < $snapshot_exp_period) {
+
+        #Generate link to the snapshot results view
+        $snapshots_tests_results = "$test_results_links{$test_results_links_list[$i]}/$platforms{$platform}/$testsuite";
+        $snapshots_tests_results =~ s/\{SNAPSHOT\}/$snapshot/g;
+        $result_text = "<a href=\"$snapshots_tests_results\"><font color=\"{FONT_COLOR}\">{RESULT}</font></a>";
+
+        #Generate link to the snapshot results download
+        $snapshots_tests_results = "$test_results_links_list[$i]/$platforms{$platform}/$testsuite";
+        $snapshots_tests_results =~ s/\{SNAPSHOT\}/$snapshot/g;
+
+
+        #Try to load and parse JUnit results
+        if (!exists($testsuites_results{$platform}{$testsuite})) {
+            #Try to load testsuite status using overview-summary.html info
+            $request = HTTP::Request->new(GET => "$snapshots_tests_results/overview-summary.html");
+            $response = $ua->request($request);
+            if ($response->is_success) {
+                if (defined($verbose)) {
+                    print "Found overview-summary.html r$snapshot, platform: $platforms{$platform}, testsuite: $testsuite\n";
+                    print "Link: $snapshots_tests_results/overview-summary.html\n";
+                }
+                $result = $response->content;
+                if ($result =~ /
+                                 \<td\>\s*([0-9]+)\s*\<\/td\>\s*        #Tests
+                                 \<td\>\s*([0-9]+)\s*\<\/td\>\s*        #Failures
+                                 \<td\>\s*([0-9]+)\s*\<\/td\>\s*        #Errors
+                                 \<td\>\s*([0-9]+\.[0-9]+)\%\s*\<\/td\> #Success rate
+                               /xigsm) {
+
+                    #gathered new data 
+                    $data_updated = 1;
+
+                    $result_data = "$4% ($1)";
+                    $failures = $2 + $3;
+                    $result_text =~ s/\{RESULT\}/$result_data/g;
+                    if ($failures > 0) {
+                        $result_text =~ s/\{FONT_COLOR\}/red/g;
+                        $testsuites_results{$platform}{$testsuite} = $result_text;
+                        $testsuites_statuses{$platform}{$testsuite} = -1;
+
+                        if (defined($verbose)) {
+                            print "STATUS: FAILED, $result_data!\n";
+                        }
+                    } else {
+                        $result_text =~ s/\{FONT_COLOR\}/green/g;
+                        $testsuites_results{$platform}{$testsuite} = $result_text;
+                        $testsuites_statuses{$platform}{$testsuite} = 1;
+
+                        if (defined($verbose)) {
+                            print "STATUS: PASSED, $result_data!\n";
+                        }
+                    }
+                    next;
+                }
+            } else {
+                if (defined($verbose)) {
+                    print "Can't download overview-summary.html for r$snapshot, platform: $platforms{$platform}, testsuite: $testsuite\n";
+                    print "Link: $snapshots_tests_results/overview-summary.html\n";
+                }
+            }
+        }
+
+        #If JUnit results were not found try to load EUT results in special 
+        #representation
+        if (!exists($testsuites_results{$platform}{$testsuite})) {
+            #Try to load testsuite status using index.html info
+            $request = HTTP::Request->new(GET => "$snapshots_tests_results/index.html");
+            $response = $ua->request($request);
+            if ($response->is_success) {
+                if (defined($verbose)) {
+                    print "Found index.html r$snapshot, platform: $platforms{$platform}, testsuite: $testsuite\n";
+                    print "Link: $snapshots_tests_results/index.html\n";
+                }
+                $result = $response->content;
+                if ($result =~ /
+                                \<td\>\s*[0-9]+\s*\<\/td\>\s*           #Tests
+                                \<td\>\s*([0-9]+)\s*\<\/td\>\s*         #Sudden Failures -> $1
+                                \<td\>\s*([0-9]+)\s*\<\/td\>\s*         #Sudden Errors   -> $2
+                                \<td\>\s*([0-9]+)\s*\<\/td\>\s*         #Sudden Crashes  -> $3
+                                \<td\>\s*[0-9]+\.[0-9]+\%\s*\<\/td\>    #Success rate
+                                .*?                                     #Skip the data between 2 tables
+                                \<td\>\s*([0-9]+)\s*\<\/td\>\s*         #Tests           -> $4
+                                \<td\>\s*[0-9]+\s*\<\/td\>\s*           #Sudden Failures 
+                                \<td\>\s*[0-9]+\s*\<\/td\>\s*           #Sudden Errors
+                                \<td\>\s*[0-9]+\s*\<\/td\>\s*           #Sudden Crashes
+                                \<td\>\s*([0-9]+\.[0-9]+)\%\s*\<\/td\>  #Success rate    -> $5
+                               /xigsm) {
+
+                    #gathered new data 
+                    $data_updated = 1;
+
+                    $result_data = "$5% ($4)";
+                    $failures = $1 + $2 + $3;
+                    $result_text =~ s/\{RESULT\}/$result_data/g;
+                    if ($failures > 0) {
+                        $result_text =~ s/\{FONT_COLOR\}/red/g;
+                        $testsuites_results{$platform}{$testsuite} = $result_text;
+                        $testsuites_statuses{$platform}{$testsuite} = -1;
+
+                        if (defined($verbose)) {
+                            print "STATUS: FAILED, $result_data!\n";
+                        }
+                    } else {
+                        $result_text =~ s/\{FONT_COLOR\}/green/g;
+                        $testsuites_results{$platform}{$testsuite} = $result_text;
+                        $testsuites_statuses{$platform}{$testsuite} = 1;
+
+                        if (defined($verbose)) {
+                            print "STATUS: PASSED, $result_data!\n";
+                        }
+                    }
+                    next;
+                }
+            } else {
+                if (defined($verbose)) {
+                    print "Can't download index.html for r$snapshot, platform: $platforms{$platform}, testsuite: $testsuite\n";
+                    print "Link: $snapshots_tests_results/overview-summary.html\n";
+                }
+            }
+        }
+
+        #If none of above were found try to load testsuite status using status.txt info
+        $request = HTTP::Request->new(GET => "$snapshots_tests_results/status.txt");
+        $response = $ua->request($request);
+        if ($response->is_success) {
+            if (defined($verbose)) {
+                print "Found status.txt for r$snapshot, platform: $platforms{$platform}, testsuite: $testsuite\n";
+                print "Link: $snapshots_tests_results/status.txt\n";
+            }
+            $result = $response->content;
+
+            #gathered new data 
+            $data_updated = 1;
+
+            if ($result =~ /passed/ig) {
+                $result_text =~ s/\{FONT_COLOR\}/green/g;
+                $result_text =~ s/\{RESULT\}/PASSED/g;
+                $testsuites_results{$platform}{$testsuite} = $result_text;
+                $testsuites_statuses{$platform}{$testsuite} = 1;
+
+                if (defined($verbose)) {
+                    print "STATUS: PASSED!\n";
+                }
+            } else {
+                $result_text =~ s/\{FONT_COLOR\}/red/g;
+                $result_text =~ s/\{RESULT\}/FAILED/g;
+                $testsuites_results{$platform}{$testsuite} = $result_text;
+                $testsuites_statuses{$platform}{$testsuite} = -1;
+
+                if (defined($verbose)) {
+                    print "STATUS: FAILED!\n";
+                }
+            }
+        } else {
+            if (defined($verbose)) {
+                print "Can't download status.txt for r$snapshot, platform: $platforms{$platform}, testsuite: $testsuite\n";
+                print "Link: $snapshots_tests_results/status.txt\n";
+            }
+        }
+       
+        $i++;
+    }
+
+}
+
+
+#################### Main script ####################
+
+# Undef variable to put file one variable.
+undef $/;
+
+$ua = LWP::UserAgent->new;
+$ua->timeout(1000);
+if (defined($proxy)) {
+    $ua->proxy(["http", "ftp"], "$proxy");
+}
+
+$request = HTTP::Request->new(GET => "$snapshots_page");
+$response = $ua->request($request);
+
+%snapshots = ();
+if ($response->is_success) {
+    $data = $response->content;
+    while ($data =~ /.*\[DIR\].*r(\d{6,8}).*(\d{2}\-\w+\-\d{4})/g) {
+        $snapshots{$1} = $2;
+    }
+} else {
+    die "Can't download snapshot page!";
+}
+
+#create directory for cache
+if (!-e "$cache_dir") {
+    mkdir ("$cache_dir", 0755) or die "Can't create folder $cache_dir, please check permissions.";
+}
+
+opendir (CACHE_DIR, $cache_dir) or die "Can't open cache dir: $cache_dir";
+while (defined ($file = readdir(CACHE_DIR))) {
+    if ($file =~ /([0-9]+)\.cache/ && !exists($snapshots{$1})) {
+        $snapshots{$1} = "";
+    }
+}
+
+$row_num = 1;
+open (SNAPSHOTS_TABLE, "< $snapshots_table_template") or die "Can't open template file $snapshots_table_template.";
+$table_template = <SNAPSHOTS_TABLE>;
+close(SNAPSHOTS_TABLE);
+
+foreach $snapshot (reverse(sort(keys %snapshots))) {
+    if (($row_num % 2) > 0) {
+        $row_type = "OddRowCell";
+    } else {
+        $row_type = "TableCell";
+    }
+    $row_num++;
+
+    #This is the main loop for gathering testing results for each platform and 
+    #each testsuite
+    %testsuites_results = ();
+    %testsuites_statuses = ();
+
+    $cache_timestamp = 0;
+    $data_updated = 0;
+
+    #Check if snapshot binaries files were removed from snapshots page
+    #in case if it is removed we don't add links to binaries in main table
+    if ($snapshots{$snapshot}) {
+        open (SNAPSHOTS_ROW, "< $snapshot_row_template") or die "Can't open template file $snapshot_row_template.";
+    } else {
+        open (SNAPSHOTS_ROW, "< $snapshot_exp_row_template") or die "Can't open template file $snapshot_row_template.";
+    }
+    $snapshots_row = <SNAPSHOTS_ROW>;
+    close(SNAPSHOTS_ROW);
+
+    $snapshot_cache_file = $cache_dir . "/" . $snapshot . "." . cache;
+    open (CACHE_DATA, "< $snapshot_cache_file");
+    $snapshot_cache_data = <CACHE_DATA>;
+    close(CACHE_DATA);
+
+    $cur_timestamp = time;
+
+    if ($snapshot_cache_data) {
+        if (defined($verbose)) {
+            print "Cache file loaded: $snapshot_cache_file\n";
+        }
+        #Parse cachefile timestamp
+        if ($snapshot_cache_data =~ /TIMESTAMP\:\s*([0-9]*)/g) {
+            $cache_timestamp = $1;
+        }
+        #Parse snapshot date
+        if (($snapshot_cache_data =~ /SNAPSHOT_DATE\:\s*(.*?)\;/g) && $1) {
+            $snapshots{$snapshot} = $1;
+        }
+        #Parse cachefile data if cache is older than $cache_lag
+        if ($cache_timestamp && (($cur_timestamp - $cache_timestamp) > $cache_lag)) {
+            while ($snapshot_cache_data =~ /PLATFORM:(.*?);TESTSUITE:(.*?);STATUS:(.*?);TEXT:(.*?);/gsmi) {
+                $testsuites_results{$1}{$2} = $4;
+                $testsuites_statuses{$1}{$2} = $3;
+            }
+        }
+    } else {
+        if (defined($verbose)) {
+            print "Cache file not found: $snapshot_cache_file\n";
+        }
+    }
+
+    if (!$cache_timestamp) {
+        $cache_timestamp = $cur_timestamp;
+    }
+
+
+    $snapshots_row =~ s/\{TABLE_CELL_TYPE\}/$row_type/g;
+    $snapshots_row =~ s/\{SNAPSHOT_NUM\}/$snapshot/g;
+    $snapshots_row =~ s/\{DATE\}/$snapshots{$snapshot}/g;
+    $snapshots_row =~ s/\{RES_BASE_LINK\}/$gen_results_base_link/g;
+
+    foreach $platform (keys %platforms) {
+        $passed = 0;
+        $failed = 0;
+
+        foreach $testsuite (keys %testsuites) {
+            get_result($platform, $testsuite);
+
+            if ($testsuites_statuses{$platform}{$testsuite} > 0) {
+                $passed++;
+            } elsif ($testsuites_statuses{$platform}{$testsuite} < 0) {
+                $failed++;
+            }
+        }
+        $snapshots_row =~ s/\{$platform\_PASSED\}/$passed/g;
+        $snapshots_row =~ s/\{$platform\_FAILED\}/$failed/g;
+    }
+
+    #We needd to update snapshot testing results table and cache file only if 
+    #some new data was downloaded or if table or cachefile were removed
+    if ($data_updated || 
+            !-e "$test_results_output_path/r$snapshot/$test_results_output_file" ||
+            !-e "$snapshot_cache_file") {
+        #start generation of summary table of testing results for single snapshot
+        #open table template
+        open (TESTSUITES_TABLE, "< $testsuites_table_template") or die "Can't open template file $testsuites_table_template.";
+        $testsuites_table = <TESTSUITES_TABLE>;
+        close(TESTSUITES_TABLE);
+    
+        $noinfo_text = "N/A";
+    
+        #store tests data in table and cachefile
+        $snapshot_cache_data =  "TIMESTAMP:$cache_timestamp\n";
+        $snapshot_cache_data .= "SNAPSHOT_DATE:$snapshots{$snapshot};\n";
+        $testsuites_table =~ s/\{SNAPSHOT_NUM\}/$snapshot/g;
+        foreach $testsuite (sort({lc($testsuites{$a}) cmp lc($testsuites{$b}) } keys %testsuites)) {
+            open (TESTSUITES_ROW, "< $testsuites_row_template") or die "Can't open template file $testsuites_row_template.";
+            $testsuites_row = <TESTSUITES_ROW>;
+            close(TESTSUITES_ROW);
+            $testsuites_row =~ s/\{TESTSUITE_NAME\}/$testsuites{$testsuite}/g;
+            $row_has_results = 0;
+            foreach $platform (keys %platforms) {
+                $status = $noinfo_text;
+                if (exists($testsuites_results{$platform}{$testsuite})) {
+                    $row_has_results = 1;
+                    $status = $testsuites_results{$platform}{$testsuite};
+                    $snapshot_cache_data .= "PLATFORM:$platform;TESTSUITE:$testsuite;STATUS:$testsuites_statuses{$platform}{$testsuite};TEXT:$status;\n";
+                }
+                $testsuites_row =~ s/\{$platform\}/$status/g;
+            }
+            if (!defined ($hide_no_results) || $row_has_results) {
+                $testsuites_table =~ s/\{TABLE_ROW\}/$testsuites_row\n\{TABLE_ROW\}/g;
+            }
+        }
+        $testsuites_table =~ s/\{TABLE_ROW\}//g;
+        $time = gmtime;
+        $testsuites_table =~ s/\{TIMESTAMP\}/$time/g;
+        #end generation
+
+        #store generated table and cache file
+        #check if the directory exists and try to create it if not
+        if (!-e "$test_results_output_path/r$snapshot") {
+            mkdir ("$test_results_output_path/r$snapshot", 0755) or die "Can't create folder $test_results_output_path/$snapshot, please check permissions.";
+        }
+        #open file and store table
+        open(TESTSUITES_RES, "> $test_results_output_path/r$snapshot/$test_results_output_file")
+           or die "Can't open file $test_results_output_path/r$snapshot/$test_results_output_file to save tests results, please check path and permissions.";
+        print TESTSUITES_RES $testsuites_table;
+        close(TESTSUITES_RES);
+        #end store generated table
+
+        #open cache file and store data
+        open (CACHE_DATA, "> $snapshot_cache_file")
+           or die "Can't open file $snapshot_cache_file to save cache data, please check path and permissions.";
+        print CACHE_DATA $snapshot_cache_data;
+        close(CACHE_DATA);
+        #end store cache data
+    } else {
+        if (defined($verbose)) {
+            print "No new data downloaded for snapshot r$snapshot\n";
+        }
+    }
+
+    #add row to snapshots summary table
+    $table_template =~ s/\{TABLE_ROW\}/$snapshots_row\{TABLE_ROW\}/g;
+}
+$table_template =~ s/\{TABLE_ROW\}//g;
+
+$time = gmtime;
+$table_template =~ s/\{TIMESTAMP\}/$time/g;
+
+#Get tests results
+open(OUTPUT_FILE, "> $snapshots_output_file")  
+    or die "Can't open file $snapshots_output_file to save output, please check path permissions.";
+print OUTPUT_FILE $table_template;
+close(OUTPUT_FILE);
+

Propchange: harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/snapshots.pl
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/snapshots_exp_row.tpl
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/snapshots_exp_row.tpl?rev=599387&view=auto
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/snapshots_exp_row.tpl (added)
+++ harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/snapshots_exp_row.tpl Thu Nov 29 03:24:27 2007
@@ -0,0 +1,42 @@
+        <tr>
+        <td class="{TABLE_CELL_TYPE}" colspan="1" rowspan="1">
+                {SNAPSHOT_NUM}
+              <br>
+              <br>
+            {DATE}
+            
+        </td>
+
+                        <td class="{TABLE_CELL_TYPE}" colspan="3" rowspan="1">
+    
+                
+                <a href="{RES_BASE_LINK}/r{SNAPSHOT_NUM}/index.html">
+                  validation passed: <font color="green">{WIN32_PASSED}</font><br>failed: <font color="red">{WIN32_FAILED}</font>
+                </a>
+            
+        </td>
+                                <td class="{TABLE_CELL_TYPE}" colspan="3" rowspan="1">
+    
+                
+                <a href="{RES_BASE_LINK}/r{SNAPSHOT_NUM}/index.html">
+                  validation passed: <font color="green">{LIN32_PASSED}</font><br>failed: <font color="red">{LIN32_FAILED}</font>
+                </a>
+            
+        </td>
+                                <td class="{TABLE_CELL_TYPE}" colspan="3" rowspan="1">
+    
+                
+                <a href="{RES_BASE_LINK}/r{SNAPSHOT_NUM}/index.html">
+                  validation passed: <font color="green">{WIN64_PASSED}</font><br>failed: <font color="red">{WIN64_FAILED}</font>
+                </a>
+            
+        </td>
+                                <td class="{TABLE_CELL_TYPE}" colspan="3" rowspan="1">
+    
+                
+                <a href="{RES_BASE_LINK}/r{SNAPSHOT_NUM}/index.html">
+                  validation passed: <font color="green">{LIN64_PASSED}</font><br>failed: <font color="red">{LIN64_FAILED}</font>
+                </a>
+            
+        </td>
+        </tr>

Propchange: harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/snapshots_exp_row.tpl
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/snapshots_row.tpl
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/snapshots_row.tpl?rev=599387&view=auto
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/snapshots_row.tpl (added)
+++ harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/snapshots_row.tpl Thu Nov 29 03:24:27 2007
@@ -0,0 +1,210 @@
+        <tr>
+        <td class="{TABLE_CELL_TYPE}" colspan="1" rowspan="2">
+                {SNAPSHOT_NUM}
+              <br>
+              <br>
+            {DATE}
+            
+        </td>
+
+        <td class="{TABLE_CELL_TYPE}" colspan="1" rowspan="1">
+              <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-jre-r{SNAPSHOT_NUM}-windows-x86-32-snapshot.zip">download (zip)</a><br>
+              <br>
+              <small><em>
+                <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-jre-r{SNAPSHOT_NUM}-windows-x86-32-snapshot.zip.md5">md5</a>
+              </em></small>
+              <br>
+              <small><em>
+                <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-jre-r{SNAPSHOT_NUM}-windows-x86-32-snapshot.zip.sha">sha</a>
+              </em></small>
+        </td>
+              <td class="{TABLE_CELL_TYPE}" colspan="1" rowspan="1">
+    
+                
+              <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-jdk-r{SNAPSHOT_NUM}-windows-x86-32-snapshot.zip">download (zip)</a><br>
+              <br>
+              <small><em>
+                <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-jdk-r{SNAPSHOT_NUM}-windows-x86-32-snapshot.zip.md5">md5</a>
+              </em></small>
+              <br>
+              <small><em>
+                <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-jdk-r{SNAPSHOT_NUM}-windows-x86-32-snapshot.zip.sha">sha</a>
+              </em></small>
+            
+        </td>
+                                <td class="{TABLE_CELL_TYPE}" colspan="1" rowspan="1">
+    
+                
+              <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-hdk-r{SNAPSHOT_NUM}-windows-x86-32-snapshot.zip">download (zip)</a><br>
+              <br>
+              <small><em>
+                <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-hdk-r{SNAPSHOT_NUM}-windows-x86-32-snapshot.zip.md5">md5</a>
+              </em></small>
+              <br>
+              <small><em>
+                <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-hdk-r{SNAPSHOT_NUM}-windows-x86-32-snapshot.zip.sha">sha</a>
+              </em></small>
+            
+        </td>
+                                <td class="{TABLE_CELL_TYPE}" colspan="1" rowspan="1">
+    
+                
+              <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-jre-r{SNAPSHOT_NUM}-linux-x86-32-snapshot.tar.gz">download (tar.gz)</a><br>
+              <br>
+              <small><em>
+                <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-jre-r{SNAPSHOT_NUM}-linux-x86-32-snapshot.tar.gz.md5">md5</a>
+              </em></small>
+              <br>
+              <small><em>
+                <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-jre-r{SNAPSHOT_NUM}-linux-x86-32-snapshot.tar.gz.sha">sha</a>
+              </em></small>
+            
+        </td>
+                                <td class="{TABLE_CELL_TYPE}" colspan="1" rowspan="1">
+    
+                
+              <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-jdk-r{SNAPSHOT_NUM}-linux-x86-32-snapshot.tar.gz">download (tar.gz)</a><br>
+              <br>
+              <small><em>
+                <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-jdk-r{SNAPSHOT_NUM}-linux-x86-32-snapshot.tar.gz.md5">md5</a>
+              </em></small>
+              <br>
+              <small><em>
+                <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-jdk-r{SNAPSHOT_NUM}-linux-x86-32-snapshot.tar.gz.sha">sha</a>
+              </em></small>
+            
+        </td>
+                                <td class="{TABLE_CELL_TYPE}" colspan="1" rowspan="1">
+    
+                
+
+              <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-hdk-r{SNAPSHOT_NUM}-linux-x86-32-snapshot.tar.gz">download (tar.gz)</a><br>
+              <br>
+              <small><em>
+                <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-hdk-r{SNAPSHOT_NUM}-linux-x86-32-snapshot.tar.gz.md5">md5</a>
+              </em></small>
+              <br>
+              <small><em>
+                <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-hdk-r{SNAPSHOT_NUM}-linux-x86-32-snapshot.tar.gz.sha">sha</a>
+              </em></small>
+            
+        </td>
+                                <td class="{TABLE_CELL_TYPE}" colspan="1" rowspan="1">
+    
+                
+              <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-jre-r{SNAPSHOT_NUM}-windows-x86_64-64-snapshot.zip">download (zip)</a><br>
+              <br>
+              <small><em>
+                <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-jre-r{SNAPSHOT_NUM}-windows-x86_64-64-snapshot.zip.md5">md5</a>
+              </em></small>
+              <br>
+              <small><em>
+                <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-jre-r{SNAPSHOT_NUM}-windows-x86_64-64-snapshot.zip.sha">sha</a>
+              </em></small>
+            
+        </td>
+                                <td class="{TABLE_CELL_TYPE}" colspan="1" rowspan="1">
+    
+                
+              <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-jdk-r{SNAPSHOT_NUM}-windows-x86_64-64-snapshot.zip">download (zip)</a><br>
+              <br>
+              <small><em>
+                <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-jdk-r{SNAPSHOT_NUM}-windows-x86_64-64-snapshot.zip.md5">md5</a>
+              </em></small>
+              <br>
+              <small><em>
+                <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-jdk-r{SNAPSHOT_NUM}-windows-x86_64-64-snapshot.zip.sha">sha</a>
+              </em></small>
+            
+        </td>
+                                <td class="{TABLE_CELL_TYPE}" colspan="1" rowspan="1">
+    
+                
+              <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-hdk-r{SNAPSHOT_NUM}-windows-x86_64-64-snapshot.zip">download (zip)</a><br>
+              <br>
+              <small><em>
+                <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-hdk-r{SNAPSHOT_NUM}-windows-x86_64-64-snapshot.zip.md5">md5</a>
+              </em></small>
+              <br>
+              <small><em>
+                <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-hdk-r{SNAPSHOT_NUM}-windows-x86_64-64-snapshot.zip.sha">sha</a>
+              </em></small>
+            
+        </td>
+                                <td class="{TABLE_CELL_TYPE}" colspan="1" rowspan="1">
+    
+                
+              <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-jre-r{SNAPSHOT_NUM}-linux-x86_64-64-snapshot.tar.gz">download (tar.gz)</a><br>
+              <br>
+              <small><em>
+                <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-jre-r{SNAPSHOT_NUM}-linux-x86_64-64-snapshot.tar.gz.md5">md5</a>
+              </em></small>
+              <br>
+              <small><em>
+                <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-jre-r{SNAPSHOT_NUM}-linux-x86_64-64-snapshot.tar.gz.sha">sha</a>
+              </em></small>
+            
+        </td>
+                                <td class="{TABLE_CELL_TYPE}" colspan="1" rowspan="1">
+    
+                
+              <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-jdk-r{SNAPSHOT_NUM}-linux-x86_64-64-snapshot.tar.gz">download (tar.gz)</a><br>
+              <br>
+              <small><em>
+                <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-jdk-r{SNAPSHOT_NUM}-linux-x86_64-64-snapshot.tar.gz.md5">md5</a>
+              </em></small>
+              <br>
+              <small><em>
+                <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-jdk-r{SNAPSHOT_NUM}-linux-x86_64-64-snapshot.tar.gz.sha">sha</a>
+              </em></small>
+            
+        </td>
+                                <td class="{TABLE_CELL_TYPE}" colspan="1" rowspan="1">
+    
+                
+              <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-hdk-r{SNAPSHOT_NUM}-linux-x86_64-64-snapshot.tar.gz">download (tar.gz)</a><br>
+              <br>
+              <small><em>
+                <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-hdk-r{SNAPSHOT_NUM}-linux-x86_64-64-snapshot.tar.gz.md5">md5</a>
+              </em></small>
+              <br>
+              <small><em>
+                <a href="http://people.apache.org/builds/harmony/snapshots/r{SNAPSHOT_NUM}/apache-harmony-hdk-r{SNAPSHOT_NUM}-linux-x86_64-64-snapshot.tar.gz.sha">sha</a>
+              </em></small>
+            
+        </td>
+            </tr>
+                                <tr>
+                        <td class="{TABLE_CELL_TYPE}" colspan="3" rowspan="1">
+    
+                
+                <a href="{RES_BASE_LINK}/r{SNAPSHOT_NUM}/index.html">
+                  validation passed: <font color="green">{WIN32_PASSED}</font><br>failed: <font color="red">{WIN32_FAILED}</font>
+                </a>
+            
+        </td>
+                                <td class="{TABLE_CELL_TYPE}" colspan="3" rowspan="1">
+    
+                
+                <a href="{RES_BASE_LINK}/r{SNAPSHOT_NUM}/index.html">
+                  validation passed: <font color="green">{LIN32_PASSED}</font><br>failed: <font color="red">{LIN32_FAILED}</font>
+                </a>
+            
+        </td>
+                                <td class="{TABLE_CELL_TYPE}" colspan="3" rowspan="1">
+    
+                
+                <a href="{RES_BASE_LINK}/r{SNAPSHOT_NUM}/index.html">
+                  validation passed: <font color="green">{WIN64_PASSED}</font><br>failed: <font color="red">{WIN64_FAILED}</font>
+                </a>
+            
+        </td>
+                                <td class="{TABLE_CELL_TYPE}" colspan="3" rowspan="1">
+    
+                
+                <a href="{RES_BASE_LINK}/r{SNAPSHOT_NUM}/index.html">
+                  validation passed: <font color="green">{LIN64_PASSED}</font><br>failed: <font color="red">{LIN64_FAILED}</font>
+                </a>
+            
+        </td>
+        </tr>

Propchange: harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/snapshots_row.tpl
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/snapshots_table.tpl
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/snapshots_table.tpl?rev=599387&view=auto
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/snapshots_table.tpl (added)
+++ harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/snapshots_table.tpl Thu Nov 29 03:24:27 2007
@@ -0,0 +1,117 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+    <meta name="author" value="Harmony Documentation Team">
+    <meta name="email" value="dev@harmony.apache.org"><title>Apache Harmony - Snapshot Builds and Test Results for Harmony 5.0</title>
+              
+    <link rel="stylesheet" type="text/css" href="site.css" media="all">
+    <link rel="stylesheet" type="text/css" href="screen.css" media="screen">
+    <link rel="stylesheet" type="text/css" href="print.css" media="print">
+  </head>
+
+  <body>
+
+  &nbsp;&nbsp;&nbsp;Document last update: {TIMESTAMP} GMT
+         <div>
+                                                        <h1>
+      <a name="Snapshot Builds and Test Results for Harmony 5.0">Snapshot Builds and Test Results for Harmony 5.0</a>
+    </h1>
+
+                        <p>
+        Apache offers the following Harmony binaries for the Linux and Windows platforms:
+        <ul>
+          <li>
+            The Java Runtime Environment (JRE) lets you run your Java programs.
+          </li>
+          <li>
+            The Java Development Kit (JDK) lets you build and run your Java programs.
+            It includes javac and other standard JDK tools.
+          </li>
+          <li>
+
+            The Harmony Development Kit (HDK) is targeted at Harmony developers.
+            It includes the pre-built class library and VM binaries, necessary
+            include files, and dependencies. It is not a replacement for the common
+            JDK. 
+          </li>
+        </ul>
+      </p>
+                                <p>
+        These are not official releases of the Apache Software Foundation, nor are they
+        complete or compatible with the Java specification. They are snapshots provided
+        to make testing and experimentation easier. Results of automatic testing are
+        available.
+      </p>
+
+                                <p class="note">Note</p>
+                                <p class="notetext">
+        It's recomended that you set <code>JAVA_HOME to</code> the
+        root directory of the distribution, and put the <code>bin/</code> directory
+        on your <code>PATH</code>.
+      </p>
+  <table>
+    <tbody>
+      <tr>
+        <th class="TableHeading" colspan="1" rowspan="2">
+          SVN revision
+        </th>
+        <th class="TableHeading" colspan="3" rowspan="1">
+          Windows 32
+        </th>
+        <th class="TableHeading" colspan="3" rowspan="1">
+          Linux 32
+        </th>
+        <th class="TableHeading" colspan="3" rowspan="1">
+          Windows 64
+        </th>
+        <th class="TableHeading" colspan="3" rowspan="1">
+          Linux 64
+        </th>
+      </tr>
+
+      <tr>
+        <th class="TableHeading" colspan="1" rowspan="1">
+          JRE
+        </th>
+        <th class="TableHeading" colspan="1" rowspan="1">
+          JDK
+        </th>
+        <th class="TableHeading" colspan="1" rowspan="1">
+          HDK
+        </th>
+        <th class="TableHeading" colspan="1" rowspan="1">
+          JRE
+        </th>
+        <th class="TableHeading" colspan="1" rowspan="1">
+          JDK
+        </th>
+        <th class="TableHeading" colspan="1" rowspan="1">
+          HDK
+        </th>
+        <th class="TableHeading" colspan="1" rowspan="1">
+          JRE
+        </th>
+        <th class="TableHeading" colspan="1" rowspan="1">
+          JDK
+        </th>
+        <th class="TableHeading" colspan="1" rowspan="1">
+          HDK
+        </th>
+        <th class="TableHeading" colspan="1" rowspan="1">
+          JRE
+        </th>
+        <th class="TableHeading" colspan="1" rowspan="1">
+          JDK
+        </th>
+        <th class="TableHeading" colspan="1" rowspan="1">
+          HDK
+        </th>
+      </tr>
+
+{TABLE_ROW}
+
+    </tbody>
+  </table>
+  </body>
+</html>

Propchange: harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/snapshots_table.tpl
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/testsuites_row.tpl
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/testsuites_row.tpl?rev=599387&view=auto
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/testsuites_row.tpl (added)
+++ harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/testsuites_row.tpl Thu Nov 29 03:24:27 2007
@@ -0,0 +1,15 @@
+    <tr>
+      <td width="30%"><b>{TESTSUITE_NAME}</b></td>
+      <td align="center">
+        {WIN32}
+      </td>
+      <td align="center">
+        {LIN32}
+      </td>
+      <td align="center">
+        {WIN64}
+      </td>
+      <td align="center">
+        {LIN64}
+      </td>
+    </tr>

Propchange: harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/testsuites_row.tpl
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/testsuites_table.tpl
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/testsuites_table.tpl?rev=599387&view=auto
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/testsuites_table.tpl (added)
+++ harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/testsuites_table.tpl Thu Nov 29 03:24:27 2007
@@ -0,0 +1,38 @@
+<html>
+<head>
+  <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
+  <title>Harmony snapshot r{SNAPSHOT_NUM} status page</title>
+</head>
+<body>
+
+<div style="text-align: center;">
+  <big>
+    <span style="font-weight: bold;">
+      Harmony snapshot r{SNAPSHOT_NUM} status page
+    </span><br>
+  </big>
+
+<table style="text-align: left; width: 1008px;" border="1" cellpadding="2" cellspacing="2">
+  <tbody>
+    <tr>
+      <td width="30%">&nbsp;</td>
+      <td>
+        <b>Windows x86 32 bit</b>
+      </td>
+      <td>
+        <b>Linux x86 32 bit</b>
+      </td>
+      <td>
+        <b>Windows x86 64 bit</b>
+      </td>
+      <td>
+        <b>Linux x86 64 bit</b>
+      </td>
+    </tr>
+  {TABLE_ROW}
+  </tbody>
+</table>
+</div>
+&nbsp;&nbsp;&nbsp;Document last update: {TIMESTAMP} GMT
+</body>
+</html>

Propchange: harmony/enhanced/buildtest/branches/2.0/tools/snapshot/snapshots-table/testsuites_table.tpl
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message