Changeset 187d427 in rtems-testing


Ignore:
Timestamp:
Jan 21, 2011, 6:52:35 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
fc6caa7
Parents:
0534b40
Message:

2011-01-21 Joel Sherrill <joel.sherrilL@…>

  • run_coverage: Parse command arguments better.
Location:
rtems-coverage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    r0534b40 r187d427  
     12011-01-21      Joel Sherrill <joel.sherrilL@OARcorp.com>
     2
     3        * run_coverage: Parse command arguments better.
     4
    152011-01-05      Joey Geralnik <jgeralnik@gmail.com>
    26
  • rtems-coverage/run_coverage

    r0534b40 r187d427  
    128128  case ${cmd} in
    129129    update) ;;                       # general command
    130     *_Os|*_O2|*_baseline)            # one BSP at specific -Ox level
     130    *_O[sS2][pP][dD]|*_baseline)            # one BSP at specific -Ox level
    131131      case ${cmd} in
    132132        lm32_evr*) bsp=lm32_evr ;;
     
    150150for cmd in $*
    151151do
     152echo $cmd
    152153  case ${cmd} in
    153154    update)
    154155      time ${COVBASE}/do_coverage -u -m -B erc32
    155156      ;;
    156     *_O[s2])
    157       bsp=`echo $cmd | sed -e 's/_O.$//'`
    158       Olevel=`echo $cmd | sed -e 's/.*_O\(.\)$/\1/'`
    159       case ${Olevel} in
    160         2)    do_one ${bsp} ;;
    161         [sS]) do_one ${bsp} -S ;;
    162         *)    echo ERROR unknown optimization level ; exit 1 ;;
    163       esac
     157    *_O[sS2][pP][dD])
     158      bsp=`echo $cmd | sed -e 's/_O.*$//'`
     159      args=`echo $cmd | sed -e 's/^.*_//'`
     160      Olevel=`echo $cmd | sed -e 's/.*_O\(.\).*$/\1/'`
     161      posix=`echo $cmd | sed -e 's/.*_O.\(.\).*$/\1/'`
     162      devel=`echo $cmd | sed -e 's/.*_O..\(.\)$/\1/'`
     163
     164      echo $bsp $args $Olevel $posix $devel
     165      optArg="-S"
     166      if [ ${Olevel} = "2" ] ; then
     167        optArg=""
     168      fi
     169      posixArg=""
     170      if [ ${posix} = "p" ] ; then
     171        posixArg="-P"
     172      fi
     173      develArg=""
     174      if [ ${devel} = "d" ] ; then
     175        develArg="-D"
     176      fi
     177
     178      # echo do_one ${bsp} ${optArg} ${posixArg} ${develArg}
     179      do_one ${bsp} ${optArg} ${posixArg} ${develArg}
    164180      ;;
    165181    *_baseline)
    166182      bsp=`echo $cmd | sed -e 's/_baseline$//'`
     183      # XXX development off?
    167184      do_one ${bsp} -S          # -Os / POSIX enabled  / regression
    168185      do_one ${bsp} -S -P       # -Os / POSIX disabled / regression
Note: See TracChangeset for help on using the changeset viewer.