Changeset a21b35e in rtems-testing


Ignore:
Timestamp:
May 13, 2010, 3:57:42 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
2d88955
Parents:
e2fcf9b
Message:

2010-05-13 Joel Sherrill <joel.sherrilL@…>

  • do_coverage: Provide capability to only analyze one configuration.
Location:
rtems-coverage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    re2fcf9b ra21b35e  
     12010-05-13      Joel Sherrill <joel.sherrilL@OARcorp.com>
     2
     3        * do_coverage: Provide capability to only analyze one configuration.
     4
    152010-05-13      Jennifer Averett <Jennifer.Averett@OARcorp.com>
    26
  • rtems-coverage/do_coverage

    re2fcf9b ra21b35e  
    2626usage: $progname [ -opts ]
    2727        -v        -- verbose (default=no)
     28        -d        -- analyze Core Configuration (default=yes)
     29        -D        -- analyze Developmental Configuration (default=yes)
    2830        -A        -- Execute all steps (default=no)
    2931        -B BSP    -- Specify BSP to test
     
    4042        -f        -- publish the results to ftp site (default=no)
    4143        -t        -- save the results locally (default=no)
     44        -O        -- output directory (default=BSP-CONF-YYYYMMDD-HHMM)
    4245
    4346Notes:  + There are currently NO checks at each step to determine if
    4447          the previous steps were performed!!!
    4548        + Use of each option toggles the setting.  For example, \"-v -v -A -u\"
    46           results in verbose=no and all steps done except CVS update on RTEMS.
    47 
    48 "
     49          results in verbose=no and all steps done except CVS update on RTEMS."
    4950
    5051#   log an error to stderr
     
    9394do_publish="no"
    9495do_save_tarballs="no"
     96do_core="yes"
     97do_developmental="yes"
    9598outputDir=""
    9699BSP="not_set"
    97100
    98 while getopts vB:PSmAucbCLrRftO: OPT
     101while getopts vB:PSmAucbCLrRftO:dD OPT
    99102do
    100103    case "$OPT" in
     
    110113          do_reports="yes"
    111114          ;;
     115        d) do_core=`toggle ${do_core}` ;;
     116        D) do_developmental=`toggle ${do_developmental}` ;;
    112117        B) BSP="${OPTARG}";;
    113118        O) outputDir="${OPTARG}";;
     
    210215  echo "Optimization Level:   " ${c_opt}
    211216  echo "POSIX Enabled:        " ${do_posix}
     217  echo "Core Configuration    " ${do_core}
    212218  echo "Developmental Code:   " ${do_developmental}
    213219  echo "do_all:               " ${do_all}
     
    233239fi
    234240
     241if [ ${do_core} = "no" -a ${do_developmental} = "no" ]; then
     242  fatal "No symbol configurations to analyze selected"
     243fi
     244
    235245if [ ${verbose} = "yes" ] ; then
    236246  print_verbose
     
    305315    print_element ${c_opt}
    306316    print_element ${do_posix}
    307     print_element ${do_developmental}
     317    print_element ${analyze_developmental}
    308318    print_element `grep "Uncovered range" ${summary} | cut -d ':' -f2`
    309319    print_element `grep "age Not Exec" ${summary} | cut -d ':' -f2`
     
    410420    fi
    411421
    412     if [ ${do_developmental} = "yes" ] ; then
     422    if [ ${analyze_developmental} = "yes" ] ; then
    413423      filter_nm ../lib/libc/${subd}libcsupport.a
    414424      filter_nm ../lib/libmisc/wrapup/${subd}libmisc.a
     
    428438    # Now add developmental libraries
    429439    # NOTE: all non-network libraries are listed here.  --joel 5 March 2010
    430     if [ ${do_developmental} = "yes" ] ; then
     440    if [ ${analyze_developmental} = "yes" ] ; then
    431441      # filter_nm libfs/${subd}librfs.a
    432442      # filter_nm libfs/${subd}libdosfs.a
     
    613623  check_status $? "cd ${BSP}-tests"
    614624
    615   for do_developmental in no yes
     625  to_analyze=""
     626  if [ ${do_core} = "yes" ] ; then
     627    to_analyze="${to_analyze} no"
     628  fi
     629  if [ ${do_developmental} = "yes" ]; then
     630    to_analyze="${to_analyze} yes"
     631  fi
     632
     633  for analyze_developmental in ${to_analyze}
    616634  do
    617     if [ ${do_developmental} = yes ] ; then
     635    if [ ${analyze_developmental} = yes ] ; then
    618636      echo "Processing coverage for developmental configuration ..."
    619637      EXT=${EXTENSION}D
Note: See TracChangeset for help on using the changeset viewer.