scripts/build/test_suite/gcc.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jan 01 22:54:37 2012 +0100 (2012-01-01)
changeset 2830 c3ff88a0c788
parent 1966 10ad7f230f4b
permissions -rw-r--r--
cc/gcc: copy file with 'cp -v', it rotates the progress bar

Installing the gcc test-suite can take a bit of time, so the
progress bar is currently not rotating because there is no
output during the copy. For an unsuspecting user, it could
mean the process hung.

With 'cp -v', the progress bar now rotates.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
mgl@1965
     1
# This file adds the functions to build the GCC test suite
mgl@1965
     2
# Copyright 2010 DoréDevelopment
mgl@1965
     3
# Created by Martin Lund <mgl@doredevelopment.dk>
mgl@1965
     4
# Licensed under the GPL v2. See COPYING in the root of this package
mgl@1965
     5
mgl@1965
     6
do_test_suite_gcc_get() { :; }
mgl@1965
     7
do_test_suite_gcc_extract() { :; }
mgl@1965
     8
do_test_suite_gcc_build() { :; }
mgl@1965
     9
mgl@1965
    10
# Overide functions depending on configuration
mgl@1965
    11
if [ "${CT_TEST_SUITE_GCC}" = "y" ]; then
mgl@1965
    12
mgl@1965
    13
do_test_suite_gcc_build() {
mgl@1965
    14
 
mgl@1965
    15
    CT_DoStep INFO "Installing GCC test suite"
mgl@1965
    16
yann@1966
    17
    CT_DoExecLog ALL mkdir -p "${CT_TEST_SUITE_DIR}/gcc"
yann@2830
    18
    CT_DoExecLog ALL cp -av "${CT_LIB_DIR}/contrib/gcc-test-suite/default.cfg"  \
yann@2830
    19
                            "${CT_LIB_DIR}/contrib/gcc-test-suite/Makefile"     \
yann@2830
    20
                            "${CT_LIB_DIR}/contrib/gcc-test-suite/README"       \
yann@2830
    21
                            "${CT_SRC_DIR}/gcc-${CT_CC_VERSION}/gcc/testsuite"  \
yann@2830
    22
                            "${CT_TEST_SUITE_DIR}/gcc"
yann@1966
    23
yann@1966
    24
    CT_DoExecLog ALL sed -i -r -e "s/@@DG_TARGET@@/${CT_TARGET}/g;"     \
yann@1966
    25
                         "${CT_TEST_SUITE_DIR}/gcc/Makefile"
yann@1966
    26
mgl@1965
    27
    CT_EndStep
mgl@1965
    28
}
mgl@1965
    29
mgl@1965
    30
fi # CT_TEST_SUITE_GCC