Changeset d2784fc in rtems-testing


Ignore:
Timestamp:
Dec 6, 2010, 10:18:02 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
5d6e9d2
Parents:
0de10d2
Message:

2010-12-06 Matthew Voegeli <matthewvoegeli@…>

  • generate_coverage_html: Eliminate columns with constant data and put more detailed version of that information in the header.
Location:
rtems-coverage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    r0de10d2 rd2784fc  
     12010-12-06      Matthew Voegeli <matthewvoegeli@gmail.com>
     2
     3        * generate_coverage_html: Eliminate columns with constant data and put
     4        more detailed version of that information in the header.
     5
    162010-10-16      Joel Sherrill <joel.sherrilL@OARcorp.com>
    27
  • rtems-coverage/generate_coverage_html

    r0de10d2 rd2784fc  
    159159{
    160160  echo "<th>"${*}"</th>"
     161}
     162
     163# need to use ${1} for parameter
     164# need to pass
     165convert_flags() {
     166  opt=`echo "-${1}" | cut -c1-3`
     167  pos=`echo "${1}" | cut -c3`
     168  dev=`echo "${1}" | cut -c4`
     169
     170  posix="POSIX Enabled"
     171  deve="Developmental"
     172
     173  if [ X"${pos}" = X"p" ] ; then
     174    posix="POSIX Disabled"
     175  fi
     176
     177  if [ X"${dev}" = X"d" ] ; then
     178    deve="Core Only"
     179  fi
     180
     181  echo "${opt}, ${posix}, ${deve}"
    161182}
    162183
     
    234255    echo "<tr class=\"stats-table-target\">"
    235256    echo "<td colspan=\"10\">"
    236     echo "<strong>${cpu}/${bsp} (${build})</strong>"
     257    echo "<strong>${cpu}/${bsp} `convert_flags ${build}` (${build})</strong>"
    237258    echo "</td>"
    238259    echo "</tr>"
     
    241262    print_heading Day
    242263    print_heading Time
    243     print_heading Optimization
    244     print_heading POSIX Enabled
    245     print_heading Developmental Enabled
    246264    print_heading Uncovered Ranges
    247265    # skip Uncovered Percentage
     
    252270
    253271    first=no
    254     ls -1 ${bsp}-${build}-*-*/row.html | sort -t -  -k 1,2 -k 3,4Vr | \
     272    ls -1 ${bsp}-${build}-*-*/row.html | sort -t -  -k 1,2 -k 3,4r | \
    255273    while read row
    256274    do
    257275     sed \
    258       -e '2,2s/<TD>\(20[0-9][0-9]\)\([0-1][0-9]\)\([0-9][0-9]\)/<TD>\1-\2-\3/' \
     276      -e '2,2s/<TD>\(20[0-9][0-9]\)\([0-1][0-9]\)\([0-3][0-9]\)/<TD>\1-\2-\3/' \
    259277      -e '1,1s/<TR>/<tr class="stats-table-row">/' \
    260278      -e '7,7s/<TD>0/<td class="stats-target-good">0/' \
     
    262280      -e '10,10s/<TD>0/<td class="stats-target-good">0/' \
    263281      -e 's/<[tT][dD]/<td align="center"/' \
     282      -e '4d' \
     283      -e '5d' \
     284      -e '6d' \
    264285      -e '8d' \
    265286      <$row
     
    474495for bsp in ${BSPs}
    475496do
     497  echo "Processing ${bsp}..."
    476498  do_perBSPPage ${bsp} >${bsp}.html
    477499done
Note: See TracChangeset for help on using the changeset viewer.