Matthias Ringwald 97dc5e692c new pan_lwip_http_server example
- add lwIP sources commit b3a939417 (after STABLE-2.1.1) as 3rd-party/lwip/core
- add small DHCP server as 3rd-party/lwip/dhcp-server
- add BNEP lwIP adapter that handles BNEP events and forwards packets between BNEP and lwIP (only tested for NO_SYS == 1)
- add pan_lwip_http_server example that provides lwIP http server on http://192.168.7.1
- example is added to port/libusb
2019-06-07 16:57:00 +02:00

66 lines
1.4 KiB
Bash
Executable File

#!/bin/bash
RETVAL=0
cd contrib/ports/unix/check
#build and run unit tests
make clean all
# Build test using make, this tests the Makefile toolchain
make check -j 4
ERR=$?
echo Return value from unittests: $ERR
if [ $ERR != 0 ]; then
echo "++++++++++++++++++++++++++++++ unittests build failed"
RETVAL=1
fi
# Build example_app using cmake, this tests the CMake toolchain
cd ../../../../
# Copy lwipcfg for example app
cp contrib/examples/example_app/lwipcfg.h.travis contrib/examples/example_app/lwipcfg.h
# Generate CMake
mkdir build
cd build
/usr/local/bin/cmake .. -G Ninja
ERR=$?
echo Return value from cmake generate: $ERR
if [ $ERR != 0 ]; then
echo "++++++++++++++++++++++++++++++ cmake GENERATE failed"
RETVAL=1
fi
# Build CMake
/usr/local/bin/cmake --build .
ERR=$?
echo Return value from build: $ERR
if [ $ERR != 0 ]; then
echo "++++++++++++++++++++++++++++++ cmake build failed"
RETVAL=1
fi
# Build docs
/usr/local/bin/cmake --build . --target lwipdocs
ERR=$?
echo Return value from lwipdocs: $ERR
if [ $ERR != 0 ]; then
echo "++++++++++++++++++++++++++++++ lwIP documentation failed"
RETVAL=1
fi
# Test different lwipopts.h
cd ..
cd contrib/ports/unix/example_app
./iteropts.sh
ERR=$?
echo Return value from iteropts: $ERR
if [ $ERR != 0 ]; then
echo "++++++++++++++++++++++++++++++ lwIP iteropts test failed"
RETVAL=1
fi
echo Exit value: $RETVAL
exit $RETVAL