CI: added tests for examples under examples/coap

This commit is contained in:
Simon Duquennoy 2018-04-13 09:14:52 -07:00
parent 4f4db3d252
commit 99acfc1ab3
5 changed files with 13 additions and 6 deletions

View File

@ -23,6 +23,9 @@ slip-radio/sky \
libs/ipv6-hooks/sky \
nullnet/native \
mqtt-client/native \
coap/coap-example-client/native \
coap/coap-example-server/native \
coap/coap-plugtest-server/native \
TOOLS=

View File

@ -39,7 +39,8 @@ mqtt-client/cc2538dk \
storage/cfs-coffee/cc2538dk \
sensniff/cc2538dk \
rpl-udp/cc2538dk \
coap/cc2538dk \
coap/coap-example-client/cc2538dk \
coap/coap-example-server/cc2538dk \
slip-radio/cc2538dk \
lwm2m-ipso-objects/cc2538dk \
multicast/cc2538dk \

View File

@ -12,7 +12,8 @@ platform-specific/zoul/rev-b/zoul:BOARD=remote-revb \
platform-specific/zoul/at-test/zoul \
platform-specific/zoul/rtcc/zoul \
platform-specific/zoul/zoul \
coap/zoul \
coap/coap-example-client/zoul \
coap/coap-example-server/zoul \
multicast/zoul \
lwm2m-ipso-objects/zoul \
lwm2m-ipso-objects/zoul:MAKE_WITH_DTLS=1 \

View File

@ -12,6 +12,8 @@ platform-specific/jn516x/rpl/coap-dr1199-node/jn516x \
platform-specific/jn516x/tsch/simple-sensor-network/node/jn516x \
platform-specific/jn516x/tsch/tx-power-verification/node/jn516x \
platform-specific/jn516x/tsch/uart1-test-node/jn516x \
coap/coap-example-client/jn516x \
coap/coap-example-server/jn516x \
sensniff/jn516x \
rpl-border-router/jn516x \
6tisch/simple-node/jn516x \

View File

@ -12,8 +12,8 @@ declare -i TESTCOUNT=0
# Starting Contiki-NG native node
echo "Starting native CoAP server"
make -C $CONTIKI/examples/coap > make.log 2> make.err
sudo $CONTIKI/examples/coap/coap-example-server.native > node.log 2> node.err &
make -C $CONTIKI/examples/coap/coap-example-server > make.log 2> make.err
sudo $CONTIKI/examples/coap/coap-example-server/coap-example-server.native > node.log 2> node.err &
CPID=$!
sleep 2
@ -41,7 +41,7 @@ sleep 2
pgrep coap-example | sudo xargs kill -9
if [ $TESTCOUNT -eq $OKCOUNT ] ; then
printf "%-32s TEST OK %3d/%d\n" "$BASENAME" "$OKCOUNT" "$TESTCOUNT" > $BASENAME.testlog;
printf "%-32s TEST OK %3d/%d\n" "$BASENAME" "$OKCOUNT" "$TESTCOUNT" | tee $BASENAME.testlog;
else
echo "==== make.log ====" ; cat make.log;
echo "==== make.err ====" ; cat make.err;
@ -49,7 +49,7 @@ else
echo "==== node.err ====" ; cat node.err;
echo "==== $BASENAME.log ====" ; cat $BASENAME.log;
printf "%-32s TEST FAIL %3d/%d\n" "$BASENAME" "$OKCOUNT" "$TESTCOUNT" > $BASENAME.testlog;
printf "%-32s TEST FAIL %3d/%d\n" "$BASENAME" "$OKCOUNT" "$TESTCOUNT" | tee $BASENAME.testlog;
fi
rm -f make.log make.err node.log node.err coap.log