scripts/build/test_suite.sh
author Cody Schafer <dev@codyps.com>
Fri May 09 19:11:59 2014 -0700 (2014-05-09)
changeset 3311 e35fa03cd204
permissions -rw-r--r--
cc/gcc: avoid passing --enable-multilib

Some versions of gcc have a broken --enable-multilib flag. As multilib is the
default, only pass the --disable-multilib flag

Signed-off-by: Cody P Schafer <dev@codyps.com>
[yann.morin.1998@free.fr: make it an if-block; duplicate commit log as comment]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <5c970c1ceb22528fe28a.1399687923@localhost>
Patchwork-Id: 347585
     1 # Wrapper to build the test suite facilities
     2 #
     3 # Current assumption: test suites are independent of each other
     4 #                     - no order handling required.
     5 
     6 # List all test suite facilities, and parse their scripts
     7 CT_TEST_SUITE_FACILITY_LIST=
     8 for f in "${CT_LIB_DIR}/scripts/build/test_suite/"*.sh; do
     9     _f="$(basename "${f}" .sh)"
    10     __f="CT_TEST_SUITE_${_f}"
    11     __f=`echo ${__f} | tr "[:lower:]" "[:upper:]"`
    12     if [ "${!__f}" = "y" ]; then
    13         CT_DoLog DEBUG "Enabling test suite '${_f}'"
    14         . "${f}"
    15         CT_TEST_SUITE_FACILITY_LIST="${CT_TEST_SUITE_FACILITY_LIST} ${_f}"
    16     else
    17         CT_DoLog DEBUG "Disabling test suite '${_f}'"
    18     fi
    19 done
    20 
    21 # Download the test suite facilities
    22 do_test_suite_get() {
    23     for f in ${CT_TEST_SUITE_FACILITY_LIST}; do
    24         do_test_suite_${f}_get
    25     done
    26 }
    27 
    28 # Extract and patch the test suite facilities
    29 do_test_suite_extract() {
    30     for f in ${CT_TEST_SUITE_FACILITY_LIST}; do
    31         do_test_suite_${f}_extract
    32     done
    33 }
    34 
    35 # Build the test suite facilities
    36 do_test_suite() {
    37     for f in ${CT_TEST_SUITE_FACILITY_LIST}; do
    38         do_test_suite_${f}_build
    39     done
    40 }
    41