1#!/bin/bash 2 3LOGFILE=iteropts.log 4EXAPPDIR=../../../examples/example_app 5RETVAL=0 6 7pushd `dirname "$0"` 8pwd 9echo Starting Iteropts run >> $LOGFILE 10for f in $EXAPPDIR/test_configs/*.h 11do 12 echo Cleaning... 13 make clean > /dev/null 14 BUILDLOG=$(basename "$f" ".h").log 15 echo testing $f 16 echo testing $f >> $LOGFILE 17 rm -f $EXAPPDIR/lwipopts_test.h 18 # cat the file to update its timestamp 19 cat $f > $EXAPPDIR/lwipopts_test.h 20 make TESTFLAGS="-DLWIP_OPTTEST_FILE -Wno-documentation" -j 4 1> $BUILDLOG 2>&1 21 ERR=$? 22 if [ $ERR != 0 ]; then 23 cat $BUILDLOG 24 echo file $f failed with $ERR >> $LOGFILE 25 echo ++++++++ $f FAILED +++++++ 26 RETVAL=1 27 fi 28 echo test $f done >> $LOGFILE 29done 30echo done, cleaning 31make clean > /dev/null 32popd 33echo Exit value: $RETVAL 34exit $RETVAL 35