Changeset 79671b0 in rtems-testing


Ignore:
Timestamp:
Mar 25, 2010, 6:24:08 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
459fc43
Parents:
0f81ef3
Message:

2010-03-25 Joel Sherrill <joel.sherrill@…>

  • do_one: Toggle command line arguments.
  • rundeja: Remove one comment line.
  • test_driver: Add commadn line arguments.
  • do_tests: Fix path.
Location:
gcc
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • gcc/ChangeLog

    r0f81ef3 r79671b0  
     12010-03-25      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * do_one: Toggle command line arguments.
     4        * rundeja: Remove one comment line.
     5        * test_driver: Add commadn line arguments.
     6        * do_tests: Fix path.
     7
    182009-10-27      Joel Sherrill <joel.sherrill@oarcorp.com>
    29
  • gcc/do_one

    r0f81ef3 r79671b0  
    1 #! /bin/sh
     1#! /bin/sh -x
    22#
    33# Execution Times (for sparc-rtems${RTEMS_VERSION})
     
    8181}
    8282
     83toggle()
     84{
     85  case $1 in
     86    no)  echo "yes" ;;
     87    yes) echo "no" ;;
     88    *)   fatal "Unknown value to toggle ($1)" ;;
     89  esac
     90}
     91
    8392while getopts bdDnv1cmargCATM OPT
    8493do
     
    92101           do_rtems="yes"
    93102           ;;
    94         d) do_cleanup="no" ;;
    95         D) do_gdb="yes" ;;
     103        d) do_cleanup=`toggle ${do_cleanup}` ;;
     104        D) do_gdb=`toggle ${do_gdb}` ;;
    96105        T) run_gcctests="yes"
    97106           run_acats="yes"
    98107           ;;
    99108        # unrpm binutils
    100         b) do_binutils="yes" ;;
     109        b) do_binutils=`toggle ${do_binutils}` ;;
    101110        # Build the native
    102         n) do_native="yes";;
     111        n) do_native=`toggle ${do_native}` ;;
    103112        # Stage 1 arguments
    104         1) do_stage1="yes";;
    105         c) do_cxx="no";;
    106         m) do_multilib="no";;
     113        1) do_stage1=`toggle ${do_stage1}` ;;
     114        c) do_cxx=`toggle ${do_cxx}` ;;
     115        m) do_multilib=`toggle ${do_multilib}` ;;
    107116        # Stage 2 arguments
    108         a) do_ada="yes" ;;
     117        a) do_ada=`toggle ${do_ada}` ;;
    109118        # Build RTEMS
    110         r) do_rtems="yes" ;;
     119        r) do_rtems=`toggle ${do_rtems}` ;;
    111120        # Testsuites to run
    112         g) run_gcctests="yes" ;;
    113         C) run_acats="yes" ;;
    114         v) verbose="yes";;
    115         M) do_mail="no";;
     121        g) run_gcctests=`toggle ${run_gcctests}` ;;
     122        C) run_acats=`toggle ${run_acats}` ;;
     123        v) verbose=`toggle ${verbose}` ;;
     124        M) do_mail=`toggle ${do_mail}` ;;
    116125        *) fatal;;
    117126    esac
     
    434443   --with-gnu-ld --with-newlib  --verbose --with-system-zlib --disable-nls \
    435444    --enable-version-specific-runtime-libs \
    436     --enable-languages=c${cxx} --target=$TARGET --prefix=$INSTALL &&
    437   make ${MAKEJOBS} &&
     445    --enable-languages=c${cxx} --target=$TARGET --prefix=$INSTALL
     446  if [ $? -ne 0 ] ; then
     447    echo "Failed to configure GCC C/C++ .. bailing"
     448    exit 1
     449  fi
     450
     451  make ${MAKEJOBS}
     452  if [ $? -ne 0 ] ; then
     453    echo "Failed to build GCC C/C++ .. bailing"
     454    exit 1
     455  fi
     456
    438457  make install
     458  if [ $? -ne 0 ] ; then
     459    echo "Failed to install GCC C/C++ .. bailing"
     460    exit 1
     461  fi
     462
    439463}
    440464
  • gcc/do_tests

    r0f81ef3 r79671b0  
    66
    77gcc=gcc
    8 prefix=/home/joel/work-gnat/svn/install
     8prefix=/users/joel/work-gnat/svn/install
    99target=powerpc-rtems4.10
    1010bsp=psim
    11 tmpdir=/home/joel/work-gnat/svn/install/../gcctests-${bsp}
     11tmpdir=/users/joel/work-gnat/svn/install/../gcctests-${bsp}
    1212
    1313cd ${gcc}
  • gcc/rundeja

    r0f81ef3 r79671b0  
    120120--target_board=rtems-${CPU}-${DEJABSP} \
    121121"
    122 #"execute.exp=pr206*"
    123122# "execute.exp=pr206*"
    124123# vect.exp=vect*
  • gcc/test_driver

    r0f81ef3 r79671b0  
    1919fi
    2020
    21 start=`date`
    22 echo Started at: ${start}
    23 
    2421BASEDIR=`pwd`
    2522
     
    3330done
    3431
    35 ### TODO: Parse arguments to get these
    36 doCleanInstallPoint="yes"
    37 doUpdateTools=yes
    38 doUpdateRTEMS=yes
    39 doNative=yes
     32toggle()
     33{
     34  case $1 in
     35    no)  echo "yes" ;;
     36    yes) echo "no" ;;
     37    *)   fatal "Unknown value to toggle ($1)" ;;
     38  esac
     39}
     40
     41usage()
     42{
     43cat <<EOF
     44do_one [options] CPU ..  CPU
     45  -c - clean install point (also installs auto tools)
     46  -u - update GNU source if version from CVS/SVN
     47  -U - update RTEMS source if version from CVS/SVN (will bootstrap)
     48  -v - verbose
     49EOF
     50}
     51
     52doCleanInstallPoint="no"
     53doUpdateTools="no"
     54doUpdateRTEMS="no"
     55doNative="no"
     56verbose="no"
     57
     58while getopts AcnuUv OPT
     59do
     60  case "$OPT" in
     61    A) doCleanInstallPoint=`toggle ${doCleanInstallPoint}`
     62       doNative=`toggle ${doNative}`
     63       doUpdateTools=`toggle ${doUpdateTools}`
     64       doUpdateRTEMS=`toggle ${doUpdateRTEMS}`
     65       ;;
     66    c) doCleanInstallPoint=`toggle ${doCleanInstallPoint}` ;;
     67    n) doNative=`toggle ${doNative}` ;;
     68    u) doUpdateTools=`toggle ${doUpdateTools}` ;;
     69    U) doUpdateRTEMS=`toggle ${doUpdateRTEMS}` ;;
     70    v) verbose=`toggle ${verbose}` ;;
     71    *) usage; exit 1;
     72  esac
     73done
     74
     75shiftcount=`expr $OPTIND - 1`
     76shift $shiftcount
     77
     78args=$*
     79
     80CPUs=""
     81for cpu in ${args}
     82do
     83  if [ ${cpu} = "native" ] ; then
     84    doNative="yes"
     85  else
     86    CPUs="${CPUs} ${cpu}"
     87  fi
     88done
     89
     90
     91if [ ${verbose} = "yes" ] ; then
     92  echo "Clean Install Point: " ${doCleanInstallPoint}
     93  echo "Install Autotools:   " ${doCleanInstallPoint}
     94  echo "Install Native:      " ${doNative}
     95  echo "Update Tool Source:  " ${doUpdateTools}
     96  echo "Update RTEMS:        " ${doUpdateRTEMS}
     97  echo "CPUs to Build:       " ${CPUs}
     98fi
     99
     100start=`date`
     101echo Started at: ${start}
    40102
    41103# HELPER - Update RTEMS
     
    109171  do
    110172    case $cpu in
    111       native)  bsp=native       ;;
    112173      arm)     bsp=edb7312      ;;
    113174      avr)     bsp=avrtest      ;;
     
    130191    doOne=${SCRIPTDIR}/gcc/do_one
    131192    # Everything
    132     time sh -x ${doOne} -v -d -A ${tests} \
     193    # -M -> do not mail
     194    #time sh -x ${doOne} -v -d -A ${tests} \
     195#       ${cpu} ${bsp} >${BASEDIR}/${bsp}.log 2>&1
     196    # Just C/C++, no clean up, no mail
     197    time sh -x ${doOne} -v -b -D -1 -d -M -r ${tests} \
    133198        ${cpu} ${bsp} >${BASEDIR}/${bsp}.log 2>&1
    134     # Just C
    135     #time sh -x ${doOne} -v -b -D -1 -r ${tests} \
    136     #    ${cpu} ${bsp} >${BASEDIR}/${bsp}.log 2>&1
    137199    # Just C/C++
    138200    #time sh -x ${doOne} -v -1 -r -g ${tests}\
     
    141203  done
    142204
    143 
    144205  stopped=`date`
    145206  echo Started at: ${start}
     
    154215# Update gcc and install autotools in parallel
    155216  if [ ${doCleanInstallPoint} = "yes" ] ; then
    156     install_auto &
     217    install_auto
    157218  fi
    158219  if [ ${doUpdateTools} = "yes" ] ; then
    159     update_gcc &
    160     update_others &
     220    update_gcc
     221    update_others
    161222  fi
    162223wait
     
    164225# Do any remaining prep work in parallel
    165226  if [ ${doUpdateRTEMS} = "yes" ] ; then
    166     update_rtems &
     227    update_rtems
    167228  fi
    168229wait
    169230
    170 # Build the native compiler as a baseline to build the others
    171   if [ ${doNative} = "yes" ] ; then
    172     time sh -x ${SCRIPTDIR}/gcc/do_one -n >${BASEDIR}/native.log 2>&1
    173   fi
     231if [ ${doNative} = "yes" ]; then
     232  # Build the native compiler as a baseline to build the others
     233  time sh -x ${SCRIPTDIR}/gcc/do_one -n >${BASEDIR}/native.log 2>&1
     234fi
    174235
    175236# Now cycle over all these CPUs
     
    190251    do_cpus avr
    191252  else
    192     for cpu in $*
     253    for cpu in ${CPUs}
    193254    do
    194255      do_cpus ${cpu}
Note: See TracChangeset for help on using the changeset viewer.