Changeset 9473e04 in rtems-testing


Ignore:
Timestamp:
Sep 17, 2009, 1:21:33 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
6603d17
Parents:
740a0b0
Message:

2009-09-17 Joel Sherrill <joel.sherrill@…>

  • generate_coverage_html: Drop uncovered percentage column. Mark 100% numbers as green.
Location:
rtems-coverage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    r740a0b0 r9473e04  
     12009-09-17      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * generate_coverage_html: Drop uncovered percentage column. Mark 100%
     4        numbers as green.
     5
    162009-09-16      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • rtems-coverage/generate_coverage_html

    r740a0b0 r9473e04  
    8585          sed -e 's/^.*Target: *//' | sort -u | cut -d'-' -f1`
    8686    echo "<table class=\"stats-table\" cellspacing=\"1\" cellpadding=\"2\">"
    87     echo "<tr class=\"stats-table-target\"><td colspan=\"11\"> <strong>" \
     87    echo "<tr class=\"stats-table-target\"><td colspan=\"10\"> <strong>" \
    8888          ${cpu}/${bsp} "</strong></td></tr>"
    8989    echo "<tr class=\"stats-table-top\">"
     
    9595    print_heading Developmental Enabled
    9696    print_heading Uncovered Ranges
    97     print_heading Uncovered Percentage
    9897    print_heading Covered Percentage
    9998    print_heading Uncovered Bytes
     
    107106    #bsp-opt-yyyymmdd-hhmm.tar.bz2
    108107    # sort 1,2 alphabetically, sort 3,4 reverse "version"
    109     ls -1 ${bsp}-*-*-*/row.html | sort -t -  -k 1,2 -k 3,4Vr | xargs -e cat | \
    110        sed \
    111         -e 's/<TD>\(20[0-9][0-9]\)\([0-1][0-9]\)\([0-9][0-9]\)/<TD>\1-\2-\3/' \
    112         -e 's/<TR>/<tr class="stats-table-row">/g' \
    113         -e 's/<TD>/<td align="center">/g'
     108    ls -1 ${bsp}-*-*-*/row.html | sort -t -  -k 1,2 -k 3,4Vr | while read row
     109    do
     110     sed \
     111      -e '2,2s/<TD>\(20[0-9][0-9]\)\([0-1][0-9]\)\([0-9][0-9]\)/<TD>\1-\2-\3/' \
     112      -e '1,1s/<TR>/<tr class="stats-table-row">/' \
     113      -e '7,7s/<TD>0/<td class="stats-target-good">0/' \
     114      -e '9,9s/<TD>100/<td class="stats-target-good">100/' \
     115      -e '10,10s/<TD>0/<td class="stats-target-good">0/' \
     116      -e 's/<TD>/<td align="center">/' \
     117      -e '8d' \
     118      <$row
     119    done
    114120  done
    115121  print_doc_bottom
Note: See TracChangeset for help on using the changeset viewer.