URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [ada/] [acats/] [run_acats] - Rev 294
Compare with Previous | Blame | View Log
#!/bin/shif [ "$testdir" = "" ]; thenecho You must use make check or make check-adaexit 1fi# Provide which replacement.## type -p is missing from Solaris 2 /bin/sh and /bin/ksh (ksh88), but both# ksh93 and bash have it.# type output format differs between ksh88 and ksh93, so avoid it if# type -p is present.# Fall back to whence which ksh88 and ksh93 provide, but bash does not.which () {type -p $* 2>/dev/null && return 0type $* 2>/dev/null | awk '{print $3}' && return 0whence $* 2>/dev/null && return 0return 1}# Set up environment to use the Ada compiler from the object treehost_gnatchop=`which gnatchop`host_gnatmake=`which gnatmake`ROOT=`${PWDCMD-pwd}`BASE=`cd $ROOT/../../..; ${PWDCMD-pwd}`PATH=$BASE:$ROOT:$PATHADA_INCLUDE_PATH=$BASE/ada/rtsLD_LIBRARY_PATH=$ADA_INCLUDE_PATH:$BASE:$LD_LIBRARY_PATHADA_OBJECTS_PATH=$ADA_INCLUDE_PATHif [ ! -d $ADA_INCLUDE_PATH ]; thenecho gnatlib missing, exiting.exit 1fiif [ ! -f $BASE/gnatchop ]; thenecho gnattools missing, exiting.exit 1fiif [ ! -f $BASE/gnatmake ]; thenecho gnattools missing, exiting.exit 1fiGCC_DRIVER="$BASE/xgcc"GCC="$BASE/xgcc -B$BASE/"export PATH ADA_INCLUDE_PATH ADA_OBJECTS_PATH GCC_DRIVER GCC LD_LIBRARY_PATHecho '#!/bin/sh' > host_gnatchopecho PATH=`dirname $host_gnatchop`:'$PATH' >> host_gnatchopecho unset ADA_INCLUDE_PATH ADA_OBJECTS_PATH GCC_EXEC_PREFIX >> host_gnatchopecho export PATH >> host_gnatchopecho exec gnatchop '"$@"' >> host_gnatchopchmod +x host_gnatchopecho '#!/bin/sh' > host_gnatmakeecho PATH=`dirname $host_gnatmake`:'$PATH' >> host_gnatmakeecho unset ADA_INCLUDE_PATH ADA_OBJECTS_PATH GCC_EXEC_PREFIX >> host_gnatmakeecho export PATH >> host_gnatmakeecho exec gnatmake '"$@"' >> host_gnatmakechmod +x host_gnatmake# Limit the stack to 16MB for stack checkingulimit -s 16384exec $SHELL $testdir/run_all.sh ${1+"$@"}
