OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [ada/] [acats/] [run_acats] - Blame information for rev 455

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
#!/bin/sh
2
 
3
if [ "$testdir" = "" ]; then
4
   echo You must use make check or make check-ada
5
   exit 1
6
fi
7
 
8
# Set up environment to use the Ada compiler from the object tree
9
 
10
host_gnatchop=`type gnatchop | awk '{print $3}'`
11
host_gnatmake=`type gnatmake | awk '{print $3}'`
12
ROOT=`${PWDCMD-pwd}`
13
BASE=`cd $ROOT/../../..; ${PWDCMD-pwd}`
14
 
15
PATH=$BASE:$ROOT:$PATH
16
ADA_INCLUDE_PATH=$BASE/ada/rts
17
LD_LIBRARY_PATH=$ADA_INCLUDE_PATH:$BASE:$LD_LIBRARY_PATH
18
ADA_OBJECTS_PATH=$ADA_INCLUDE_PATH
19
 
20
if [ ! -d $ADA_INCLUDE_PATH ]; then
21
   echo gnatlib missing, exiting.
22
   exit 1
23
fi
24
 
25
if [ ! -f $BASE/gnatchop ]; then
26
   echo gnattools missing, exiting.
27
   exit 1
28
fi
29
 
30
if [ ! -f $BASE/gnatmake ]; then
31
   echo gnattools missing, exiting.
32
   exit 1
33
fi
34
 
35
GCC_DRIVER="$BASE/xgcc"
36
GCC="$BASE/xgcc -B$BASE/"
37
export PATH ADA_INCLUDE_PATH ADA_OBJECTS_PATH GCC_DRIVER GCC LD_LIBRARY_PATH
38
 
39
echo '#!/bin/sh' > host_gnatchop
40
echo PATH=`dirname $host_gnatchop`:'$PATH' >> host_gnatchop
41
echo unset ADA_INCLUDE_PATH ADA_OBJECTS_PATH GCC_EXEC_PREFIX >> host_gnatchop
42
echo export PATH >> host_gnatchop
43
echo exec $host_gnatchop '"$@"' >> host_gnatchop
44
 
45
chmod +x host_gnatchop
46
 
47
echo '#!/bin/sh' > host_gnatmake
48
echo PATH=`dirname $host_gnatmake`:'$PATH' >> host_gnatmake
49
echo unset ADA_INCLUDE_PATH ADA_OBJECTS_PATH GCC_EXEC_PREFIX >> host_gnatmake
50
echo export PATH >> host_gnatmake
51
echo exec $host_gnatmake '"$@"' >> host_gnatmake
52
 
53
chmod +x host_gnatmake
54
 
55
exec $testdir/run_all.sh ${1+"$@"}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.