X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=test%2Fnightly_test.sh;h=afe17321e324152a515ae2f59e986c90223cf0e1;hb=4c61653db84fe75fc2bb8f5af9d1ac0343068b4c;hp=eadccd3cf24c142f7bf8fdc6c89a1114ec8d889f;hpb=0306698feb726886825f04164b827d5d71f353b4;p=bertos.git diff --git a/test/nightly_test.sh b/test/nightly_test.sh index eadccd3c..afe17321 100755 --- a/test/nightly_test.sh +++ b/test/nightly_test.sh @@ -39,7 +39,7 @@ OPTS=1 if [ $# = 1 ] ; then if [ $1 = "-h" ] ; then printf "Nightly test help.\n" - printf "\t--no-silent disable the silent of the TODO/FIXME warning message.\n" + printf "\t--no-silent disable the silent of the TODO/FIXME warning messages.\n" exit 1 elif [ $1 = "--no-silent" ] ; then OPTS=0 @@ -49,14 +49,19 @@ fi if [ $OPTS = 1 ] ; then #Copy BeRTOS sources printf "Starting nightlytest..\n" - printf "Silent mode enable, removing the TODO/FIXME message warning.\n" + printf "Silent mode enabled: removing the TODO/FIXME messages.\n" cp -R $BERTOS_DIR $BERTOS_DIR_BAK || exit 1 #Strip away TODOs and FIXME find $BERTOS_DIR -name "*.[ch]" | xargs perl -p -i -e 's/^\s*#warning\s*(TODO|FIXME).*//g;' + CFG_LIST=`find $BERTOS_DIR/cfg -name "cfg_*.h"` + for i in $CFG_LIST ; + do + $TEST_DIR/enablecfg.py $i + done fi -#Cpu target that we want to test +#Cpu targets that we want to test TRG="avr arm" for i in $TRG ; @@ -67,8 +72,7 @@ done #Clean and launch make on all make -f ${MAKEFILE_TEST_DIR}/Makefile.test clean make -f ${MAKEFILE_TEST_DIR}/Makefile.test - - +RET=$? if [ $OPTS = 1 ] ; then #Restore original sources if [ -d $BERTOS_DIR_BAK ] ; then @@ -82,5 +86,5 @@ if [ $OPTS = 1 ] ; then fi printf "Nightly test done.\n\n" - +exit $RET