mgl@1965: # This file adds the functions to build the GCC test suite mgl@1965: # Copyright 2010 DoréDevelopment mgl@1965: # Created by Martin Lund mgl@1965: # Licensed under the GPL v2. See COPYING in the root of this package mgl@1965: mgl@1965: do_test_suite_gcc_get() { :; } mgl@1965: do_test_suite_gcc_extract() { :; } mgl@1965: do_test_suite_gcc_build() { :; } mgl@1965: mgl@1965: # Overide functions depending on configuration mgl@1965: if [ "${CT_TEST_SUITE_GCC}" = "y" ]; then mgl@1965: mgl@1965: do_test_suite_gcc_build() { mgl@1965: mgl@1965: CT_DoStep INFO "Installing GCC test suite" mgl@1965: mgl@1965: CT_DoExecLog ALL mkdir -p "${CT_TEST_SUITE_DIR}/gcc-test-suite/gcc-${CT_CC_VERSION}/gcc" mgl@1965: CT_DoExecLog ALL cp "${CT_TOP_DIR}/contrib/gcc-test-suite/Makefile" \ mgl@1965: "${CT_TEST_SUITE_DIR}/gcc-test-suite" mgl@1965: CT_DoExecLog ALL cp "${CT_TOP_DIR}/contrib/gcc-test-suite/default.cfg" \ mgl@1965: "${CT_TEST_SUITE_DIR}/gcc-test-suite" mgl@1965: CT_DoExecLog ALL cp "${CT_TOP_DIR}/contrib/gcc-test-suite/README" \ mgl@1965: "${CT_TEST_SUITE_DIR}/gcc-test-suite" mgl@1965: CT_DoExecLog ALL cp -r "${CT_SRC_DIR}/gcc-${CT_CC_VERSION}/gcc/testsuite" \ mgl@1965: "${CT_TEST_SUITE_DIR}/gcc-test-suite/gcc-${CT_CC_VERSION}/gcc" mgl@1965: sed "s/DG_GCC_VERSION .*/DG_GCC_VERSION = ${CT_CC_VERSION}/g" \ mgl@1965: ${CT_TEST_SUITE_DIR}/gcc-test-suite/default.cfg > \ mgl@1965: ${CT_TEST_SUITE_DIR}/gcc-test-suite/default.cfg.tmp mgl@1965: sed "s/DG_TARGET .*/DG_TARGET = ${CT_TARGET}/g" \ mgl@1965: ${CT_TEST_SUITE_DIR}/gcc-test-suite/default.cfg.tmp > \ mgl@1965: ${CT_TEST_SUITE_DIR}/gcc-test-suite/default.cfg mgl@1965: CT_DoExecLog ALL rm -f "${CT_TEST_SUITE_DIR}/gcc-test-suite/default.cfg.tmp" mgl@1965: CT_EndStep mgl@1965: } mgl@1965: mgl@1965: fi # CT_TEST_SUITE_GCC