added contiki test: sky hello world
This commit is contained in:
parent
0651d0200f
commit
8a171ebc16
3 changed files with 48 additions and 0 deletions
7
tools/cooja/contiki_tests/sky_helloworld.js
Normal file
7
tools/cooja/contiki_tests/sky_helloworld.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
/* Script is called once for every node log output. */
|
||||
/* Input variables: Mote mote, int id, String msg. */
|
||||
|
||||
if (msg.startsWith('Hello, world')) {
|
||||
log.log('TEST OK\n'); /* Report test success */
|
||||
mote.getSimulation().getGUI().doQuit(false); /* Quit simulator (to end test run)*/
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue