CI: added tests for examples under examples/coap
This commit is contained in:
parent
4f4db3d252
commit
99acfc1ab3
|
@ -23,6 +23,9 @@ slip-radio/sky \
|
||||||
libs/ipv6-hooks/sky \
|
libs/ipv6-hooks/sky \
|
||||||
nullnet/native \
|
nullnet/native \
|
||||||
mqtt-client/native \
|
mqtt-client/native \
|
||||||
|
coap/coap-example-client/native \
|
||||||
|
coap/coap-example-server/native \
|
||||||
|
coap/coap-plugtest-server/native \
|
||||||
|
|
||||||
TOOLS=
|
TOOLS=
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,8 @@ mqtt-client/cc2538dk \
|
||||||
storage/cfs-coffee/cc2538dk \
|
storage/cfs-coffee/cc2538dk \
|
||||||
sensniff/cc2538dk \
|
sensniff/cc2538dk \
|
||||||
rpl-udp/cc2538dk \
|
rpl-udp/cc2538dk \
|
||||||
coap/cc2538dk \
|
coap/coap-example-client/cc2538dk \
|
||||||
|
coap/coap-example-server/cc2538dk \
|
||||||
slip-radio/cc2538dk \
|
slip-radio/cc2538dk \
|
||||||
lwm2m-ipso-objects/cc2538dk \
|
lwm2m-ipso-objects/cc2538dk \
|
||||||
multicast/cc2538dk \
|
multicast/cc2538dk \
|
||||||
|
|
|
@ -12,7 +12,8 @@ platform-specific/zoul/rev-b/zoul:BOARD=remote-revb \
|
||||||
platform-specific/zoul/at-test/zoul \
|
platform-specific/zoul/at-test/zoul \
|
||||||
platform-specific/zoul/rtcc/zoul \
|
platform-specific/zoul/rtcc/zoul \
|
||||||
platform-specific/zoul/zoul \
|
platform-specific/zoul/zoul \
|
||||||
coap/zoul \
|
coap/coap-example-client/zoul \
|
||||||
|
coap/coap-example-server/zoul \
|
||||||
multicast/zoul \
|
multicast/zoul \
|
||||||
lwm2m-ipso-objects/zoul \
|
lwm2m-ipso-objects/zoul \
|
||||||
lwm2m-ipso-objects/zoul:MAKE_WITH_DTLS=1 \
|
lwm2m-ipso-objects/zoul:MAKE_WITH_DTLS=1 \
|
||||||
|
|
|
@ -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/simple-sensor-network/node/jn516x \
|
||||||
platform-specific/jn516x/tsch/tx-power-verification/node/jn516x \
|
platform-specific/jn516x/tsch/tx-power-verification/node/jn516x \
|
||||||
platform-specific/jn516x/tsch/uart1-test-node/jn516x \
|
platform-specific/jn516x/tsch/uart1-test-node/jn516x \
|
||||||
|
coap/coap-example-client/jn516x \
|
||||||
|
coap/coap-example-server/jn516x \
|
||||||
sensniff/jn516x \
|
sensniff/jn516x \
|
||||||
rpl-border-router/jn516x \
|
rpl-border-router/jn516x \
|
||||||
6tisch/simple-node/jn516x \
|
6tisch/simple-node/jn516x \
|
||||||
|
|
|
@ -12,8 +12,8 @@ declare -i TESTCOUNT=0
|
||||||
|
|
||||||
# Starting Contiki-NG native node
|
# Starting Contiki-NG native node
|
||||||
echo "Starting native CoAP server"
|
echo "Starting native CoAP server"
|
||||||
make -C $CONTIKI/examples/coap > make.log 2> make.err
|
make -C $CONTIKI/examples/coap/coap-example-server > make.log 2> make.err
|
||||||
sudo $CONTIKI/examples/coap/coap-example-server.native > node.log 2> node.err &
|
sudo $CONTIKI/examples/coap/coap-example-server/coap-example-server.native > node.log 2> node.err &
|
||||||
CPID=$!
|
CPID=$!
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ sleep 2
|
||||||
pgrep coap-example | sudo xargs kill -9
|
pgrep coap-example | sudo xargs kill -9
|
||||||
|
|
||||||
if [ $TESTCOUNT -eq $OKCOUNT ] ; then
|
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
|
else
|
||||||
echo "==== make.log ====" ; cat make.log;
|
echo "==== make.log ====" ; cat make.log;
|
||||||
echo "==== make.err ====" ; cat make.err;
|
echo "==== make.err ====" ; cat make.err;
|
||||||
|
@ -49,7 +49,7 @@ else
|
||||||
echo "==== node.err ====" ; cat node.err;
|
echo "==== node.err ====" ; cat node.err;
|
||||||
echo "==== $BASENAME.log ====" ; cat $BASENAME.log;
|
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
|
fi
|
||||||
|
|
||||||
rm -f make.log make.err node.log node.err coap.log
|
rm -f make.log make.err node.log node.err coap.log
|
||||||
|
|
Loading…
Reference in New Issue