From: maek Date: Fri, 3 Dec 2010 10:12:11 +0000 (+0100) Subject: Fixed erronous coding of previously committed script. X-Git-Url: http://rtime.felk.cvut.cz/gitweb/arc.git/commitdiff_plain/02b9dd111e36df91d3a1466acf30e64c731bd395 Fixed erronous coding of previously committed script. --- diff --git a/scripts/compile_examples.sh b/scripts/compile_examples.sh new file mode 100644 index 00000000..fc0e847b --- /dev/null +++ b/scripts/compile_examples.sh @@ -0,0 +1,74 @@ +#!/bin/bash + +ARC_DIR=../ +EXAMPLE_DIR=${ARC_DIR}/examples/ +COMPILER_DIR=/opt/compilers/ +OUTPUT=test_output.xml +BUILDOUTTMP=tmp_out.txt + + +function failedTest { +echo " \ + ${2} \ + ${3} \ +" >> $OUTPUT + +# echo "" +# echo "c:/ArcticStudio/workspace/arc-tests/ComTests/com_test.c" +# echo "444" +# echo "" +# echo "UPNotificationCalled == getNumberOfSignalsInPdu(IPduId) && 0" +} + +function successfulTest { +echo " \ + ${2} \ +" >> $OUTPUT +} + +function warningTest { +echo " \ + ${2} \ + ${3} +" >> $OUTPUT +} + + + + +echo " \ + \ + \ + \ +" > $OUTPUT + +TEST_ID=1 +for EXAMPLE in `ls $EXAMPLE_DIR`; do + for BOARD in `ls ${EXAMPLE_DIR}${EXAMPLE}/config`; do + + C=`grep $BOARD compilers.txt` + COMPILER=${COMPILER_DIR}${C#$BOARD:} + + TEST_NAME=${EXAMPLE}-${BOARD} + + if [ -x "${COMPILER}gcc" ]; then + BUILD_FILE=${EXAMPLE}_${BOARD}.elf + make -C ${ARC_DIR} CROSS_COMPILE=$COMPILER BOARDDIR=$BOARD BDIR=examples/$EXAMPLE build-exe-y=${BUILD_FILE} clean all + + if [ -a ${ARC_DIR}/binaries/${BUILD_FILE} ]; then + successfulTest $TEST_ID $TEST_NAME + else + BUILDOUT=`cat $BUILDOUTTMP` + failedTest $TEST_ID $TEST_NAME "See console output for information" + fi + else + warningTest $TEST_ID $TEST_NAME "No compiler found" + fi + let TEST_ID=TEST_ID+1 + done +done + +echo " \ + \ +" >> $OUTPUT + diff --git a/scripts/compilers.txt b/scripts/compilers.txt new file mode 100644 index 00000000..2ca3d4a1 --- /dev/null +++ b/scripts/compilers.txt @@ -0,0 +1,8 @@ +ti_tms570ls:arm-none-eabi/bin/arm-none-eabi- +stm32_mcbstm32:arm-none-eabi/bin/arm-none-eabi- +stm32_stm3210c:arm-none-eabi/bin/arm-none-eabi- +mpc5516it:powerpc-eabispe/bin/powerpc-eabispe- +mpc5567qrtech:powerpc-eabispe/bin/powerpc-eabispe- +mpc551xsim:powerpc-eabispe/bin/powerpc-eabispe- +mpc5554sim:powerpc-eabispe/bin/powerpc-eabispe- +linux: