mirror of
https://github.com/obgm/libcoap.git
synced 2026-10-27 05:01:23 +03:00
scripts/build.sh: bugfix: stay in top directory for non-posix platforms
When TESTS=yes is given, the scripts invokes the test driver from the top build directory. Platform-specific actions hence must ensure that they stay in that directory and keep the last exit code.
This commit is contained in:
1 parent
5b094eb432
commit
8bb7ec80e7
1 file changed
+4
-3
+4
-3
@@ -11,12 +11,13 @@ config() {
|
||||
|
||||
case "${PLATFORM}" in
|
||||
contiki) config "--disable-tests --disable-documentation --disable-examples" && \
|
||||
cd examples/contiki && make V=1 contiki all
|
||||
make -C examples/contiki V=1 contiki all
|
||||
;;
|
||||
lwip) config "--disable-tests --disable-documentation --disable-examples" && \
|
||||
cd examples/lwip && make lwip lwip-contrib all
|
||||
make -C examples/lwip lwip lwip-contrib all
|
||||
;;
|
||||
posix|*) config "$WITH_TESTS --enable-documentation --enable-examples" && make
|
||||
posix|*) config "$WITH_TESTS --enable-documentation --enable-examples" && \
|
||||
make
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
Reference in new issue
Block a user