2018-10-02 10:17:31 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
LOGFILE=iteropts.log
|
|
|
|
EXAPPDIR=../../../examples/example_app
|
2018-10-18 19:59:36 +00:00
|
|
|
RETVAL=0
|
2018-10-02 10:17:31 +00:00
|
|
|
|
|
|
|
pushd `dirname "$0"`
|
|
|
|
pwd
|
|
|
|
echo Starting Iteropts run >> $LOGFILE
|
|
|
|
for f in $EXAPPDIR/test_configs/*.h
|
|
|
|
do
|
|
|
|
echo Cleaning...
|
2018-10-18 20:36:59 +00:00
|
|
|
make clean > /dev/null
|
2018-10-02 10:17:31 +00:00
|
|
|
BUILDLOG=$(basename "$f" ".h").log
|
|
|
|
echo testing $f
|
|
|
|
echo testing $f >> $LOGFILE
|
2021-11-24 22:04:14 +00:00
|
|
|
rm -f $EXAPPDIR/lwipopts_test.h
|
2018-10-02 10:17:31 +00:00
|
|
|
# cat the file to update its timestamp
|
|
|
|
cat $f > $EXAPPDIR/lwipopts_test.h
|
2019-02-03 08:31:26 +00:00
|
|
|
make TESTFLAGS="-DLWIP_OPTTEST_FILE -Wno-documentation" -j 4 1> $BUILDLOG 2>&1
|
|
|
|
ERR=$?
|
|
|
|
if [ $ERR != 0 ]; then
|
|
|
|
cat $BUILDLOG
|
|
|
|
echo file $f failed with $ERR >> $LOGFILE
|
|
|
|
echo ++++++++ $f FAILED +++++++
|
|
|
|
RETVAL=1
|
|
|
|
fi
|
2018-10-02 10:17:31 +00:00
|
|
|
echo test $f done >> $LOGFILE
|
|
|
|
done
|
|
|
|
echo done, cleaning
|
2018-10-18 20:36:59 +00:00
|
|
|
make clean > /dev/null
|
2018-10-02 10:17:31 +00:00
|
|
|
popd
|
2019-02-02 22:17:39 +00:00
|
|
|
echo Exit value: $RETVAL
|
2018-10-18 19:59:36 +00:00
|
|
|
exit $RETVAL
|