Changeset e084b8a in rtems-testing


Ignore:
Timestamp:
Oct 14, 2010, 6:17:51 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
1b0a550
Parents:
36c53fb
Message:

2010-10-14 Joel Sherrill <joel.sherrilL@…>

  • generate_coverage_html: Add uncovered ranges.
Location:
rtems-coverage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    r36c53fb re084b8a  
     12010-10-14      Joel Sherrill <joel.sherrilL@OARcorp.com>
     2
     3        * generate_coverage_html: Add uncovered ranges.
     4
    152010-10-14      Joel Sherrill <joel.sherrilL@OARcorp.com>
    26
  • rtems-coverage/generate_coverage_html

    r36c53fb re084b8a  
    197197echo "<li><a href=\"graphs/${BSP}-uncovered_percent-D.png\">"
    198198echo "  Uncovered Percentage (Developmental)</a></li>"
    199 echo "<li><a href=\"graphs/${BSP}-uncovered_bytes-d.png\">"
    200 echo "  Uncovered Bytes (Core)</a></li>"
    201 
    202 echo "<li><a href=\"graphs/${BSP}-total_bytes-D.png\">"
    203 echo "  Total Bytes Analyzed (Developmental)</a></li>"
     199
    204200echo "<li><a href=\"graphs/${BSP}-total_bytes-d.png\">"
    205201echo "  Total Bytes Analyzed (Core)</a></li>"
     
    207203echo "  Total Bytes Analyzed (Developmental)</a></li>"
    208204
    209 echo "<li><a href=\"graphs/${BSP}-uncovered_bytes-D.png\">"
    210 echo "  Uncovered Bytes (Developmental)</a></li>"
     205echo "<li><a href=\"graphs/${BSP}-ranges-d.png\">"
     206echo "  Uncovered Ranges (Core)</a></li>"
     207echo "<li><a href=\"graphs/${BSP}-ranges-D.png\">"
     208echo "  Uncovered Ranges (Developmental)</a></li>"
     209
    211210echo "<li><a href=\"graphs/${BSP}-uncovered_bytes-d.png\">"
    212211echo "  Uncovered Bytes (Core)</a></li>"
     
    351350  round=
    352351  case ${FIELD} in
     352    ranges)
     353      round=10
     354      min=`round_down ${min} 10 0`
     355      max=`round_up   ${max} 10 1000000`
     356      YLABEL=Ranges
     357      ;;
    353358    covered_percent)
    354359      max=100.0
     
    416421  echo "set yrange [${min}:${max}]"
    417422  echo "set grid"
    418   echo "set xlabel \"Date\\nTime\""
     423  echo "set xlabel \"Date\""
    419424  echo "set ylabel \"${YLABEL}\""
    420425  echo "set title \"${TITLE}\""
     
    436441  do
    437442    timestamp=`echo $s | cut -d'-' -f3-4 | cut -d'/' -f1`
    438     num=`grep "${PATTERN}" $s | cut -d':' -f2`
     443    case ${FIELD} in
     444      ranges)
     445        num=`grep "${PATTERN}" $s | cut -d' ' -f1`
     446        if [ "X${num}" = "X" ] ; then
     447          num=`grep -i "${PATTERN}" $s | cut -d':' -f2`
     448        fi
     449        ;;
     450      *)      num=`grep "${PATTERN}" $s | cut -d':' -f2` ;;
     451    esac
    439452
    440453    Year=`echo ${timestamp} | cut -c1-4`
     
    475488for bsp in ${BSPs}
    476489do
    477   for FIELD in total_bytes uncovered_bytes uncovered_percent #covered_percent
     490  for FIELD in ranges total_bytes uncovered_bytes \
     491    uncovered_percent #covered_percent
    478492  do
    479493    # Pattern to find in summary.txt
    480494    case ${FIELD} in
     495      ranges)            PATTERN="Uncovered Ranges Found" ;;
    481496      covered_percent)   PATTERN="Percentage Executed" ;;
    482497      uncovered_percent) PATTERN="Percentage Not Executed" ;;
Note: See TracChangeset for help on using the changeset viewer.