Changeset 8c4e654 in rtems-testing


Ignore:
Timestamp:
Jul 27, 2011, 9:59:17 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
edf7492
Parents:
2cedd4b
Message:

2011-07-27 Joel Sherrill <joel.sherrilL@…>

  • VERSIONS-COVERAGE: Back to head.
  • generate_coverage_html: Add version column.
Location:
rtems-coverage
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    r2cedd4b r8c4e654  
     12011-07-27      Joel Sherrill <joel.sherrilL@OARcorp.com>
     2
     3        * VERSIONS-COVERAGE: Back to head.
     4        * generate_coverage_html: Add version column.
     5
    162011-07-25      Joel Sherrill <joel.sherrilL@OARcorp.com>
    27
  • rtems-coverage/VERSIONS-COVERAGE

    r2cedd4b r8c4e654  
    22BASEDIR=${HOME}/test-gcc
    33
    4 RTEMS_VERSION=4.9.6
     4RTEMS_VERSION=4.11
    55case ${RTEMS_VERSION} in
    66  4.5)  RTEMSDIR=${BASEDIR}/rtems-45
  • rtems-coverage/generate_coverage_html

    r2cedd4b r8c4e654  
    300300    print_heading Day
    301301    print_heading Time
     302    print_heading Version
    302303    print_heading Uncovered Ranges
    303304    # skip Uncovered Percentage
     
    311312    while read row
    312313    do
     314     index=`echo ${row} | sed -e 's/row/index/'`
    313315     sed \
     316      -e '1,1s/<TR>/<tr class="stats-table-row">/'  \
    314317      -e '2,2s/<TD>\(20[0-9][0-9]\)\([0-1][0-9]\)\([0-3][0-9]\)/<TD>\1-\2-\3/' \
    315       -e '1,1s/<TR>/<tr class="stats-table-row">/' \
     318      -e '4,13d' \
     319     <$row
     320     version="unknown"
     321     if [ -r ${index} ] ; then
     322       version=`grep heading-title ${index} | \
     323          sed -e 's/<.*>RTEMS //' -e 's/<.*$//'`
     324     fi
     325 
     326     echo "<TD>${version}</TD>"
     327     sed \
     328      -e '1,6d' \
    316329      -e '7,7s/<TD>0/<td class="stats-target-good">0/' \
     330      -e '8d' \
    317331      -e '9,9s/<TD>100/<td class="stats-target-good">100/' \
    318332      -e '10,10s/<TD>0/<td class="stats-target-good">0/' \
    319       -e 's/<[tT][dD]/<td align="center"/' \
    320       -e '4d' \
    321       -e '5d' \
    322       -e '6d' \
    323       -e '8d' \
    324333      <$row
    325     done
     334    done | \
     335     sed -e 's/<[tT][dD]/<td align="center"/'
    326336    echo "</table>"
    327337    echo "</br>"
Note: See TracChangeset for help on using the changeset viewer.