cmake: Remove the need to configure tests/test_common.h

This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2025-09-12 13:29:17 +01:00
1 parent 30db3eaa1f
commit 0bd03b658e
7 files changed
+16 -8

No files matched your search

+13 -1
View File
@@ -16,7 +16,10 @@ echo $ARCHIVE
if test $err = 0 -a "x$ARCHIVE" != "x"; then
DIR=`pwd`/`tar taf $ARCHIVE |cut -d/ -f1|head -1`
tar xaf $ARCHIVE && cd $DIR
err=$terr
terr=$?
if [ $err = 0 ] ; then
err=$terr
fi
# LwIP
make -C $DIR/examples/lwip EXTRA_CFLAGS=-Werror
@@ -46,6 +49,15 @@ if test $err = 0 -a "x$ARCHIVE" != "x"; then
if [ $err = 0 ] ; then
err=$terr
fi
# cmake
cmake -E make_directory test-cmake
cd test-cmake
cmake .. -DENABLE_EXAMPLES=ON -DENABLE_TESTS=ON -DENABLE_DTLS=OFF -DENABLE_DOCS=OFF -DWARNING_TO_ERROR=ON
terr=$?
if [ $err = 0 ] ; then
err=$terr
fi
fi
exit $err