diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2016-04-30 10:42:14 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2016-04-30 10:42:14 +0000 |
commit | f73036c179d9809369cf94ac0edb31ac2a777a05 (patch) | |
tree | e5cab1c1981c16b075e1306e798661ea5cfe202e /gcc/testsuite/ada/acats | |
parent | ace08cb86b33a6d4274d477084c8e7c96937e3a2 (diff) | |
download | gcc-f73036c179d9809369cf94ac0edb31ac2a777a05.zip gcc-f73036c179d9809369cf94ac0edb31ac2a777a05.tar.gz gcc-f73036c179d9809369cf94ac0edb31ac2a777a05.tar.bz2 |
Make-lang.in (ACATSCMD): New variable.
ada/
* gcc-interface/Make-lang.in (ACATSCMD): New variable.
(check-acats): Use it.
(check_acats_targets): Likewise.
testsuite/
* ada/acats/run_acats: Rename into...
* ada/acats/run_acats.sh: ...this. Only export BASE variable.
* ada/acats/run_all.sh: Remove redundant test.
(target_run): Move around.
(target_gnatchop): Use newly built executable.
(target_gnatmake): Likewise.
Check that the compilation of impbit succeeds.
From-SVN: r235678
Diffstat (limited to 'gcc/testsuite/ada/acats')
-rwxr-xr-x | gcc/testsuite/ada/acats/run_acats.sh (renamed from gcc/testsuite/ada/acats/run_acats) | 4 | ||||
-rwxr-xr-x | gcc/testsuite/ada/acats/run_all.sh | 25 |
2 files changed, 14 insertions, 15 deletions
diff --git a/gcc/testsuite/ada/acats/run_acats b/gcc/testsuite/ada/acats/run_acats.sh index c1ed39f..1a2c050 100755 --- a/gcc/testsuite/ada/acats/run_acats +++ b/gcc/testsuite/ada/acats/run_acats.sh @@ -47,9 +47,7 @@ if [ ! -f $BASE/gnatmake ]; then exit 1 fi -GCC_DRIVER="$BASE/xgcc" -GCC="$BASE/xgcc -B$BASE/" -export PATH ADA_INCLUDE_PATH ADA_OBJECTS_PATH GCC_DRIVER GCC LD_LIBRARY_PATH +export PATH ADA_INCLUDE_PATH ADA_OBJECTS_PATH BASE LD_LIBRARY_PATH echo '#!/bin/sh' > host_gnatchop echo PATH=`dirname $host_gnatchop`:'$PATH' >> host_gnatchop diff --git a/gcc/testsuite/ada/acats/run_all.sh b/gcc/testsuite/ada/acats/run_all.sh index 658845a..7645983 100755 --- a/gcc/testsuite/ada/acats/run_all.sh +++ b/gcc/testsuite/ada/acats/run_all.sh @@ -12,10 +12,6 @@ gccflags="-O2" gnatflags="-gnatws" -target_run () { - eval $EXPECT -f $testdir/run_test.exp $* -} - # End of customization section. # Perform arithmetic evaluation on the ARGs, and store the result in the @@ -52,29 +48,30 @@ log () { dir=`${PWDCMD-pwd}` -if [ "$testdir" = "" ]; then - echo You must use make check or make check-ada - exit 1 -fi - if [ "$dir" = "$testdir" ]; then echo "error: srcdir must be different than objdir, exiting." exit 1 fi +GCC="$BASE/xgcc -B$BASE/" + target_gnatchop () { - gnatchop --GCC="$GCC_DRIVER" $* + $BASE/gnatchop --GCC="$BASE/xgcc" $* } target_gnatmake () { - echo gnatmake --GCC=\"$GCC\" $gnatflags $gccflags $* -largs $EXTERNAL_OBJECTS --GCC=\"$GCC\" - gnatmake --GCC="$GCC" $gnatflags $gccflags $* -largs $EXTERNAL_OBJECTS --GCC="$GCC" + echo $BASE/gnatmake --GNATBIND=$BASE/gnatbind --GNATLINK=$BASE/gnatlink --GCC="$GCC" $gnatflags $gccflags $* -largs $EXTERNAL_OBJECTS --GCC="$GCC" + $BASE/gnatmake --GNATBIND=$BASE/gnatbind --GNATLINK=$BASE/gnatlink --GCC="$GCC" $gnatflags $gccflags $* -largs $EXTERNAL_OBJECTS --GCC="$GCC" } target_gcc () { $GCC $gccflags $* } +target_run () { + eval $EXPECT -f $testdir/run_test.exp $* +} + clean_dir () { rm -f "$binmain" *.o *.ali > /dev/null 2>&1 } @@ -128,6 +125,10 @@ cp $testdir/support/*.ada $testdir/support/*.a $testdir/support/*.tst $dir/suppo # Find out the size in bit of an address on the target target_gnatmake $testdir/support/impbit.adb >> $dir/acats.log 2>&1 +if [ $? -ne 0 ]; then + display "**** Failed to compile impbit" + exit 1 +fi target_run $dir/support/impbit > $dir/support/impbit.out 2>&1 target_bit=`cat $dir/support/impbit.out` echo target_bit="$target_bit" >> $dir/acats.log |