Changeset a72f95b2 in rtems-testing


Ignore:
Timestamp:
Nov 28, 2011, 3:02:20 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
6effcd2
Parents:
8050f87
Message:

2011-11-28 Aleksejs Popovs <me@…>

  • generate_coverage_html, style.css: Google Code-In 2011 task to make the tables sortable on the top level BSP page.
Location:
rtems-coverage
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    r8050f87 ra72f95b2  
     12011-11-28      Aleksejs Popovs <me@popoffka.ru>
     2
     3        * generate_coverage_html, style.css: Google Code-In 2011 task to make
     4        the tables sortable on the top level BSP page.
     5
    162011-11-04      Joel Sherrill <joel.sherrilL@OARcorp.com>
    27
  • rtems-coverage/generate_coverage_html

    r8050f87 ra72f95b2  
    136136<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
    137137<link rel="stylesheet" type="text/css" href="rtems/style.css" media="screen" />
     138<script src="rtems/table.js"></script>
    138139<div class="heading">
    139140<div class="heading-title">RTEMS
     
    148149<body>
    149150<br>
    150 <table class="stats-table" $cellspacing="1" cellpadding="2">
     151<table class="stats-table" cellspacing="1" cellpadding="2">
    151152EOF
    152153}
     
    161162print_heading()
    162163{
    163   echo "<th>"${*}"</th>"
     164  if [ "${*}" = "Day" ] ; then
     165    echo "<th class=\"table-sortable:date\">${*}</th>"
     166  elif [ "${*}" = "Results" ] ; then
     167    echo "<th>${*}</th>"
     168  else
     169    echo "<th class=\"table-sortable:numeric\">${*}</th>"
     170  fi
    164171}
    165172
     
    198205<tr class="heading-title">
    199206EOF
    200   if [ ${do_plots} = "yes" ] ; then 
     207  if [ ${do_plots} = "yes" ] ; then
    201208    echo "<td width=\"30%\">Result Tables</td>"
    202209    echo "<td width=\"30%\">Time Series Graphs</td>"
     
    226233
    227234
    228   if [ ${do_plots} = "yes" ] ; then 
     235  if [ ${do_plots} = "yes" ] ; then
    229236    echo "<li><a href=\"graphs/${BSP}-uncovered_percent-d.png\">"
    230237    echo "  Uncovered Percentage (Core)</a></li>"
     
    255262EOF
    256263
    257   if [ ${do_plots} = "yes" ] ; then 
     264  if [ ${do_plots} = "yes" ] ; then
    258265    echo "<li><a href=\"graphs/timeplot-${BSP}.html\">"
    259266    echo "  TimePlot Graphs</a></li>"
     
    290297  do
    291298    echo "<a name=\"${build}\"></a>"
    292     echo "<table class=\"stats-table\" cellspacing=\"1\" cellpadding=\"2\">"
     299    echo "<table class=\"stats-table table-autosort\" cellspacing=\"1\" cellpadding=\"2\">"
     300    echo "<thead>"
    293301    echo "<tr class=\"stats-table-target\">"
    294302    echo "<td colspan=\"10\">"
     
    307315    print_heading Total Bytes
    308316    print_heading Results
     317    echo "</thead>"
    309318
    310319    first=no
     
    323332          sed -e 's/<.*>RTEMS //' -e 's/<.*$//'`
    324333     fi
    325  
     334
    326335     echo "<TD>${version}</TD>"
    327336     sed \
     
    651660  mkdir rtems
    652661fi
     662
    653663cp ${COVBASE}/style.css rtems/style.css
    654664
     
    660670
    661671echo "Ensuring BSP specific content is in BSP subdirectory"
    662 for bsp in ${BSPs} 
     672for bsp in ${BSPs}
    663673do
    664674  test -d ${bsp}           || mkdir ${bsp}
     
    667677  test -d ${bsp}/graphs    || mkdir ${bsp}/graphs
    668678  cp ${COVBASE}/style.css ${bsp}/rtems/style.css
     679  cp ${COVBASE}/../covoar/table.js ${bsp}/rtems/table.js
     680  cp ${COVBASE}/../covoar/filter.gif ${bsp}/rtems
     681  cp ${COVBASE}/../covoar/05_ascending.gif ${bsp}/rtems
     682  cp ${COVBASE}/../covoar/05_descending.gif ${bsp}/rtems
     683  cp ${COVBASE}/../covoar/05_unsorted.gif ${bsp}/rtems
    669684  mv ${bsp}-* ${bsp} 2>/dev/null
    670685done
     
    684699  do_perBSPPage ${bsp} >${bsp}.html
    685700
    686   if [ ${do_plots} = "yes" ] ; then 
     701  if [ ${do_plots} = "yes" ] ; then
    687702    cd $1
    688703    OUTFIG=${bsp}/graphs
  • rtems-coverage/style.css

    r8050f87 ra72f95b2  
    1 body { 
     1body {
    22    background: rgb(253,253,253);
    33    color: rgb(0,0,0);
     
    99}
    1010
    11 a:link { 
     11a:link {
    1212    color: rgb(180, 50, 50);
    1313    font-family: helvetica, sans-serif;
     
    1515}
    1616
    17 a:visited { 
    18     color: purple; 
     17a:visited {
     18    color: purple;
    1919    font-family: helvetica, sans-serif;
    2020    font-size: 1.0em;
     
    2828
    2929a:active {
    30     color: red; 
     30    color: red;
    3131    font-family: helvetica, sans-serif;
    3232    font-size: 1.0em;
     
    183183    width: 40%;
    184184}
     185th.table-sortable {
     186  background-image:url("unsorted.gif");
     187  cursor: pointer;
     188  background-position: center left;
     189  background-repeat: no-repeat;
     190  padding-left: 15px;
     191}
     192th.table-sorted-asc {
     193  background-image:url("descending.gif");
     194}
     195th.table-sorted-desc {
     196  background-image:url("ascending.gif");
     197}
Note: See TracChangeset for help on using the changeset viewer.