#!/bin/bash # Import common sanity check definitions # if [ -z ${TIMO_BASE} ]; then echo "shell variables required to build VxMicro are not set" exit 1 fi if [ ! -d ${TIMO_BASE} ] ; then echo "directory ${TIMO_BASE} not found" exit 1 fi source ${TIMO_BASE}/scripts/sanity_chk/common.defs # Location of master project directory # PRJ_PATH=${TIMO_BASE}/samples PRJ_LIST="\ nanokernel/apps/bluetooth/init pentium4 \n\ nanokernel/apps/bluetooth/init quark \n\ # nanokernel/apps/bluetooth/init atom \n\ nanokernel/apps/bluetooth/init minuteia \n\ nanokernel/apps/bluetooth/init fsl_frdm_k64f \n\ nanokernel/apps/bluetooth/init ti_lm3s6965 \n\ nanokernel/apps/bluetooth/shell pentium4 \n\ nanokernel/apps/bluetooth/shell ti_lm3s6965 \n\ nanokernel/apps/bluetooth/shell fsl_frdm_k64f \n\ nanokernel/test/test_bluetooth pentium4! \n\ nanokernel/test/test_bluetooth quark \n\ # nanokernel/test/test_bluetooth atom \n\ nanokernel/test/test_bluetooth minuteia! \n\ nanokernel/test/test_bluetooth ti_lm3s6965! \n\ nanokernel/test/test_bluetooth fsl_frdm_k64f \n\ bluetooth/peripheral pentium4 \n\ bluetooth/peripheral ti_lm3s6965 \n\ microkernel/test/test_bluetooth pentium4! \n\ microkernel/test/test_bluetooth quark \n\ # microkernel/test/test_bluetooth atom \n\ microkernel/test/test_bluetooth minuteia! \n\ microkernel/test/test_bluetooth ti_lm3s6965! \n\ microkernel/test/test_bluetooth fsl_frdm_k64f " main() { # set up default behaviors build_only=0 BSP_NAME="" ARCH_NAME="" KEEP_LOGS=0 VXMICRO_TOOL=gcc # set up environment info used to build projects build_info_set # set up project info used to build projects proj_info_set # build (and optionally execute) projects PRJ_CLASS="regression" let cur_proj=0 let build_proj=0 let run_proj=0 while [ ${cur_proj} -lt ${NUM_PROJ} ] ; do let cur_proj++ print_header # build project build_project ${cur_proj} let build_proj++ # skip non-executable projects (or when doing "build only") if [ ${build_only} = 1 -o x${BSP_FLAG[${cur_proj}]} = x ] ; then continue fi # execute project qemu_project ${cur_proj} let run_proj++ done ${ECHO} print_header ${ECHO} "${SCRIPT_NAME} completed successfully "\ "(built ${build_proj} projects and ran ${run_proj} of them)" } main $* # success exit exit 0