#! /usr/bin/env bash # # Execution Times (for sparc-rtems${RTEMS_VERSION}) # # - building native - ? # - building binutils - 1m31.310s # - building GDB - 1m39.318s # - building stage1 (multilib) - 10m22.371s # - building RTEMS (multilib + BSP) - 22m47.048s # - building Objective-C (multilib) - 6m45.532s # - building Ada (multilib) - ? # - building Go (multilib) - ? # - building GCJ (multilib) - ? # - Running GCC Test Suite (sis) - 122m47.289s # - Running Objective-C Test Suite (sis) - ? # - Running ACAT (sis) - ? # - Running Go Test Suite (sis) - ? # - Running GCJ Test Suite (sis) - ? # # Computer Info # Fedora 14 on Intel Core2 Duo Q6600 (4 core) @ 2.40GHz w/ 4GB RAM vfile=`dirname $0`/../VERSIONS if [ ! -r ${vfile} ] ; then echo VERSIONS file not found exit 1 fi source ${vfile} export PATH="${INSTALL}/bin:${PATH}" ######################## Set defaults ############################# # Remove Build Directories do_cleanup=no # Install Binutils do_binutils=no # Install GDB do_gdb=no # Build the native compiler? do_native=no do_native_ada=yes # Build the base level cross compiler. C++ and multilib are optional. do_stage1=no do_cxx=yes do_multilib=yes # Build the Objective-C language cross compiler. do_objc=no do_native_objc=yes # Build the Ada language cross compiler. do_ada=no do_ada_multilib=yes # Build the GCC Go language cross compiler. do_gccgo=no do_gccgo_multilib=yes # Build the GCC Java language cross compiler. do_gcj=no do_gcj_multilib=yes # Build the GCC FORTRAN language cross compiler. do_fortran=no do_fortran_multilib=yes # Build RTEMS for a particular CPU/BSP combination do_rtems=no # Which test suites do we attempt run_gcctests=no run_objctests=no run_acats=no run_gccgotests=no run_libgotests=no run_libjavatests=no run_fortrantests=no # Do we send email to gcc-testresults with the test results? do_mail=yes # Are we noisy when running? verbose=no ######################## Parse arguments ########################### usage() { cat <${LOGDIR}/${cpu}-binutils.log 2>&1 if [ $? -ne 0 ] ; then echo "Failed to build Binutils from source" exit 1 fi echo "Checking Binutils " make check >${LOGDIR}/${cpu}-binutils-check.log 2>&1 grep ^FAIL ${LOGDIR}/${cpu}-binutils-check.log cd .. test ${do_cleanup} = "yes" && rm -rf ${BUILDDIR}/b-${cpu}-binutils } if [ ${do_binutils} = yes ] ; then echo "Building binutils..." time j_binutils ${cpu} fi ######### Install gdb j_gdb() { test -d ${INSTALL} || mkdir -p ${INSTALL} cd ${INSTALL}/.. case ${cpu} in mips) GDBTARGET=${cpu}tx39-rtems${RTEMS_VERSION} ;; *) GDBTARGET=${TARGET} ;; esac echo "Building GDB from source" cd ${BASEDIR} rm -rf ${BUILDDIR}/b-${cpu}-gdb mkdir ${BUILDDIR}/b-${cpu}-gdb cd ${BUILDDIR}/b-${cpu}-gdb (${GDBDIR}/configure --target=${GDBTARGET} \ --enable-sim --enable-sim-hardware \ --disable-werror \ --enable-timebase --enable-sim-trace --prefix=$INSTALL && \ make ${MAKEJOBS} && make install) >${LOGDIR}/${cpu}-gdb.log 2>&1 if [ $? -ne 0 ] ; then echo "Failed to build gdb from source" exit 1 fi cd .. test ${do_cleanup} = "yes" && rm -rf ${BUILDDIR}/b-${cpu}-gdb } if [ ${do_gdb} = yes ] ; then echo "Building gdb..." time j_gdb ${cpu} fi ######### Build a native compiler j_native() { test ${do_native_ada} = "yes" && AdaArg=",ada" test ${do_native_objc} = "yes" && ObjCArg=",objc" ${GCCDIR}/configure \ ${NATIVE_GCC_EXTRA_ARGS} \ --disable-werror \ --enable-languages=c,c++${AdaArg}${ObjCArg} --prefix=$INSTALL && make ${MAKEJOBS} && make install } if [ ${do_native} = "yes" ] ; then echo "Building native compiler..." cd ${BASEDIR} && \ rm -rf ${BUILDDIR}/b-native && \ mkdir ${BUILDDIR}/b-native && \ cd ${BUILDDIR}/b-native time j_native >${LOGDIR}/native.log 2>&1 if [ $? -ne 0 ] ; then echo "Failed to build native gcc" exit 1 fi cd .. test ${do_cleanup} = "yes" && rm -rf ${BUILDDIR}/b-native else echo Skipping native fi # END of build native compiler ######### Build Cross C/C++ baseline compiler j_gcc() { if [ X${1} = X ] ; then echo Usage: $0 TARGET_CPU exit 1 fi if [ ! -d ${INSTALL} ] ; then echo ${INSTALL} does not exist exit 1 fi if [ ${verbose} = yes ] ; then echo "Cross Assembler ==>" `type ${TARGET}-as` fi if [ ${do_cxx} = yes ] ; then cxx=",c++" fi if [ ${cpu} = avr ] ; then cxx="" fi if [ ${do_multilib} = yes ] ; then multilib="--enable-multilib" else multilib="--disable-multilib" fi ${GCCDIR}/configure \ ${GCC_EXTRA_ARGS} \ --disable-werror \ --enable-threads=rtems --with-gnu-as ${multilib} \ --disable-libstdcxx-pch \ --disable-lto \ --disable-plugin \ --enable-newlib-io-c99-formats \ --enable-newlib-mb --enable-newlib-iconv \ --with-gnu-ld --with-newlib --verbose --with-system-zlib --disable-nls \ --enable-version-specific-runtime-libs \ --enable-languages=c${cxx} --target=$TARGET --prefix=$INSTALL if [ $? -ne 0 ] ; then echo "Failed to configure GCC C/C++ .. bailing" exit 1 fi make ${MAKEJOBS} if [ $? -ne 0 ] ; then echo "Failed to build GCC C/C++ .. bailing" exit 1 fi make install if [ $? -ne 0 ] ; then echo "Failed to install GCC C/C++ .. bailing" exit 1 fi } if [ ${do_stage1} = "yes" ] ; then echo "Building Stage 1 compiler (C/C++)..." (cd ${BASEDIR} && \ rm -rf ${BUILDDIR}/b-${cpu}-gcc && \ mkdir ${BUILDDIR}/b-${cpu}-gcc && \ cd ${BUILDDIR}/b-${cpu}-gcc && \ time j_gcc ${cpu} >${LOGDIR}/${cpu}-gcc.log 2>&1 && cd ..) || exit 1 else echo Skipping Stage 1 for ${cpu} fi #################### RTEMS j_rtems() { cpuArg=$1 bspArg=$2 bspdir=${BUILDDIR}/b-${cpuArg}-${bspArg} cd ${BASEDIR} rm -rf ${bspdir} mkdir ${bspdir} || exit 1 cd ${bspdir} || exit 1 ENABLE_BSP="--enable-rtemsbsp=${bspArg}" case $bspArg in multilib) ENABLE_BSP="--enable-multilib" MAKE_ARG="-k" ;; edb7312) ENABLE_BSP="${ENABLE_BSP} ON_SKYEYE=1" ;; gumstix) ENABLE_BSP="${ENABLE_BSP} ON_SKYEYE=1" ;; qemu|pc386) ENABLE_BSP="${ENABLE_BSP} USE_COM1_AS_CONSOLE=1" ENABLE_BSP="${ENABLE_BSP} BSP_PRESS_KEY_FOR_RESET=0" ENABLE_BSP="${ENABLE_BSP} BSP_RESET_BOARD_AT_EXIT=1" ;; *) ;; esac case ${cpu} in m32c|h8300) RTEMS_ARGS="--disable-ada --disable-posix --disable-networking" ;; *) RTEMS_ARGS="--enable-ada --enable-posix --enable-networking" ;; esac ${RTEMSDIR}/configure --target=${TARGET} ${ENABLE_BSP} \ ${RTEMS_ARGS} --enable-maintainer-mode --enable-tests=samples \ --prefix=${BSP_INSTALL} && make ${MAKEJOBS} ${MAKE_ARG} && make install status=$? cd .. if [ $status -ne 0 ] ; then echo "Failed building RTEMS for ${cpuArg}/${bspArg}" if [ ${bspArg} != "multilib" ] ; then exit $status fi fi } if [ ${do_rtems} = "yes" ] ; then echo "Building RTEMS for ${cpu} ${bsp} ..." time j_rtems ${cpu} multilib ${bsp} >${LOGDIR}/${cpu}-rtems-multilib.log 2>&1 if [ $? -ne 0 ] ; then echo "Failed to build RTEMS multilib for ${cpu}" exit 1 fi time j_rtems ${cpu} ${bsp} >${LOGDIR}/${cpu}-rtems-${bsp}.log 2>&1 if [ $? -ne 0 ] ; then echo "Failed to build RTEMS for ${cpu}/${bsp}" exit 1 fi test ${do_cleanup} = "yes" && \ rm -rf ${BUILDDIR}/b-${cpu}-${bsp} ${BUILDDIR}/b-${cpu}-multilib else echo Skipping RTEMS for ${cpu}/${bsp} fi pwd j_process_results() { language=$1 shift RDIR=${RESULTSDIR}/${TARGET}-${bsp}/`date +%Y-%m-%d-%H-%M-%S` for results in `ls -1 gcc/testsuite/*/${*}.log gcc/testsuite/*/${*}.sum 2>/dev/null` do test -d ${RDIR} || mkdir -p ${RDIR} cp ${results} ${RDIR} done if [ ${do_mail} = "yes" ] ; then echo "Sending ${language} test results to GCC community.." ${GCCDIR}/contrib/test_summary -m gcc-testresults@gcc.gnu.org | sh if [ $? -ne 0 ] ; then echo "Failed to email ${language} Test Results to GCC Community .. bailing" exit 1 fi echo "Sending ${language} test results to RTEMS community.." ${GCCDIR}/contrib/test_summary -o -m rtems-tooltestresults@rtems.org | sh if [ $? -ne 0 ] ; then echo "Failed to email ${language} Test Results to RTEMS Community .. bailing" exit 1 fi fi } ##### Do the gcc tests if [ ${run_gcctests} = "yes" ] ; then echo "Running GCC Tests..." cd ${BUILDDIR}/b-${cpu}-gcc || exit 1 time sh -x ${SCRIPTDIR}/gcc/rundeja ${bsp} gcc \ >${LOGDIR}/${cpu}-gcctests-${bsp}.log 2>&1 if [ $? -eq 0 ] ; then j_process_results "C/C++" gcc/testsuite/gcc/gcc gcc/testsuite/g++/g++ fi cd .. || exit 1 else echo Skipping GCC DejaGNU tests for ${cpu}/${bsp} fi test ${do_cleanup} = "yes" && rm -rf ${BUILDDIR}/b-${cpu}-gcc ##### Build an Objective-C compiler now that we have a cross installed j_gccobjc() { if [ X${1} = X ] ; then echo Usage: $0 TARGET_CPU exit 1 fi TARGET=${1}-rtems${RTEMS_VERSION} if [ ! -d ${INSTALL} ] ; then echo ${INSTALL} does not exist exit 1 fi if [ ${verbose} = yes ] ; then echo "Cross GCC for Objective-C ==>" `type ${TARGET}-gcc` fi ${GCCDIR}/configure \ ${GCC_EXTRA_ARGS} \ --enable-threads=rtems --with-gnu-as --enable-multilib \ --with-gnu-ld --disable-newlib --verbose --with-system-zlib --disable-nls \ CFLAGS_FOR_TARGET=-B${BSP_INSTALL}/${TARGET}/${BSP_BUILT}/lib/ \ --enable-version-specific-runtime-libs \ --enable-languages=c,objc --target=$TARGET --prefix=$INSTALL && make ${MAKEJOBS} && make install status=$? if [ $status -ne 0 ] ; then echo "Failed building Objective-C" fi } objc_fail="no" if [ ${do_objc} = "yes" ] ; then echo "Building Stage 2 cross Objective-C compiler for ${1} ..." (cd ${BASEDIR} && \ rm -rf ${BUILDDIR}/b-${cpu}-objc && \ mkdir ${BUILDDIR}/b-${cpu}-objc && \ cd ${BUILDDIR}/b-${cpu}-objc && \ time j_gccobjc ${cpu} >${LOGDIR}/${cpu}-objc.log 2>&1 && cd ..) || \ objc_fail="yes" else echo Skipping Stage 2 Objective-C for ${cpu} fi #### Run the Objective-C tests if [ ${run_objctests} = "yes" -a \ -d ${BUILDDIR}/b-${cpu}-objc -a ${objc_fail} = "no" ] ; then echo "Running Objective-C Tests..." cd ${BUILDDIR}/b-${cpu}-objc || exit 1 time sh -x ${SCRIPTDIR}/gcc/rundeja ${bsp} objc \ >${LOGDIR}/${cpu}-gcctests-${bsp}.log 2>&1 if [ $? -eq 0 ] ; then j_process_results "Objective-C" gcc/testsuite/objc/objc fi cd .. || exit 1 else echo Skipping Objective-C Tests for ${cpu} fi if [ ${do_ada} = "yes" ] ; then test ${do_cleanup} = "yes" && rm -rf ${BUILDDIR}/b-${cpu}-ada fi ##### Build an Ada compiler now that we have a cross installed j_gccada() { if [ X${1} = X ] ; then echo Usage: $0 TARGET_CPU exit 1 fi TARGET=${1}-rtems${RTEMS_VERSION} if [ ! -d ${INSTALL} ] ; then echo ${INSTALL} does not exist exit 1 fi if [ ${verbose} = yes ] ; then echo "Cross GCC for Ada ==>" `type ${TARGET}-gcc` fi if [ ${do_ada_multilib} = yes ] ; then ada_multilib="--enable-multilib" else ada_multilib="--disable-multilib" fi # CFLAGS_FOR_TARGET=-B${BSP_INSTALL}/${TARGET}/${BSP_BUILT}/lib/ ${GCCDIR}/configure \ ${GCC_EXTRA_ARGS} \ --enable-threads=rtems --with-gnu-as ${ada_multilib} \ --with-gnu-ld --disable-newlib --verbose --with-system-zlib --disable-nls \ CFLAGS_FOR_TARGET=-B${BSP_INSTALL}/${TARGET}/${BSP_BUILT}/lib/ \ --enable-version-specific-runtime-libs \ --enable-languages=c,ada --target=$TARGET --prefix=$INSTALL && make ${MAKEJOBS} && make install status=$? if [ $status -ne 0 ] ; then echo "Failed building Ada - continuing to next secondary language" fi return $status } ada_fail="no" if [ ${do_ada} = "yes" ] ; then echo "Building Stage 2 cross Ada compiler for ${1} ..." (cd ${BASEDIR} && \ rm -rf ${BUILDDIR}/b-${cpu}-ada && \ mkdir ${BUILDDIR}/b-${cpu}-ada && \ cd ${BUILDDIR}/b-${cpu}-ada && \ time j_gccada ${cpu} >${LOGDIR}/${cpu}-ada.log 2>&1 && cd ..) || \ ada_fail="yes" else echo Skipping Stage 2 Ada for ${cpu} fi #### Run the Ada ACATS tests if [ ${run_acats} = "yes" -a \ -d ${BUILDDIR}/b-${cpu}-ada -a ${ada_fail} = "no" ] ; then echo "Running ACATS..." cd ${GCCDIR}/gcc/testsuite/ada/acats/ || exit 1 time ${ADASCRIPTDIR}/run_all_rtems.sh ${INSTALL} ${BSP_INSTALL} \ ${TARGET} ${bsp} >${LOGDIR}/${cpu}-acats-${bsp}-build.log 2>&1 if [ $? -eq 0 ] ; then if [ -r work-${bsp}/acats.log ] ; then cp work-${bsp}/acats.log ${LOGDIR}/${cpu}-acats-${bsp}.log fi if [ ${do_mail} = "yes" ] ; then echo Sending ACATS test results to GCC community.. ${ADASCRIPTDIR}/rtems_generate_acats_email ${cpu} ${bsp} yes fi fi cd ../../../../.. || exit 1 else echo Skipping ACATS for ${cpu} fi if [ ${do_ada} = "yes" ] ; then test ${do_cleanup} = "yes" && rm -rf ${BUILDDIR}/b-${cpu}-ada fi ##### Build a GCC Go compiler now that we have a cross installed j_gccgo() { if [ X${1} = X ] ; then echo Usage: $0 TARGET_CPU exit 1 fi TARGET=${1}-rtems${RTEMS_VERSION} if [ ! -d ${INSTALL} ] ; then echo ${INSTALL} does not exist exit 1 fi if [ ${verbose} = yes ] ; then echo "Cross GCC ==>" `type ${TARGET}-gcc` fi if [ ${do_gccgo_multilib} = yes ] ; then gccgo_multilib="--enable-multilib" else gccgo_multilib="--disable-multilib" fi case ${TARGET} in i386*) GOFLAGS="-march=i486" ;; *) GOFLAGS="" ;; esac # CFLAGS_FOR_TARGET=-B${BSP_INSTALL}/${TARGET}/${BSP_BUILT}/lib/ ${GCCDIR}/configure \ ${GCC_EXTRA_ARGS} \ CFLAGS_FOR_TARGET="-B${BSP_INSTALL}/${TARGET}/${BSP_BUILT}/lib/ ${GOFLAGS}" \ --enable-threads=rtems --with-gnu-as ${gccgo_multilib} \ --with-gnu-ld --disable-newlib --verbose \ --with-system-zlib --disable-nls \ --enable-version-specific-runtime-libs \ --with-host-libstdcxx=-static-libstdc++ \ --enable-languages=c,go --target=$TARGET --prefix=$INSTALL && make ${MAKEJOBS} && make install status=$? if [ $status -ne 0 ] ; then echo "Failed building Go - continuing to next secondary language" fi return $status } go_fail="no" if [ ${do_gccgo} = "yes" ] ; then echo "Building Stage 2 cross GCC Go compiler for ${1} ..." (cd ${BASEDIR} && \ rm -rf ${BUILDDIR}/b-${cpu}-go && \ mkdir ${BUILDDIR}/b-${cpu}-go && \ cd ${BUILDDIR}/b-${cpu}-go && \ time j_gccgo ${cpu} >${LOGDIR}/${cpu}-go.log 2>&1 && cd ..) || \ go_fail="yes" else echo Skipping GCC Go for ${cpu} fi ##### Do the gccgo tests if [ $a ${run_gccgotests} = "yes" -a \ -d ${BUILDDIR}/b-${cpu}-go -a ${go_fail} = "no" ] ; then echo "Running GCC Go Tests..." cd ${BUILDDIR}/b-${cpu}-go/gcc || exit 1 time sh -x ${SCRIPTDIR}/gcc/rundeja ${bsp} gccgo \ >${LOGDIR}/${cpu}-gccgotests-${bsp}.log 2>&1 if [ $? -eq 0 ] ; then j_process_results "Go" testsuite/go/go fi cd .. || exit 1 else echo Skipping GCC Go DejaGNU tests for ${cpu}/${bsp} fi ##### Do the libgo tests if [ $a ${run_libgotests} = "yes" -a \ -d ${BUILDDIR}/b-${cpu}-go -a ${go_fail} = "no" ] ; then echo "Running libgo DejaGNU tests..." cd ${BUILDDIR}/b-${cpu}-go || exit 1 time sh -x ${SCRIPTDIR}/gcc/rundeja ${bsp} libgo \ >${LOGDIR}/${cpu}-libgotests-${bsp}.log 2>&1 if [ $? -eq 0 ] ; then j_process_results "Go Library" ${TARGET}/libgo/testsuite/libgo-all fi else echo Skipping libgo DejaGNU tests for ${cpu}/${bsp} fi if [ ${do_gccgo} = "yes" ] ; then test ${do_cleanup} = "yes" && rm -rf ${BUILDDIR}/b-${cpu}-go fi ##### Build a GCJ compiler now that we have a cross installed j_gcj() { if [ X${1} = X ] ; then echo Usage: $0 TARGET_CPU exit 1 fi TARGET=${1}-rtems${RTEMS_VERSION} if [ ! -d ${INSTALL} ] ; then echo ${INSTALL} does not exist exit 1 fi if [ ${verbose} = yes ] ; then echo "Cross GCC ==>" `type ${TARGET}-gcc` fi if [ ${do_gcj_multilib} = yes ] ; then gcj_multilib="--enable-multilib" else gcj_multilib="--disable-multilib" fi case ${TARGET} in i386*) GOFLAGS="-march=i486" ;; *) GOFLAGS="" ;; esac # CFLAGS_FOR_TARGET=-B${BSP_INSTALL}/${TARGET}/${BSP_BUILT}/lib/ ${GCCDIR}/configure \ ${GCC_EXTRA_ARGS} \ CFLAGS_FOR_TARGET="-B${BSP_INSTALL}/${TARGET}/${BSP_BUILT}/lib/ ${GOFLAGS}" \ --enable-threads=rtems --with-gnu-as ${gcj_multilib} \ --with-gnu-ld --disable-newlib --verbose \ --with-system-zlib --disable-nls \ --enable-version-specific-runtime-libs \ --with-host-libstdcxx=-static-libstdc++ \ --enable-languages=c,c++,java --target=$TARGET --prefix=$INSTALL && make ${MAKEJOBS} && make install status=$? if [ $status -ne 0 ] ; then echo "Failed building GCJ - continuing to next secondary language" fi return $status } gcj_fail="no" if [ ${do_gcj} = "yes" ] ; then echo "Building Stage 2 cross GCC Java compiler for ${1} ..." (cd ${BASEDIR} && \ rm -rf b-${cpu}-gcj && \ mkdir b-${cpu}-gcj && \ cd b-${cpu}-gcj && \ time j_gcj ${cpu} >${LOGDIR}/${cpu}-gcj.log 2>&1 && cd ..) || \ gcj_fail="yes" else echo Skipping GCC Java compiler for ${cpu} fi ##### Do the libjava tests if [ $a ${run_libjavatests} = "yes" -a \ -d ${BASEDIR}/b-${cpu}-gcj -a ${gcj_fail} = "no" ] ; then echo "Running libjava DejaGNU tests..." cd ${BASEDIR}/b-${cpu}-gcj || exit 1 time sh -x ${SCRIPTDIR}/gcc/rundeja ${bsp} java \ >${LOGDIR}/${cpu}-libjavatests-${bsp}.log 2>&1 if [ $? -eq 0 ] ; then j_process_results "GCJ" ${TARGET}-${bsp}/libjava/testsuite/libjava-all fi else echo Skipping libjava DejaGNU tests for ${cpu}/${bsp} fi if [ ${do_gcj} = "yes" ] ; then test ${do_cleanup} = "yes" && rm -rf b-${cpu}-gcj fi ##### Build a FORTRAN compiler now that we have a cross installed j_fortran() { if [ X${1} = X ] ; then echo Usage: $0 TARGET_CPU exit 1 fi TARGET=${1}-rtems${RTEMS_VERSION} if [ ! -d ${INSTALL} ] ; then echo ${INSTALL} does not exist exit 1 fi ${GCCDIR}/configure \ ${GCC_EXTRA_ARGS} \ CFLAGS_FOR_TARGET="-B${BSP_INSTALL}/${TARGET}/${BSP_BUILT}/lib/ ${F_FLAGS}" \ --with-ppl=/users/joel/test-gcc/install-svn/ \ --enable-threads=rtems --with-gnu-as \ --with-gnu-ld --disable-newlib --verbose \ --with-system-zlib --disable-nls \ --enable-version-specific-runtime-libs \ --enable-languages=c,fortran --target=$TARGET --prefix=$INSTALL && \ make ${MAKEJOBS} && make install status=$? if [ $status -ne 0 ] ; then echo "Failed building FORTRAN - continuing to next secondary language" fi return $status } fortran_fail="no" if [ ${do_fortran} = "yes" ] ; then echo "Building Stage 2 cross GCC FORTRAN compiler for ${1} ..." (cd ${BASEDIR} && \ rm -rf b-${cpu}-fortran && \ mkdir b-${cpu}-fortran && \ cd b-${cpu}-fortran && \ time j_fortran ${cpu} >${LOGDIR}/${cpu}-fortran.log 2>&1 && cd ..) || \ fortran_fail="yes" else echo Skipping GCC FORTRAN compiler for ${cpu} fi ##### Do the FORTRAN tests if [ $a ${run_fortrantests} = "yes" -a \ -d ${BASEDIR}/b-${cpu}-fortran -a ${fortran_fail} = "no" ] ; then echo "Running FORTRAN DejaGNU tests..." cd ${BASEDIR}/b-${cpu}-fortran || exit 1 time sh -x ${SCRIPTDIR}/gcc/rundeja ${bsp} fortran \ >${LOGDIR}/${cpu}-fortrantests-${bsp}.log 2>&1 if [ $? -eq 0 ] ; then j_process_results "FORTRAN" gcc/testsuite/gfortran/gfortran fi else echo Skipping FORTRAN DejaGNU tests for ${cpu}/${bsp} fi if [ ${do_fortran} = "yes" ] ; then test ${do_cleanup} = "yes" && rm -rf b-${cpu}-fortran fi exit 0