change log for rtems-testing (2011-11-28)

rtems-vc at rtems.org rtems-vc at rtems.org
Mon Nov 28 15:10:04 UTC 2011


 *joel*:
2011-11-28	Aleksejs Popovs <me at popoffka.ru>

	* generate_coverage_html, style.css: Google Code-In 2011 task to make
	the tables sortable on the top level BSP page.

M  1.311  rtems-coverage/ChangeLog
M   1.34  rtems-coverage/generate_coverage_html
M    1.5  rtems-coverage/style.css

diff -u rtems-testing/rtems-coverage/ChangeLog:1.310 rtems-testing/rtems-coverage/ChangeLog:1.311
--- rtems-testing/rtems-coverage/ChangeLog:1.310	Fri Nov  4 14:29:00 2011
+++ rtems-testing/rtems-coverage/ChangeLog	Mon Nov 28 09:02:20 2011
@@ -1,3 +1,8 @@
+2011-11-28	Aleksejs Popovs <me at popoffka.ru>
+
+	* generate_coverage_html, style.css: Google Code-In 2011 task to make
+	the tables sortable on the top level BSP page.
+
 2011-11-04	Joel Sherrill <joel.sherrilL at OARcorp.com>
 
 	* do_coverage: Remove unused variable.

diff -u rtems-testing/rtems-coverage/generate_coverage_html:1.33 rtems-testing/rtems-coverage/generate_coverage_html:1.34
--- rtems-testing/rtems-coverage/generate_coverage_html:1.33	Wed Jul 27 16:59:17 2011
+++ rtems-testing/rtems-coverage/generate_coverage_html	Mon Nov 28 09:02:20 2011
@@ -135,6 +135,7 @@
 <meta http-equiv="Content-Language" content="English" />
 <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
 <link rel="stylesheet" type="text/css" href="rtems/style.css" media="screen" />
+<script src="rtems/table.js"></script>
 <div class="heading">
 <div class="heading-title">RTEMS
 EOF
@@ -147,7 +148,7 @@
 </HEAD>
 <body>
 <br>
-<table class="stats-table" $cellspacing="1" cellpadding="2">
+<table class="stats-table" cellspacing="1" cellpadding="2">
 EOF
 }
 
@@ -160,7 +161,13 @@
 
 print_heading()
 {
-  echo "<th>"${*}"</th>"
+  if [ "${*}" = "Day" ] ; then
+    echo "<th class=\"table-sortable:date\">${*}</th>"
+  elif [ "${*}" = "Results" ] ; then
+    echo "<th>${*}</th>"
+  else
+    echo "<th class=\"table-sortable:numeric\">${*}</th>"
+  fi
 }
 
 # need to use ${1} for parameter
@@ -197,7 +204,7 @@
 <thead>
 <tr class="heading-title">
 EOF
-  if [ ${do_plots} = "yes" ] ; then 
+  if [ ${do_plots} = "yes" ] ; then
     echo "<td width=\"30%\">Result Tables</td>"
     echo "<td width=\"30%\">Time Series Graphs</td>"
     echo "<td width=\"30%\">TimePlot Graphs</td>"
@@ -225,7 +232,7 @@
 EOF
 
 
-  if [ ${do_plots} = "yes" ] ; then 
+  if [ ${do_plots} = "yes" ] ; then
     echo "<li><a href=\"graphs/${BSP}-uncovered_percent-d.png\">"
     echo "  Uncovered Percentage (Core)</a></li>"
     echo "<li><a href=\"graphs/${BSP}-uncovered_percent-D.png\">"
@@ -254,7 +261,7 @@
 <ul>
 EOF
 
-  if [ ${do_plots} = "yes" ] ; then 
+  if [ ${do_plots} = "yes" ] ; then
     echo "<li><a href=\"graphs/timeplot-${BSP}.html\">"
     echo "  TimePlot Graphs</a></li>"
 
@@ -289,7 +296,8 @@
   for build in O2pd O2pD O2Pd O2PD Ospd OspD OsPd OsPD
   do
     echo "<a name=\"${build}\"></a>"
-    echo "<table class=\"stats-table\" cellspacing=\"1\" cellpadding=\"2\">"
+    echo "<table class=\"stats-table table-autosort\" cellspacing=\"1\" cellpadding=\"2\">"
+    echo "<thead>"
     echo "<tr class=\"stats-table-target\">"
     echo "<td colspan=\"10\">"
     echo "<strong>${cpu}/${bsp} `convert_flags ${build}` (${build})</strong>"
@@ -306,6 +314,7 @@
     print_heading Uncovered Bytes
     print_heading Total Bytes
     print_heading Results
+    echo "</thead>"
 
     first=no
     ls -1 ${bsp}-${build}-*-*/row.html | sort -t -  -k 1,2 -k 3,4r | \
@@ -322,7 +331,7 @@
        version=`grep heading-title ${index} | \
           sed -e 's/<.*>RTEMS //' -e 's/<.*$//'`
      fi
-  
+
      echo "<TD>${version}</TD>"
      sed \
       -e '1,6d' \
@@ -650,6 +659,7 @@
 if [ ! -d rtems ] ; then
   mkdir rtems
 fi
+
 cp ${COVBASE}/style.css rtems/style.css
 
 # Find the BSPs and make their directories
@@ -659,13 +669,18 @@
 echo BSPs=${BSPs}
 
 echo "Ensuring BSP specific content is in BSP subdirectory"
-for bsp in ${BSPs} 
+for bsp in ${BSPs}
 do
   test -d ${bsp}           || mkdir ${bsp}
   test -d ${bsp}/rtems     || mkdir ${bsp}/rtems
   test -d ${bsp}/plot_data || mkdir ${bsp}/plot_data
   test -d ${bsp}/graphs    || mkdir ${bsp}/graphs
   cp ${COVBASE}/style.css ${bsp}/rtems/style.css
+  cp ${COVBASE}/../covoar/table.js ${bsp}/rtems/table.js
+  cp ${COVBASE}/../covoar/filter.gif ${bsp}/rtems
+  cp ${COVBASE}/../covoar/05_ascending.gif ${bsp}/rtems
+  cp ${COVBASE}/../covoar/05_descending.gif ${bsp}/rtems
+  cp ${COVBASE}/../covoar/05_unsorted.gif ${bsp}/rtems
   mv ${bsp}-* ${bsp} 2>/dev/null
 done
 
@@ -683,7 +698,7 @@
   cd $1/${bsp}
   do_perBSPPage ${bsp} >${bsp}.html
 
-  if [ ${do_plots} = "yes" ] ; then 
+  if [ ${do_plots} = "yes" ] ; then
     cd $1
     OUTFIG=${bsp}/graphs
     OUTDAT=${bsp}/plot_data

diff -u rtems-testing/rtems-coverage/style.css:1.4 rtems-testing/rtems-coverage/style.css:1.5
--- rtems-testing/rtems-coverage/style.css:1.4	Mon Mar 22 11:32:52 2010
+++ rtems-testing/rtems-coverage/style.css	Mon Nov 28 09:02:20 2011
@@ -1,4 +1,4 @@
-body { 
+body {
     background: rgb(253,253,253);
     color: rgb(0,0,0);
     font-family: helvetica, sans-serif;
@@ -8,14 +8,14 @@
     padding: 0;
 }
 
-a:link { 
+a:link {
     color: rgb(180, 50, 50);
     font-family: helvetica, sans-serif;
     font-size: 1.0em;
 }
 
-a:visited { 
-    color: purple; 
+a:visited {
+    color: purple;
     font-family: helvetica, sans-serif;
     font-size: 1.0em;
 }
@@ -27,7 +27,7 @@
 }
 
 a:active {
-    color: red; 
+    color: red;
     font-family: helvetica, sans-serif;
     font-size: 1.0em;
 }
@@ -182,3 +182,16 @@
     margin-top: 10px;
     width: 40%;
 }
+th.table-sortable {
+  background-image:url("unsorted.gif");
+  cursor: pointer;
+  background-position: center left;
+  background-repeat: no-repeat;
+  padding-left: 15px;
+}
+th.table-sorted-asc {
+  background-image:url("descending.gif");
+}
+th.table-sorted-desc {
+  background-image:url("ascending.gif");
+}
\ No newline at end of file



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20111128/0a7765c1/attachment.html>


More information about the vc mailing list