Changeset 72a2f5a in rtems-testing


Ignore:
Timestamp:
Sep 16, 2009, 7:46:27 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
fa9697c
Parents:
dee6c38
Message:

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

  • VERSIONS-COVERAGE: Add FTPDIR
  • do_coverage: Remove logic to re-run test when coverage file has zero length. Skyeye seems to spuriously do this.
  • generate_coverage_html, style.css: Attempt to add links to information on coverage. Did not render correctly for Glenn in IE8. Works in FF3.
  • run_coverage: New file. Helper to run tests more easily
Location:
rtems-coverage
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    rdee6c38 r72a2f5a  
     12009-09-16      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * VERSIONS-COVERAGE: Add FTPDIR
     4        * do_coverage: Remove logic to re-run test when coverage file has
     5        zero length.  Skyeye seems to spuriously do this.
     6        * generate_coverage_html, style.css: Attempt to add links to
     7        information on coverage.  Did not render correctly for Glenn in
     8        IE8.  Works in FF3.
     9        * run_coverage: New file.  Helper to run tests more easily
     10
    1112009-09-16      Joel Sherrill <joel.sherrill@OARcorp.com>
    212
  • rtems-coverage/VERSIONS-COVERAGE

    rdee6c38 r72a2f5a  
    1717LOGDIR=${BASEDIR}/log
    1818
     19# for publishing results
     20FTPDIR=/home/ftp/pub/rtems/people/joel/coverage/
     21
    1922# These symbols mark the range of the code block we are analyzing.
    2023# If the structure of the linked executable changes, then we need
  • rtems-coverage/do_coverage

    rdee6c38 r72a2f5a  
    7676  esac
    7777}
     78
    7879# parse arguments for these
    7980verbose="no"
     
    473474
    474475  time ${RUNNER} -c *.exe
    475 
    476   # some simulators sometimes produce an empty coverage file.  Fix that.
    477   while [ `wc -c *.cov| grep ^0 | wc -l` -ne 0 ]
    478   do
    479     for f in *.cov
    480     do
    481       sz=`wc -c $f | cut -d' ' -f1`
    482       if [ ${sz} -eq 0 ] ; then
    483         exe=`echo ${f} | sed -e 's/\.cov$//'`
    484         echo "Rerunning ${exe}"
    485         ${RUNNER} -c ${exe}
    486       fi
    487     done
    488   done
    489476else
    490477  echo "Skipping Running tests..."
  • rtems-coverage/generate_coverage_html

    rdee6c38 r72a2f5a  
    4040<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
    4141<link rel="stylesheet" type="text/css" href="rtems/style.css" media="screen" />
    42 </HEAD>
    43 <body>
    4442<div class="heading">RTEMS Coverage Results
    4543EOF
    4644echo "<div class=\"datetime\">"`date`"</div>"
    47 cat <<EOF
     45cat << EOF
     46<div class="info">For more information on coverage analysis in general
     47visit
     48<a href="http://www.rtems.org/wiki/index.php/Coverage_Analysis_Theory">
     49Coverage Analysis Theory</a>.  For information on how the RTEMS Project
     50views coverage analysis, visit
     51<a href="http://www.rtems.org/wiki/index.php/RTEMS_Coverage_Analysis">
     52RTEMS Coverage Testing</a>.
    4853</div>
     54</div>
     55</HEAD>
     56<body>
     57<br>
     58<br>
    4959<table class="stats-table" $cellspacing="1" cellpadding="2">
    5060EOF
  • rtems-coverage/style.css

    rdee6c38 r72a2f5a  
    4141    height: 140px;
    4242    padding-top: 20px;
    43     padding-left: 350px;
     43    padding-left: 200px;
     44    text-align: center;
     45    width: 40%;
    4446}
    4547
     
    4850    font-size: 0.8em;
    4951    padding-top: 5px;
    50     padding-left: 20px;
     52    padding-left: 100px;
     53    text-align: center;
     54    width: 70%;
     55}
     56
     57.info {
     58    color: rgb(55,55,55);
     59    font-size: 0.6em;
     60    padding-top: 5px;
     61    padding-left: 100px;
     62    text-align: center;
     63    width: 70%;
    5164}
    5265
Note: See TracChangeset for help on using the changeset viewer.