You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2008/05/06 23:38:22 UTC
svn commit: r653932 - /stdcxx/trunk/bin/xcomp.awk
Author: sebor
Date: Tue May 6 14:38:21 2008
New Revision: 653932
URL: http://svn.apache.org/viewvc?rev=653932&view=rev
Log:
2008-05-06 Martin Sebor <se...@roguewave.com>
STDCXX-906
* bin/xcomp.awk (print_section): Corrected the computation
of date ranges. Added comments. This is already on 4.2.x
(inadvertently done in rev 653930).
Modified:
stdcxx/trunk/bin/xcomp.awk
Modified: stdcxx/trunk/bin/xcomp.awk
URL: http://svn.apache.org/viewvc/stdcxx/trunk/bin/xcomp.awk?rev=653932&r1=653931&r2=653932&view=diff
==============================================================================
--- stdcxx/trunk/bin/xcomp.awk (original)
+++ stdcxx/trunk/bin/xcomp.awk Tue May 6 14:38:21 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"