change log for rtems-testing (2011-02-09)

rtems-vc at rtems.org rtems-vc at rtems.org
Wed Feb 9 15:10:06 UTC 2011


 *joel*:
2011-02-09	Joel Sherrill <joel.sherrilL at OARcorp.com>

	* VERSIONS-COVERAGE, generate_coverage_html: Add argument to disable
	plots and graphs. When doing coverage for a single configuration,
	this is important.

M  1.300  rtems-coverage/ChangeLog
M   1.24  rtems-coverage/VERSIONS-COVERAGE
M   1.30  rtems-coverage/generate_coverage_html

diff -u rtems-testing/rtems-coverage/ChangeLog:1.299 rtems-testing/rtems-coverage/ChangeLog:1.300
--- rtems-testing/rtems-coverage/ChangeLog:1.299	Fri Jan 28 15:52:52 2011
+++ rtems-testing/rtems-coverage/ChangeLog	Wed Feb  9 08:54:49 2011
@@ -1,3 +1,9 @@
+2011-02-09	Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+	* VERSIONS-COVERAGE, generate_coverage_html: Add argument to disable
+	plots and graphs. When doing coverage for a single configuration,
+	this is important.
+
 2011-01-28	Joel Sherrill <joel.sherrilL at OARcorp.com>
 
 	* run_coverage: Always be verbose and echo the command line.

diff -u rtems-testing/rtems-coverage/VERSIONS-COVERAGE:1.23 rtems-testing/rtems-coverage/VERSIONS-COVERAGE:1.24
--- rtems-testing/rtems-coverage/VERSIONS-COVERAGE:1.23	Mon Jun  7 18:50:14 2010
+++ rtems-testing/rtems-coverage/VERSIONS-COVERAGE	Wed Feb  9 08:54:49 2011
@@ -2,7 +2,7 @@
 BASEDIR=${HOME}/test-gcc
 
 
-RTEMS_VERSION=4.11
+RTEMS_VERSION=4.10
 case ${RTEMS_VERSION} in
   4.5)  RTEMSDIR=${BASEDIR}/rtems-45
         TARDIR=${BASEDIR}/tarballs/4.5
@@ -24,7 +24,7 @@
         TARDIR=${BASEDIR}/tarballs/4.9
         DEFAULT_EXEEXT=ralf
         ;;
-  4.10) RTEMSDIR=${BASEDIR}/rtems-49
+  4.10) RTEMSDIR=${BASEDIR}/rtems-410
         TARDIR=${BASEDIR}/tarballs/4.10
         DEFAULT_EXEEXT=ralf
         ;;

diff -u rtems-testing/rtems-coverage/generate_coverage_html:1.29 rtems-testing/rtems-coverage/generate_coverage_html:1.30
--- rtems-testing/rtems-coverage/generate_coverage_html:1.29	Wed Jan 26 12:26:00 2011
+++ rtems-testing/rtems-coverage/generate_coverage_html	Wed Feb  9 08:54:49 2011
@@ -47,13 +47,15 @@
   esac
 }
 
+do_plots="yes"
 verbose="no"
 RTEMS_VERSION="CVS Head"
 
-while getopts vr: OPT
+while getopts vpr: OPT
 do
     case "$OPT" in
         r) RTEMS_VERSION="${OPTARG}";;
+        p) do_plots=no ;;
         v) verbose=`toggle ${verbose}` ;;
         *) fatal;;
     esac
@@ -193,12 +195,19 @@
 <table align="center">
 <thead>
 <tr class="heading-title">
-<td width="30%">Result Tables</td>
-<td width="30%">Time Series Graphs</td>
-<td width="30%">TimePlot Graphs</td>
+EOF
+  if [ ${do_plots} = "yes" ] ; then 
+    echo "<td width=\"30%\">Result Tables</td>"
+    echo "<td width=\"30%\">Time Series Graphs</td>"
+    echo "<td width=\"30%\">TimePlot Graphs</td>"
+  else
+    echo "<td>Result Tables</td>"
+  fi
+
+cat <<EOF
 </thead>
 </tr>
-<td>
+<td align="left">
 <ul>
 <li><a href="#O2pd">-O2, POSIX Disabled, Core Only</a></li>
 <li><a href="#O2pD">-O2, POSIX Disabled, Developmental</a></li>
@@ -214,25 +223,28 @@
 <ul>
 EOF
 
-echo "<li><a href=\"graphs/${BSP}-uncovered_percent-d.png\">"
-echo "  Uncovered Percentage (Core)</a></li>"
-echo "<li><a href=\"graphs/${BSP}-uncovered_percent-D.png\">"
-echo "  Uncovered Percentage (Developmental)</a></li>"
-
-echo "<li><a href=\"graphs/${BSP}-total_bytes-d.png\">"
-echo "  Total Bytes Analyzed (Core)</a></li>"
-echo "<li><a href=\"graphs/${BSP}-total_bytes-D.png\">"
-echo "  Total Bytes Analyzed (Developmental)</a></li>"
-
-echo "<li><a href=\"graphs/${BSP}-ranges-d.png\">"
-echo "  Uncovered Ranges (Core)</a></li>"
-echo "<li><a href=\"graphs/${BSP}-ranges-D.png\">"
-echo "  Uncovered Ranges (Developmental)</a></li>"
-
-echo "<li><a href=\"graphs/${BSP}-uncovered_bytes-d.png\">"
-echo "  Uncovered Bytes (Core)</a></li>"
-echo "<li><a href=\"graphs/${BSP}-uncovered_bytes-D.png\">"
-echo "  Uncovered Bytes (Developmental)</a></li>"
+
+  if [ ${do_plots} = "yes" ] ; then 
+    echo "<li><a href=\"graphs/${BSP}-uncovered_percent-d.png\">"
+    echo "  Uncovered Percentage (Core)</a></li>"
+    echo "<li><a href=\"graphs/${BSP}-uncovered_percent-D.png\">"
+    echo "  Uncovered Percentage (Developmental)</a></li>"
+
+    echo "<li><a href=\"graphs/${BSP}-total_bytes-d.png\">"
+    echo "  Total Bytes Analyzed (Core)</a></li>"
+    echo "<li><a href=\"graphs/${BSP}-total_bytes-D.png\">"
+    echo "  Total Bytes Analyzed (Developmental)</a></li>"
+
+    echo "<li><a href=\"graphs/${BSP}-ranges-d.png\">"
+    echo "  Uncovered Ranges (Core)</a></li>"
+    echo "<li><a href=\"graphs/${BSP}-ranges-D.png\">"
+    echo "  Uncovered Ranges (Developmental)</a></li>"
+
+    echo "<li><a href=\"graphs/${BSP}-uncovered_bytes-d.png\">"
+    echo "  Uncovered Bytes (Core)</a></li>"
+    echo "<li><a href=\"graphs/${BSP}-uncovered_bytes-D.png\">"
+    echo "  Uncovered Bytes (Developmental)</a></li>"
+  fi
 
 cat <<EOF
 </ul>
@@ -241,20 +253,22 @@
 <ul>
 EOF
 
-echo "<li><a href=\"graphs/timeplot-${BSP}.html\">"
-echo "  TimePlot Graphs</a></li>"
+  if [ ${do_plots} = "yes" ] ; then 
+    echo "<li><a href=\"graphs/timeplot-${BSP}.html\">"
+    echo "  TimePlot Graphs</a></li>"
 
-echo "<li><a href=\"graphs/timeplot-${BSP}.html#uncovered_percent\">"
-echo "  Uncovered Percentage</a></li>"
+    echo "<li><a href=\"graphs/timeplot-${BSP}.html#uncovered_percent\">"
+    echo "  Uncovered Percentage</a></li>"
 
-echo "<li><a href=\"graphs/timeplot-${BSP}.html#total_bytes\">"
-echo "  Total Bytes Analyzed</a></li>"
+    echo "<li><a href=\"graphs/timeplot-${BSP}.html#total_bytes\">"
+    echo "  Total Bytes Analyzed</a></li>"
 
-echo "<li><a href=\"graphs/timeplot-${BSP}.html#ranges\">"
-echo "  Uncovered Ranges</a></li>"
+    echo "<li><a href=\"graphs/timeplot-${BSP}.html#ranges\">"
+    echo "  Uncovered Ranges</a></li>"
 
-echo "<li><a href=\"graphs/timeplot-${BSP}.html#uncovered_bytes\">"
-echo "  Uncovered Bytes</a></li>"
+    echo "<li><a href=\"graphs/timeplot-${BSP}.html#uncovered_bytes\">"
+    echo "  Uncovered Bytes</a></li>"
+  fi
 
 cat <<EOF
 </ul>
@@ -324,7 +338,7 @@
       cpu=`grep ^Target ${dir}-*/configuration.txt | tail -1 | \
         sed -e 's/^.*://' -e 's/^.*: *\([a-z]*\)-rtems.*$/\1/'`
       echo ${cpu}/${bsp}
-    done | sort -t / -k 1 -k 2 | cut -d'/' -f2
+    done | sort -t / -k 1 -k 2 | cut -d'/' -f2 | sort -u
     # sort cpu,bsp alphabetically
 }
 
@@ -619,6 +633,8 @@
   exit 1
 fi
 
+echo "Generating HTML reports for RTEMS ${RTEMS_VERSION}"
+
 # Put the style sheets in place
 if [ ! -d rtems ] ; then
   mkdir rtems
@@ -656,39 +672,40 @@
   cd $1/${bsp}
   do_perBSPPage ${bsp} >${bsp}.html
 
-  cd $1
-  OUTFIG=${bsp}/graphs
-  OUTDAT=${bsp}/plot_data
-  echo "Generating Static Plots for ${bsp}..."
-  for FIELD in ranges total_bytes uncovered_bytes \
-    uncovered_percent #covered_percent
-  do
-    # Pattern to find in summary.txt
-    case ${FIELD} in
-      ranges)            PATTERN="Uncovered Ranges Found" ;;
-      covered_percent)   PATTERN="Percentage Executed" ;;
-      uncovered_percent) PATTERN="Percentage Not Executed" ;;
-      total_bytes)       PATTERN="Bytes Analyzed" ;;
-      uncovered_bytes)   PATTERN="Bytes Not Executed" ;;
-      *)                 echo "Unknown field (${FIELD})"; exit 1 ;;
-    esac
-
-    for DEV in d D
+  if [ ${do_plots} = "yes" ] ; then 
+    cd $1
+    OUTFIG=${bsp}/graphs
+    OUTDAT=${bsp}/plot_data
+    echo "Generating Static Plots for ${bsp}..."
+    for FIELD in ranges total_bytes uncovered_bytes \
+      uncovered_percent #covered_percent
     do
-      for CONF in Osp${DEV} OsP${DEV} O2p${DEV} O2P${DEV}
+      # Pattern to find in summary.txt
+      case ${FIELD} in
+        ranges)            PATTERN="Uncovered Ranges Found" ;;
+        covered_percent)   PATTERN="Percentage Executed" ;;
+        uncovered_percent) PATTERN="Percentage Not Executed" ;;
+        total_bytes)       PATTERN="Bytes Analyzed" ;;
+        uncovered_bytes)   PATTERN="Bytes Not Executed" ;;
+        *)                 echo "Unknown field (${FIELD})"; exit 1 ;;
+      esac
+
+      for DEV in d D
       do
-        gen_data ${bsp} ${CONF} >${OUTDAT}/${bsp}-${CONF}-${FIELD}.dat
+        for CONF in Osp${DEV} OsP${DEV} O2p${DEV} O2P${DEV}
+        do
+          gen_data ${bsp} ${CONF} >${OUTDAT}/${bsp}-${CONF}-${FIELD}.dat
+        done
+
+        pltfile=${OUTDAT}/${bsp}-${FIELD}-${DEV}.plt
+        gen_plot >${pltfile}
+        gnuplot ${pltfile}
       done
-
-      pltfile=${OUTDAT}/${bsp}-${FIELD}-${DEV}.plt
-      gen_plot >${pltfile}
-      gnuplot ${pltfile}
-
     done
-  done
 
-  echo "Generating Time Plots for ${bsp}..."
-  timeplotfile=${OUTFIG}/timeplot-${bsp}.html
-  gen_timeplot ${bsp} > ${timeplotfile}
+    echo "Generating Time Plots for ${bsp}..."
+    timeplotfile=${OUTFIG}/timeplot-${bsp}.html
+    gen_timeplot ${bsp} > ${timeplotfile}
+  fi
 done
 exit 0



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20110209/4dd54170/attachment.html>


More information about the vc mailing list