summaryrefslogtreecommitdiff
path: root/scripts/crosstool-NG.sh.in
diff options
context:
space:
mode:
authorMartin Lund <mgl@doredevelopment.dk>2010-05-19 15:53:04 (GMT)
committerMartin Lund <mgl@doredevelopment.dk>2010-05-19 15:53:04 (GMT)
commit1779c82ad2916f9a3c3ad2dd350dbeb2d6692f9d (patch)
treeced95e1ac1b87ffeaffa3aafa985be5e27ca621e /scripts/crosstool-NG.sh.in
parent0a63e8222c2865406f0c8967fedd8a89c2c816d8 (diff)
test-suite: Added new test suite feature (experimental)
This patch adds support for installing the gcc test suite. A helper Makefile is provided for building and running the gcc tests. The default configuration runs all gcc tests and requires automatic ssh/scp login access to a networked target board. See README for more details. Note: Current feature is tested with the powerpc-unknown-linux-gnu sample but it should work with others as well. Signed-off-by: Martin Lund <mgl@doredevelopment.dk>
Diffstat (limited to 'scripts/crosstool-NG.sh.in')
-rw-r--r--scripts/crosstool-NG.sh.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in
index cc54202..29ae4a1 100644
--- a/scripts/crosstool-NG.sh.in
+++ b/scripts/crosstool-NG.sh.in
@@ -125,6 +125,7 @@ CT_DoLog INFO "Building environment variables"
. "${CT_LIB_DIR}/scripts/build/libc/${CT_LIBC}.sh"
. "${CT_LIB_DIR}/scripts/build/cc/${CT_CC}.sh"
. "${CT_LIB_DIR}/scripts/build/debug.sh"
+. "${CT_LIB_DIR}/scripts/build/test_suite.sh"
# Target tuple: CT_TARGET needs a little love:
CT_DoBuildTargetTuple
@@ -159,6 +160,9 @@ else
CT_COMPLIBS_DIR="${CT_BUILD_DIR}/static"
fi
+# Compute test suite install directory
+CT_TEST_SUITE_DIR=${CT_INSTALL_DIR}/test-suite
+
# Note: we'll always install the core compiler in its own directory, so as to
# not mix the two builds: core and final.
CT_CC_CORE_STATIC_PREFIX_DIR="${CT_BUILD_DIR}/${CT_CC}-core-static"
@@ -518,6 +522,7 @@ if [ -z "${CT_RESTART}" ]; then
do_cc_get
do_libc_get
do_debug_get
+ do_test_suite_get
CT_EndStep
fi
@@ -548,6 +553,7 @@ if [ -z "${CT_RESTART}" ]; then
do_cc_extract
do_libc_extract
do_debug_extract
+ do_test_suite_extract
CT_EndStep
fi
fi
@@ -596,5 +602,6 @@ exec >/dev/null 2>&1
[ "${CT_LOG_FILE_COMPRESS}" = y ] && bzip2 -9 "${CT_LOG_FILE}"
[ "${CT_INSTALL_DIR_RO}" = "y" ] && chmod -R a-w "${CT_INSTALL_DIR}"
+[ "${CT_TEST_SUITE}" = "y" ] && chmod -R a+w "${CT_TEST_SUITE_DIR}"
trap - EXIT