Skip to content
Snippets Groups Projects
Commit ca91148b authored by Geoffrey Keating's avatar Geoffrey Keating Committed by Geoffrey Keating
Browse files

objs-gcc.sh: Don't install GDB testsuite if GDB was not built.

	* 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.

From-SVN: r58062
parent dac45b5c
No related merge requests found
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> 2002-10-09 Phil Edwards <pme@gcc.gnu.org>
* btest-gcc.sh, objs-gcc.sh: Update TARGET comments. * btest-gcc.sh, objs-gcc.sh: Update TARGET comments.
......
...@@ -127,6 +127,7 @@ make check-target-libstdc++-v3 ...@@ -127,6 +127,7 @@ make check-target-libstdc++-v3
# Test the just-built GCC with the GDB testsuite. # Test the just-built GCC with the GDB testsuite.
mkdir test-gdb || exit 1 mkdir test-gdb || exit 1
if [ -d $GDB_TESTSUITE ] ; then
cd $GDB_TESTSUITE || exit 1 cd $GDB_TESTSUITE || exit 1
for i in gdb.* ; do for i in gdb.* ; do
if [ -d $i ] ; then if [ -d $i ] ; then
...@@ -142,6 +143,9 @@ echo "set build_alias $H_BUILD" >> site.exp ...@@ -142,6 +143,9 @@ echo "set build_alias $H_BUILD" >> site.exp
echo "set build_triplet $H_BUILD" >> site.exp echo "set build_triplet $H_BUILD" >> site.exp
echo "set srcdir $GDB_TESTSUITE" >> site.exp echo "set srcdir $GDB_TESTSUITE" >> site.exp
runtest --tool gdb 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. # Sanity-check the testlogs. They should contain at least one PASS.
cd $BUILD || exit 1 cd $BUILD || exit 1
......
...@@ -113,13 +113,15 @@ else ...@@ -113,13 +113,15 @@ else
make install || exit 1 make install || exit 1
fi fi
mkdir -p $PREFIX/share/gdb-testsuite || exit 1 if [ -x $PREFIX/bin/$TARGET-gdb ] ; then
cd $SOURCE/gdb/testsuite || exit 1 mkdir -p $PREFIX/share/gdb-testsuite || exit 1
find . -print | cpio -pdmu $PREFIX/share/gdb-testsuite || exit 1 cd $SOURCE/gdb/testsuite || exit 1
# selftest.exp requires keeping old sources around, which is impractical find . -print | cpio -pdmu $PREFIX/share/gdb-testsuite || exit 1
rm $PREFIX/share/gdb-testsuite/gdb.base/selftest.exp # selftest.exp requires keeping old sources around, which is impractical
# these tests seem to be broken and randomly failing rm $PREFIX/share/gdb-testsuite/gdb.base/selftest.exp
rm -r $PREFIX/share/gdb-testsuite/gdb.mi # these tests seem to be broken and randomly failing
rm -r $PREFIX/share/gdb-testsuite/gdb.mi
fi
echo pass > $RESULT echo pass > $RESULT
exit 0 exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment