mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-05 08:28:32 +00:00
32 lines
611 B
Bash
Executable File
32 lines
611 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cd contrib/ports/unix/check
|
|
#build and run unit tests
|
|
make clean all
|
|
ERR=$?
|
|
if [ $ERR != 0 ]; then
|
|
echo "unittests build failed"
|
|
exit 33
|
|
fi
|
|
# Build test using make, this tests the Makefile toolchain
|
|
make check -j 4
|
|
|
|
|
|
# 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
|
|
cmake ..
|
|
|
|
# Build CMake
|
|
ERR=$?
|
|
if [ $ERR != 0 ]; then
|
|
echo "cmake build failed"
|
|
exit 33
|
|
fi
|
|
cmake --build . -- -j 4
|