Changeset 76230b4 in rtems-testing


Ignore:
Timestamp:
Jun 30, 2010, 3:27:29 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
9f356d1
Parents:
0bff81b
Message:

2010-06-30 Joel Sherrill <joel.sherrilL@…>

  • do_coverage: Add information on unreferenced symbols to summary.txt.
Location:
rtems-coverage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    r0bff81b r76230b4  
     12010-06-30      Joel Sherrill <joel.sherrilL@OARcorp.com>
     2
     3        * do_coverage: Add information on unreferenced symbols to summary.txt.
     4
    152010-06-21      Jennifer Averett <Jennifer.Averett@OARcorp.com
    26
  • rtems-coverage/do_coverage

    r0bff81b r76230b4  
    327327}
    328328
     329add_to_summary()
     330{
     331  unref=${results_dir}/sizes_unreferenced.txt
     332  echo
     333  unreffed=`cat ${unref} | wc -l`
     334  echo "Symbols unreferenced: " ${unreffed}
     335  if [ ${unreffed} = 0 ] ; then
     336    size_of=0
     337  else
     338    size_of=`cut -f1 ${unref} | sed -e '2,$s/$/ +/' -e '$,$s/$/ p/' | dc`
     339  fi
     340  echo "Bytes in unreferenced symbols : " ${size_of}
     341}
     342
    329343# generate the coverage report set
    330344generate_reports()
     
    378392  ) >${results_dir}/configuration.txt
    379393
    380   # XXX summary should be in output directory
    381   generate_html ${results_dir}/summary.txt >${results_dir}/row.html
    382 
    383   cat ${results_dir}/summary.txt ${results_dir}/testsWithNoEndOfTest.txt
    384 
    385   mv ${results_dir}/index.html ${results_dir}/index.html.tmp
    386   sed -f ${COVBASE}/rtems_items.sed  \
    387     <${results_dir}/index.html.tmp \
    388     >${results_dir}/index.html
    389 
    390394  RTEMSLIB=${BASEDIR}/b-${BSP}/${TARGET}/${BSP}/lib/librtemscpu.a
    391395
     
    405409  cat ${results_dir}/sizes_unreferenced.txt ${results_dir}/sizes.txt | \
    406410    sort -n -r >${results_dir}/sizes_all.txt
     411
     412  generate_html ${results_dir}/summary.txt >${results_dir}/row.html
     413  add_to_summary >>${results_dir}/summary.txt
     414
     415  cat ${results_dir}/summary.txt ${results_dir}/testsWithNoEndOfTest.txt
     416
     417  mv ${results_dir}/index.html ${results_dir}/index.html.tmp
     418  sed -f ${COVBASE}/rtems_items.sed  \
     419    <${results_dir}/index.html.tmp \
     420    >${results_dir}/index.html
    407421
    408422  # Now create the archive of information
Note: See TracChangeset for help on using the changeset viewer.