diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-05 09:55:35 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-05 09:55:35 +0000 |
commit | 7fc5261c7b2eb3be28854ab1b12c26fdb143b61c (patch) | |
tree | 656d35f16d5d0698cac8019d3736b7baa47c601c /gcc/testsuite/ada | |
parent | 0792f2cf77ea178d40109a18ce6f4ca30aa3d1b5 (diff) | |
download | gcc-7fc5261c7b2eb3be28854ab1b12c26fdb143b61c.tar.gz |
Add checks against missing gnatlib/gnattools.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74317 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/ada')
-rwxr-xr-x | gcc/testsuite/ada/acats/run_acats | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/ada/acats/run_acats b/gcc/testsuite/ada/acats/run_acats index 27963856f74..e61191d46c4 100755 --- a/gcc/testsuite/ada/acats/run_acats +++ b/gcc/testsuite/ada/acats/run_acats @@ -10,9 +10,21 @@ fi host_gnatmake=`type gnatmake | awk '{print $3}'` ROOT=`${PWDCMD-pwd}` BASE=`cd $ROOT/../../..; ${PWDCMD-pwd}` + PATH=$BASE:$ROOT:$PATH ADA_INCLUDE_PATH=$BASE/ada/rts ADA_OBJECTS_PATH=$ADA_INCLUDE_PATH + +if [ ! -d $ADA_INCLUDE_PATH ]; then + echo gnatlib missing, exiting. + exit 1 +fi + +if [ ! -f $BASE/gnatmake ]; then + echo gnattools missing, exiting. + exit 1 +fi + GCC="$BASE/xgcc -B$BASE/" export PATH ADA_INCLUDE_PATH ADA_OBJECTS_PATH GCC |