summaryrefslogtreecommitdiff
path: root/scripts/build/test_suite
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-05-22 20:04:31 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-05-22 20:04:31 (GMT)
commitdbd5e50583752baccb59d981c2e434d3e518f762 (patch)
treef10d3ddd27ab90e6799e209fe297644106c13aa0 /scripts/build/test_suite
parent1779c82ad2916f9a3c3ad2dd350dbeb2d6692f9d (diff)
test-suite: apply cleanup pass
Remove all non-modifiable items (target tuple, gcc version, toolchain path...) Makefile syntax ( use $(...) instead of ${...} ) Update doc Space-damage cleanups
Diffstat (limited to 'scripts/build/test_suite')
-rw-r--r--scripts/build/test_suite/gcc.sh26
1 files changed, 10 insertions, 16 deletions
diff --git a/scripts/build/test_suite/gcc.sh b/scripts/build/test_suite/gcc.sh
index 1b65269..c2493c0 100644
--- a/scripts/build/test_suite/gcc.sh
+++ b/scripts/build/test_suite/gcc.sh
@@ -14,22 +14,16 @@ do_test_suite_gcc_build() {
CT_DoStep INFO "Installing GCC test suite"
- CT_DoExecLog ALL mkdir -p "${CT_TEST_SUITE_DIR}/gcc-test-suite/gcc-${CT_CC_VERSION}/gcc"
- CT_DoExecLog ALL cp "${CT_TOP_DIR}/contrib/gcc-test-suite/Makefile" \
- "${CT_TEST_SUITE_DIR}/gcc-test-suite"
- CT_DoExecLog ALL cp "${CT_TOP_DIR}/contrib/gcc-test-suite/default.cfg" \
- "${CT_TEST_SUITE_DIR}/gcc-test-suite"
- CT_DoExecLog ALL cp "${CT_TOP_DIR}/contrib/gcc-test-suite/README" \
- "${CT_TEST_SUITE_DIR}/gcc-test-suite"
- CT_DoExecLog ALL cp -r "${CT_SRC_DIR}/gcc-${CT_CC_VERSION}/gcc/testsuite" \
- "${CT_TEST_SUITE_DIR}/gcc-test-suite/gcc-${CT_CC_VERSION}/gcc"
- sed "s/DG_GCC_VERSION .*/DG_GCC_VERSION = ${CT_CC_VERSION}/g" \
- ${CT_TEST_SUITE_DIR}/gcc-test-suite/default.cfg > \
- ${CT_TEST_SUITE_DIR}/gcc-test-suite/default.cfg.tmp
- sed "s/DG_TARGET .*/DG_TARGET = ${CT_TARGET}/g" \
- ${CT_TEST_SUITE_DIR}/gcc-test-suite/default.cfg.tmp > \
- ${CT_TEST_SUITE_DIR}/gcc-test-suite/default.cfg
- CT_DoExecLog ALL rm -f "${CT_TEST_SUITE_DIR}/gcc-test-suite/default.cfg.tmp"
+ CT_DoExecLog ALL mkdir -p "${CT_TEST_SUITE_DIR}/gcc"
+ CT_DoExecLog ALL cp -a "${CT_LIB_DIR}/contrib/gcc-test-suite/default.cfg" \
+ "${CT_LIB_DIR}/contrib/gcc-test-suite/Makefile" \
+ "${CT_LIB_DIR}/contrib/gcc-test-suite/README" \
+ "${CT_SRC_DIR}/gcc-${CT_CC_VERSION}/gcc/testsuite" \
+ "${CT_TEST_SUITE_DIR}/gcc"
+
+ CT_DoExecLog ALL sed -i -r -e "s/@@DG_TARGET@@/${CT_TARGET}/g;" \
+ "${CT_TEST_SUITE_DIR}/gcc/Makefile"
+
CT_EndStep
}