contiki/tools/cooja/contiki_tests/sky_helloworld.js

8 lines
285 B
JavaScript
Raw Normal View History

2008-09-18 10:27:57 +00:00
/* 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)*/
}