Changeset dd0f3e9 in rtems-testing


Ignore:
Timestamp:
Feb 9, 2011, 2:54:49 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
4d65f83
Parents:
e7d6d832
Message:

2011-02-09 Joel Sherrill <joel.sherrilL@…>

  • VERSIONS-COVERAGE, generate_coverage_html: Add argument to disable plots and graphs. When doing coverage for a single configuration, this is important.
Location:
rtems-coverage
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    re7d6d832 rdd0f3e9  
     12011-02-09      Joel Sherrill <joel.sherrilL@OARcorp.com>
     2
     3        * VERSIONS-COVERAGE, generate_coverage_html: Add argument to disable
     4        plots and graphs. When doing coverage for a single configuration,
     5        this is important.
     6
    172011-01-28      Joel Sherrill <joel.sherrilL@OARcorp.com>
    28
  • rtems-coverage/VERSIONS-COVERAGE

    re7d6d832 rdd0f3e9  
    33
    44
    5 RTEMS_VERSION=4.11
     5RTEMS_VERSION=4.10
    66case ${RTEMS_VERSION} in
    77  4.5)  RTEMSDIR=${BASEDIR}/rtems-45
     
    2525        DEFAULT_EXEEXT=ralf
    2626        ;;
    27   4.10) RTEMSDIR=${BASEDIR}/rtems-49
     27  4.10) RTEMSDIR=${BASEDIR}/rtems-410
    2828        TARDIR=${BASEDIR}/tarballs/4.10
    2929        DEFAULT_EXEEXT=ralf
  • rtems-coverage/generate_coverage_html

    re7d6d832 rdd0f3e9  
    4848}
    4949
     50do_plots="yes"
    5051verbose="no"
    5152RTEMS_VERSION="CVS Head"
    5253
    53 while getopts vr: OPT
     54while getopts vpr: OPT
    5455do
    5556    case "$OPT" in
    5657        r) RTEMS_VERSION="${OPTARG}";;
     58        p) do_plots=no ;;
    5759        v) verbose=`toggle ${verbose}` ;;
    5860        *) fatal;;
     
    194196<thead>
    195197<tr class="heading-title">
    196 <td width="30%">Result Tables</td>
    197 <td width="30%">Time Series Graphs</td>
    198 <td width="30%">TimePlot Graphs</td>
     198EOF
     199  if [ ${do_plots} = "yes" ] ; then
     200    echo "<td width=\"30%\">Result Tables</td>"
     201    echo "<td width=\"30%\">Time Series Graphs</td>"
     202    echo "<td width=\"30%\">TimePlot Graphs</td>"
     203  else
     204    echo "<td>Result Tables</td>"
     205  fi
     206
     207cat <<EOF
    199208</thead>
    200209</tr>
    201 <td>
     210<td align="left">
    202211<ul>
    203212<li><a href="#O2pd">-O2, POSIX Disabled, Core Only</a></li>
     
    215224EOF
    216225
    217 echo "<li><a href=\"graphs/${BSP}-uncovered_percent-d.png\">"
    218 echo "  Uncovered Percentage (Core)</a></li>"
    219 echo "<li><a href=\"graphs/${BSP}-uncovered_percent-D.png\">"
    220 echo "  Uncovered Percentage (Developmental)</a></li>"
    221 
    222 echo "<li><a href=\"graphs/${BSP}-total_bytes-d.png\">"
    223 echo "  Total Bytes Analyzed (Core)</a></li>"
    224 echo "<li><a href=\"graphs/${BSP}-total_bytes-D.png\">"
    225 echo "  Total Bytes Analyzed (Developmental)</a></li>"
    226 
    227 echo "<li><a href=\"graphs/${BSP}-ranges-d.png\">"
    228 echo "  Uncovered Ranges (Core)</a></li>"
    229 echo "<li><a href=\"graphs/${BSP}-ranges-D.png\">"
    230 echo "  Uncovered Ranges (Developmental)</a></li>"
    231 
    232 echo "<li><a href=\"graphs/${BSP}-uncovered_bytes-d.png\">"
    233 echo "  Uncovered Bytes (Core)</a></li>"
    234 echo "<li><a href=\"graphs/${BSP}-uncovered_bytes-D.png\">"
    235 echo "  Uncovered Bytes (Developmental)</a></li>"
     226
     227  if [ ${do_plots} = "yes" ] ; then
     228    echo "<li><a href=\"graphs/${BSP}-uncovered_percent-d.png\">"
     229    echo "  Uncovered Percentage (Core)</a></li>"
     230    echo "<li><a href=\"graphs/${BSP}-uncovered_percent-D.png\">"
     231    echo "  Uncovered Percentage (Developmental)</a></li>"
     232
     233    echo "<li><a href=\"graphs/${BSP}-total_bytes-d.png\">"
     234    echo "  Total Bytes Analyzed (Core)</a></li>"
     235    echo "<li><a href=\"graphs/${BSP}-total_bytes-D.png\">"
     236    echo "  Total Bytes Analyzed (Developmental)</a></li>"
     237
     238    echo "<li><a href=\"graphs/${BSP}-ranges-d.png\">"
     239    echo "  Uncovered Ranges (Core)</a></li>"
     240    echo "<li><a href=\"graphs/${BSP}-ranges-D.png\">"
     241    echo "  Uncovered Ranges (Developmental)</a></li>"
     242
     243    echo "<li><a href=\"graphs/${BSP}-uncovered_bytes-d.png\">"
     244    echo "  Uncovered Bytes (Core)</a></li>"
     245    echo "<li><a href=\"graphs/${BSP}-uncovered_bytes-D.png\">"
     246    echo "  Uncovered Bytes (Developmental)</a></li>"
     247  fi
    236248
    237249cat <<EOF
     
    242254EOF
    243255
    244 echo "<li><a href=\"graphs/timeplot-${BSP}.html\">"
    245 echo "  TimePlot Graphs</a></li>"
    246 
    247 echo "<li><a href=\"graphs/timeplot-${BSP}.html#uncovered_percent\">"
    248 echo "  Uncovered Percentage</a></li>"
    249 
    250 echo "<li><a href=\"graphs/timeplot-${BSP}.html#total_bytes\">"
    251 echo "  Total Bytes Analyzed</a></li>"
    252 
    253 echo "<li><a href=\"graphs/timeplot-${BSP}.html#ranges\">"
    254 echo "  Uncovered Ranges</a></li>"
    255 
    256 echo "<li><a href=\"graphs/timeplot-${BSP}.html#uncovered_bytes\">"
    257 echo "  Uncovered Bytes</a></li>"
     256  if [ ${do_plots} = "yes" ] ; then
     257    echo "<li><a href=\"graphs/timeplot-${BSP}.html\">"
     258    echo "  TimePlot Graphs</a></li>"
     259
     260    echo "<li><a href=\"graphs/timeplot-${BSP}.html#uncovered_percent\">"
     261    echo "  Uncovered Percentage</a></li>"
     262
     263    echo "<li><a href=\"graphs/timeplot-${BSP}.html#total_bytes\">"
     264    echo "  Total Bytes Analyzed</a></li>"
     265
     266    echo "<li><a href=\"graphs/timeplot-${BSP}.html#ranges\">"
     267    echo "  Uncovered Ranges</a></li>"
     268
     269    echo "<li><a href=\"graphs/timeplot-${BSP}.html#uncovered_bytes\">"
     270    echo "  Uncovered Bytes</a></li>"
     271  fi
    258272
    259273cat <<EOF
     
    325339        sed -e 's/^.*://' -e 's/^.*: *\([a-z]*\)-rtems.*$/\1/'`
    326340      echo ${cpu}/${bsp}
    327     done | sort -t / -k 1 -k 2 | cut -d'/' -f2
     341    done | sort -t / -k 1 -k 2 | cut -d'/' -f2 | sort -u
    328342    # sort cpu,bsp alphabetically
    329343}
     
    620634fi
    621635
     636echo "Generating HTML reports for RTEMS ${RTEMS_VERSION}"
     637
    622638# Put the style sheets in place
    623639if [ ! -d rtems ] ; then
     
    657673  do_perBSPPage ${bsp} >${bsp}.html
    658674
    659   cd $1
    660   OUTFIG=${bsp}/graphs
    661   OUTDAT=${bsp}/plot_data
    662   echo "Generating Static Plots for ${bsp}..."
    663   for FIELD in ranges total_bytes uncovered_bytes \
    664     uncovered_percent #covered_percent
    665   do
    666     # Pattern to find in summary.txt
    667     case ${FIELD} in
    668       ranges)            PATTERN="Uncovered Ranges Found" ;;
    669       covered_percent)   PATTERN="Percentage Executed" ;;
    670       uncovered_percent) PATTERN="Percentage Not Executed" ;;
    671       total_bytes)       PATTERN="Bytes Analyzed" ;;
    672       uncovered_bytes)   PATTERN="Bytes Not Executed" ;;
    673       *)                 echo "Unknown field (${FIELD})"; exit 1 ;;
    674     esac
    675 
    676     for DEV in d D
     675  if [ ${do_plots} = "yes" ] ; then
     676    cd $1
     677    OUTFIG=${bsp}/graphs
     678    OUTDAT=${bsp}/plot_data
     679    echo "Generating Static Plots for ${bsp}..."
     680    for FIELD in ranges total_bytes uncovered_bytes \
     681      uncovered_percent #covered_percent
    677682    do
    678       for CONF in Osp${DEV} OsP${DEV} O2p${DEV} O2P${DEV}
     683      # Pattern to find in summary.txt
     684      case ${FIELD} in
     685        ranges)            PATTERN="Uncovered Ranges Found" ;;
     686        covered_percent)   PATTERN="Percentage Executed" ;;
     687        uncovered_percent) PATTERN="Percentage Not Executed" ;;
     688        total_bytes)       PATTERN="Bytes Analyzed" ;;
     689        uncovered_bytes)   PATTERN="Bytes Not Executed" ;;
     690        *)                 echo "Unknown field (${FIELD})"; exit 1 ;;
     691      esac
     692
     693      for DEV in d D
    679694      do
    680         gen_data ${bsp} ${CONF} >${OUTDAT}/${bsp}-${CONF}-${FIELD}.dat
     695        for CONF in Osp${DEV} OsP${DEV} O2p${DEV} O2P${DEV}
     696        do
     697          gen_data ${bsp} ${CONF} >${OUTDAT}/${bsp}-${CONF}-${FIELD}.dat
     698        done
     699
     700        pltfile=${OUTDAT}/${bsp}-${FIELD}-${DEV}.plt
     701        gen_plot >${pltfile}
     702        gnuplot ${pltfile}
    681703      done
    682 
    683       pltfile=${OUTDAT}/${bsp}-${FIELD}-${DEV}.plt
    684       gen_plot >${pltfile}
    685       gnuplot ${pltfile}
    686 
    687704    done
    688   done
    689 
    690   echo "Generating Time Plots for ${bsp}..."
    691   timeplotfile=${OUTFIG}/timeplot-${bsp}.html
    692   gen_timeplot ${bsp} > ${timeplotfile}
     705
     706    echo "Generating Time Plots for ${bsp}..."
     707    timeplotfile=${OUTFIG}/timeplot-${bsp}.html
     708    gen_timeplot ${bsp} > ${timeplotfile}
     709  fi
    693710done
    694711exit 0
Note: See TracChangeset for help on using the changeset viewer.