1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/scripts/build/test_suite.sh Tue Nov 06 17:02:06 2012 +0100
1.3 @@ -0,0 +1,41 @@
1.4 +# Wrapper to build the test suite facilities
1.5 +#
1.6 +# Current assumption: test suites are independent of each other
1.7 +# - no order handling required.
1.8 +
1.9 +# List all test suite facilities, and parse their scripts
1.10 +CT_TEST_SUITE_FACILITY_LIST=
1.11 +for f in "${CT_LIB_DIR}/scripts/build/test_suite/"*.sh; do
1.12 + _f="$(basename "${f}" .sh)"
1.13 + __f="CT_TEST_SUITE_${_f}"
1.14 + __f=`echo ${__f} | tr "[:lower:]" "[:upper:]"`
1.15 + if [ "${!__f}" = "y" ]; then
1.16 + CT_DoLog DEBUG "Enabling test suite '${_f}'"
1.17 + . "${f}"
1.18 + CT_TEST_SUITE_FACILITY_LIST="${CT_TEST_SUITE_FACILITY_LIST} ${_f}"
1.19 + else
1.20 + CT_DoLog DEBUG "Disabling test suite '${_f}'"
1.21 + fi
1.22 +done
1.23 +
1.24 +# Download the test suite facilities
1.25 +do_test_suite_get() {
1.26 + for f in ${CT_TEST_SUITE_FACILITY_LIST}; do
1.27 + do_test_suite_${f}_get
1.28 + done
1.29 +}
1.30 +
1.31 +# Extract and patch the test suite facilities
1.32 +do_test_suite_extract() {
1.33 + for f in ${CT_TEST_SUITE_FACILITY_LIST}; do
1.34 + do_test_suite_${f}_extract
1.35 + done
1.36 +}
1.37 +
1.38 +# Build the test suite facilities
1.39 +do_test_suite() {
1.40 + for f in ${CT_TEST_SUITE_FACILITY_LIST}; do
1.41 + do_test_suite_${f}_build
1.42 + done
1.43 +}
1.44 +