diff options
author | Tom Rini <trini@konsulko.com> | 2024-10-16 08:10:14 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-10-16 08:10:14 -0600 |
commit | f3f86fd1fe0fb288356bff78f8a6fa2edf89e3fc (patch) | |
tree | f0a99ea87d92f63895a6d053e3185838ebecf2d0 /contrib/ports/unix/example_app/iteropts.sh |
Squashed 'lib/lwip/lwip/' content from commit 0a0452b2c39b
git-subtree-dir: lib/lwip/lwip
git-subtree-split: 0a0452b2c39bdd91e252aef045c115f88f6ca773
Diffstat (limited to 'contrib/ports/unix/example_app/iteropts.sh')
-rwxr-xr-x | contrib/ports/unix/example_app/iteropts.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/contrib/ports/unix/example_app/iteropts.sh b/contrib/ports/unix/example_app/iteropts.sh new file mode 100755 index 00000000000..3856141f9f4 --- /dev/null +++ b/contrib/ports/unix/example_app/iteropts.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +LOGFILE=iteropts.log +EXAPPDIR=../../../examples/example_app +RETVAL=0 + +pushd `dirname "$0"` +pwd +echo Starting Iteropts run >> $LOGFILE +for f in $EXAPPDIR/test_configs/*.h +do + echo Cleaning... + make clean > /dev/null + BUILDLOG=$(basename "$f" ".h").log + echo testing $f + echo testing $f >> $LOGFILE + rm -f $EXAPPDIR/lwipopts_test.h + # cat the file to update its timestamp + cat $f > $EXAPPDIR/lwipopts_test.h + 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 + echo test $f done >> $LOGFILE +done +echo done, cleaning +make clean > /dev/null +popd +echo Exit value: $RETVAL +exit $RETVAL |