diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-10-11 20:23:21 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-10-11 20:23:21 +0000 |
commit | 7a9eed3fe478871f0095e0e14c7a7114342f1927 (patch) | |
tree | 9e9e1cd2000ef7f031686e36fd6bd2ae144a5c12 /contrib | |
parent | bab7b18ed7c1a2364bd959a3afac0a6ab5bf6c85 (diff) | |
download | gcc-7a9eed3fe478871f0095e0e14c7a7114342f1927.tar.gz |
* objs-gcc.sh: Don't install GDB testsuite if GDB was not built.
* btest-gcc.sh: Don't run GDB testsuite if it doesn't exist.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58062 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/regression/ChangeLog | 5 | ||||
-rwxr-xr-x | contrib/regression/btest-gcc.sh | 4 | ||||
-rwxr-xr-x | contrib/regression/objs-gcc.sh | 16 |
3 files changed, 18 insertions, 7 deletions
diff --git a/contrib/regression/ChangeLog b/contrib/regression/ChangeLog index f482b771ff9..9b3406a71c2 100644 --- a/contrib/regression/ChangeLog +++ b/contrib/regression/ChangeLog @@ -1,3 +1,8 @@ +2002-10-11 Geoffrey Keating <geoffk@apple.com> + + * objs-gcc.sh: Don't install GDB testsuite if GDB was not built. + * btest-gcc.sh: Don't run GDB testsuite if it doesn't exist. + 2002-10-09 Phil Edwards <pme@gcc.gnu.org> * btest-gcc.sh, objs-gcc.sh: Update TARGET comments. diff --git a/contrib/regression/btest-gcc.sh b/contrib/regression/btest-gcc.sh index 2f172645e8d..7dfddb86ed6 100755 --- a/contrib/regression/btest-gcc.sh +++ b/contrib/regression/btest-gcc.sh @@ -127,6 +127,7 @@ make check-target-libstdc++-v3 # Test the just-built GCC with the GDB testsuite. mkdir test-gdb || exit 1 +if [ -d $GDB_TESTSUITE ] ; then cd $GDB_TESTSUITE || exit 1 for i in gdb.* ; do if [ -d $i ] ; then @@ -142,6 +143,9 @@ echo "set build_alias $H_BUILD" >> site.exp echo "set build_triplet $H_BUILD" >> site.exp echo "set srcdir $GDB_TESTSUITE" >> site.exp runtest --tool gdb +else + echo 'gdb tests not run' > $BUILD/test-gdb/gdb.sum +fi # Sanity-check the testlogs. They should contain at least one PASS. cd $BUILD || exit 1 diff --git a/contrib/regression/objs-gcc.sh b/contrib/regression/objs-gcc.sh index 0e37ee88af9..cc152d1f80c 100755 --- a/contrib/regression/objs-gcc.sh +++ b/contrib/regression/objs-gcc.sh @@ -113,13 +113,15 @@ else make install || exit 1 fi -mkdir -p $PREFIX/share/gdb-testsuite || exit 1 -cd $SOURCE/gdb/testsuite || exit 1 -find . -print | cpio -pdmu $PREFIX/share/gdb-testsuite || exit 1 -# selftest.exp requires keeping old sources around, which is impractical -rm $PREFIX/share/gdb-testsuite/gdb.base/selftest.exp -# these tests seem to be broken and randomly failing -rm -r $PREFIX/share/gdb-testsuite/gdb.mi +if [ -x $PREFIX/bin/$TARGET-gdb ] ; then + mkdir -p $PREFIX/share/gdb-testsuite || exit 1 + cd $SOURCE/gdb/testsuite || exit 1 + find . -print | cpio -pdmu $PREFIX/share/gdb-testsuite || exit 1 + # selftest.exp requires keeping old sources around, which is impractical + rm $PREFIX/share/gdb-testsuite/gdb.base/selftest.exp + # these tests seem to be broken and randomly failing + rm -r $PREFIX/share/gdb-testsuite/gdb.mi +fi echo pass > $RESULT exit 0 |