diff options
author | Martin Lund <mgl@doredevelopment.dk> | 2010-05-19 15:53:04 (GMT) |
---|---|---|
committer | Martin Lund <mgl@doredevelopment.dk> | 2010-05-19 15:53:04 (GMT) |
commit | 1779c82ad2916f9a3c3ad2dd350dbeb2d6692f9d (patch) | |
tree | ced95e1ac1b87ffeaffa3aafa985be5e27ca621e /scripts/build/test_suite.sh | |
parent | 0a63e8222c2865406f0c8967fedd8a89c2c816d8 (diff) |
test-suite: Added new test suite feature (experimental)
This patch adds support for installing the gcc test suite. A helper
Makefile is provided for building and running the gcc tests.
The default configuration runs all gcc tests and requires automatic
ssh/scp login access to a networked target board. See README for
more details.
Note: Current feature is tested with the powerpc-unknown-linux-gnu
sample but it should work with others as well.
Signed-off-by: Martin Lund <mgl@doredevelopment.dk>
Diffstat (limited to 'scripts/build/test_suite.sh')
-rw-r--r-- | scripts/build/test_suite.sh | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/scripts/build/test_suite.sh b/scripts/build/test_suite.sh new file mode 100644 index 0000000..8fabf42 --- /dev/null +++ b/scripts/build/test_suite.sh @@ -0,0 +1,41 @@ +# Wrapper to build the test suite facilities +# +# Current assumption: test suites are independent of each other +# - no order handling required. + +# List all test suite facilities, and parse their scripts +CT_TEST_SUITE_FACILITY_LIST= +for f in "${CT_LIB_DIR}/scripts/build/test_suite/"*.sh; do + _f="$(basename "${f}" .sh)" + __f="CT_TEST_SUITE_${_f}" + __f=`echo ${__f} | tr "[:lower:]" "[:upper:]"` + if [ "${!__f}" = "y" ]; then + CT_DoLog DEBUG "Enabling test suite '${_f}'" + . "${f}" + CT_TEST_SUITE_FACILITY_LIST="${CT_TEST_SUITE_FACILITY_LIST} ${_f}" + else + CT_DoLog DEBUG "Disabling test suite '${_f}'" + fi +done + +# Download the test suite facilities +do_test_suite_get() { + for f in ${CT_TEST_SUITE_FACILITY_LIST}; do + do_test_suite_${f}_get + done +} + +# Extract and patch the test suite facilities +do_test_suite_extract() { + for f in ${CT_TEST_SUITE_FACILITY_LIST}; do + do_test_suite_${f}_extract + done +} + +# Build the test suite facilities +do_test_suite() { + for f in ${CT_TEST_SUITE_FACILITY_LIST}; do + do_test_suite_${f}_build + done +} + |