aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Savoye <rob.savoye@linaro.org>2014-11-11 14:01:20 -0700
committerRob Savoye <rob.savoye@linaro.org>2014-11-11 14:01:20 -0700
commita0a784ad1743de094647a92d120a1cff6e2c79cc (patch)
treee87dfea6dc888c49868e77f173e1ad631e3d132f
parent4e071cfdd88d62741ae0a1dada1c30b90a8d0756 (diff)
pass the build tree sysroot since gdbserver is built for the target. Run GDB tests.
Change-Id: I2211d6ded2e81fc91307b128c306a3bc3ee3c826
-rw-r--r--config/gdbserver.conf4
-rwxr-xr-xlib/make.sh15
2 files changed, 14 insertions, 5 deletions
diff --git a/config/gdbserver.conf b/config/gdbserver.conf
index 1545d78..f9d1696 100644
--- a/config/gdbserver.conf
+++ b/config/gdbserver.conf
@@ -9,6 +9,4 @@ static_link=yes
default_configure_flags="LDFLAGS=-static"
# This is a list of default flags always supplied to "make check".
-runtest_flags="-a"
-
-
+runtest_flags=""
diff --git a/lib/make.sh b/lib/make.sh
index 1353d21..4dc16dc 100755
--- a/lib/make.sh
+++ b/lib/make.sh
@@ -162,6 +162,17 @@ build_all()
fi
rm -f ${sumsfile}
+ if test x"${runtests}" = xyes; then
+ notice "Testing components"
+ buildingall=no
+ make_check ${binutils_version}
+ make_check ${gcc_version} stage2
+ make_check ${gdb_version}
+ fi
+
+ # Notify that the test run completed successfully
+ test_success
+
if test x"${tarsrc}" = x"yes"; then
if test "`echo ${with_packages} | grep -c toolchain`" -gt 0; then
release_binutils_src
@@ -398,7 +409,7 @@ make_all()
local default_makeflags="`read_config $1 default_makeflags`"
if test x"${tool}" = x"gdb" -a x"$2" == x"gdbserver"; then
- default_makeflags="gdbserver"
+ default_makeflags="gdbserver CFLAGS=--sysroot=${local_builds}/sysroot-${target}"
fi
if test x"${default_makeflags}" != x; then
@@ -655,7 +666,7 @@ make_check()
# Some tests cause problems, so don't run them all unless
# --enable alltests is specified at runtime.
- local ignore="dejagnu gmp mpc mpfr gdb make eglibc linux"
+ local ignore="dejagnu gmp mpc mpfr make eglibc linux"
for i in ${ignore}; do
if test x"${tool}" = x$i -a x"${alltests}" != xyes; then
return 0