mgl@1965: # Wrapper to build the test suite facilities mgl@1965: # mgl@1965: # Current assumption: test suites are independent of each other mgl@1965: # - no order handling required. mgl@1965: mgl@1965: # List all test suite facilities, and parse their scripts mgl@1965: CT_TEST_SUITE_FACILITY_LIST= mgl@1965: for f in "${CT_LIB_DIR}/scripts/build/test_suite/"*.sh; do mgl@1965: _f="$(basename "${f}" .sh)" mgl@1965: __f="CT_TEST_SUITE_${_f}" mgl@1965: __f=`echo ${__f} | tr "[:lower:]" "[:upper:]"` mgl@1965: if [ "${!__f}" = "y" ]; then mgl@1965: CT_DoLog DEBUG "Enabling test suite '${_f}'" mgl@1965: . "${f}" mgl@1965: CT_TEST_SUITE_FACILITY_LIST="${CT_TEST_SUITE_FACILITY_LIST} ${_f}" mgl@1965: else mgl@1965: CT_DoLog DEBUG "Disabling test suite '${_f}'" mgl@1965: fi mgl@1965: done mgl@1965: mgl@1965: # Download the test suite facilities mgl@1965: do_test_suite_get() { mgl@1965: for f in ${CT_TEST_SUITE_FACILITY_LIST}; do mgl@1965: do_test_suite_${f}_get mgl@1965: done mgl@1965: } mgl@1965: mgl@1965: # Extract and patch the test suite facilities mgl@1965: do_test_suite_extract() { mgl@1965: for f in ${CT_TEST_SUITE_FACILITY_LIST}; do mgl@1965: do_test_suite_${f}_extract mgl@1965: done mgl@1965: } mgl@1965: mgl@1965: # Build the test suite facilities mgl@1965: do_test_suite() { mgl@1965: for f in ${CT_TEST_SUITE_FACILITY_LIST}; do mgl@1965: do_test_suite_${f}_build mgl@1965: done mgl@1965: } mgl@1965: