OSDN Git Service

* objs-gcc.sh: Don't install GDB testsuite if GDB was not built.
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Oct 2002 20:23:21 +0000 (20:23 +0000)
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Oct 2002 20:23:21 +0000 (20:23 +0000)
* 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

contrib/regression/ChangeLog
contrib/regression/btest-gcc.sh
contrib/regression/objs-gcc.sh

index f482b77..9b3406a 100644 (file)
@@ -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.
index 2f17264..7dfddb8 100755 (executable)
@@ -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
index 0e37ee8..cc152d1 100755 (executable)
@@ -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