Debian Codegraph @

contrib/ports/unix/example_app/iteropts.sh

raw
1 #!/bin/bash
2
3 LOGFILE=iteropts.log
4 EXAPPDIR=../../../examples/example_app
5 RETVAL=0
6
7 pushd `dirname "$0"`
8 pwd
9 echo Starting Iteropts run >> $LOGFILE
10 for f in $EXAPPDIR/test_configs/*.h
11 do
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
29 done
30 echo done, cleaning
31 make clean > /dev/null
32 popd
33 echo Exit value: $RETVAL
34 exit $RETVAL