scripts/build/test_suite/gcc.sh
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Wed Jun 25 23:33:01 2014 +0200 (2014-06-25)
changeset 3325 069f43a215cc
parent 1966 10ad7f230f4b
permissions -rw-r--r--
all: fix wildcard to work with make-4.x

In make-3.8x, the $(wildacrd) function would sort the entries,
while in make-4.x, it would just return the entries in any
unpredictable order [*]

Use the $(sort) function to get reproducible behaviour.

[*] Well, most probably the roder the entries appear when read
from readdir()

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