stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r653930 - /stdcxx/branches/4.2.x/bin/xcomp.awk
Date Tue, 06 May 2008 21:33:18 GMT
Author: sebor
Date: Tue May  6 14:33:18 2008
New Revision: 653930

URL: http://svn.apache.org/viewvc?rev=653930&view=rev
Log:
2008-05-06  Martin Sebor  <sebor@roguewave.com>

	* bin/xcomp.awk: Copied from trunk.

Added:
    stdcxx/branches/4.2.x/bin/xcomp.awk   (contents, props changed)
      - copied, changed from r653628, stdcxx/trunk/bin/xcomp.awk

Copied: stdcxx/branches/4.2.x/bin/xcomp.awk (from r653628, stdcxx/trunk/bin/xcomp.awk)
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/bin/xcomp.awk?p2=stdcxx/branches/4.2.x/bin/xcomp.awk&p1=stdcxx/trunk/bin/xcomp.awk&r1=653628&r2=653930&rev=653930&view=diff
==============================================================================
--- stdcxx/trunk/bin/xcomp.awk (original)
+++ stdcxx/branches/4.2.x/bin/xcomp.awk Tue May  6 14:33:18 2008
@@ -1233,6 +1233,12 @@
         return
     }
 
+    # create the table header roughly in the following format:
+    #
+    # | ### | component |  1 |  2 |  3 |  4 |  5  |  6  | ... |  16 |
+    # |     |    name   | 8d | 8D | 8s | 8S | 11d | 11D | ... | 15S |
+    # |     |           |     date     |      date      | ... | date|
+
     thead =       "      <thead>\n"
     thead = thead "        <tr class=\"header\">\n"
     thead = thead "          <td rowspan=3 title=\"" \
@@ -1242,6 +1248,9 @@
     thead = thead sectname " name</td>\n"
 
     if (2 == section) {
+        # for tests only, insert a column at offset 2 with the maximum
+        # number of assertions found in the test on the given row across
+        # all build logs
         thead = thead "          <td rowspan=3 "
         thead = thead "title=\"maximum total assertions\">"
         thead = thead "max<br>asserts</td>\n"
@@ -1253,9 +1262,9 @@
 
     colnos = ""
 
-    # the date of the last log
-    lastdate = ""
-    datespan = 0
+    lastdate = ""   # date (M/d) of the last log
+    lastfull = ""   # full date and time of the last log
+    datespan = 0    # number of same consecutive dates
 
     # iterate over the array of section counts for each log file
     # and compose the column headers for each log
@@ -1288,11 +1297,15 @@
         }
 
         if (0 == datespan) {
+            # first iteration
             lastdate = date
+            lastfull = fulldate
             datespan = 1
         }
-        else if (date == lastdate)
+        else if (date == lastdate) {
+            # increment the span of the last seen date
             ++datespan
+        }
         else {
             row2 = row2 "          <td"
 
@@ -1300,11 +1313,12 @@
             # for a single log, otherwise the timestamps are most
             # likely different for each log
             if (1 < datespan)
-                row2 = row2 " colspan=" datespan ">" date "</td>\n"
+                row2 = row2 " colspan=" datespan ">" lastdate "</td>\n"
             else
-                row2 = row2 " title=\"" fulldate "\">" date "</td>\n"
+                row2 = row2 " title=\"" lastfull "\">" lastdate "</td>\n"
 
             lastdate = date
+            lastfull = fulldate
             datespan = 1
         }
     }
@@ -1316,9 +1330,9 @@
     # for a single log, otherwise the timestamps are most likely
     # different for each log
     if (1 < datespan)
-        row2 = row2 " colspan=" datespan ">" date "</td>\n"
+        row2 = row2 " colspan=" datespan ">" lastdate "</td>\n"
     else
-        row2 = row2 " title=\"" fulldate "\">" date "</td>\n"
+        row2 = row2 " title=\"" lastfull "\">" lastdate "</td>\n"
 
     row0 = row0 colnos "\n        </tr>\n"
     row1 = row1 "        </tr>\n"

Propchange: stdcxx/branches/4.2.x/bin/xcomp.awk
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: stdcxx/branches/4.2.x/bin/xcomp.awk
------------------------------------------------------------------------------
    svn:executable = *

Propchange: stdcxx/branches/4.2.x/bin/xcomp.awk
------------------------------------------------------------------------------
    svn:keywords = Id



Mime
View raw message