diff --git a/tools/cooja/contiki_tests/cooja_helloworld.csc b/tools/cooja/contiki_tests/cooja_helloworld.csc index cda47c2d4..76e11e0da 100644 --- a/tools/cooja/contiki_tests/cooja_helloworld.csc +++ b/tools/cooja/contiki_tests/cooja_helloworld.csc @@ -5,7 +5,6 @@ 0 1 123456 - 1 0 se.sics.cooja.radiomediums.UDGM @@ -16,7 +15,7 @@ se.sics.cooja.contikimote.ContikiMoteType - mtype1 + mtype2 Contiki Mote #1 ../../.. ../../../platform/cooja @@ -62,13 +61,17 @@ se.sics.cooja.contikimote.ContikiMote - mtype1 + mtype2 se.sics.cooja.interfaces.Position 91.48300003917207 83.5491879028037 0.0 + + se.sics.cooja.interfaces.Battery + false + se.sics.cooja.contikimote.interfaces.ContikiMoteID 1 @@ -77,10 +80,6 @@ se.sics.cooja.contikimote.interfaces.ContikiIPAddress 10.10.15.14 - - se.sics.cooja.interfaces.Battery - false - diff --git a/tools/cooja/contiki_tests/cooja_helloworld.info b/tools/cooja/contiki_tests/cooja_helloworld.info index 0049cc33e..655b74b35 100644 --- a/tools/cooja/contiki_tests/cooja_helloworld.info +++ b/tools/cooja/contiki_tests/cooja_helloworld.info @@ -1 +1 @@ -Cooja testapp: Hello world (single node, OS-level) +Hello world test (single node, OS-level) diff --git a/tools/cooja/contiki_tests/cooja_helloworld.js b/tools/cooja/contiki_tests/cooja_helloworld.js index 0016c065a..fc357937b 100644 --- a/tools/cooja/contiki_tests/cooja_helloworld.js +++ b/tools/cooja/contiki_tests/cooja_helloworld.js @@ -1,13 +1,5 @@ -/* Script is called once for every node log output. */ -/* Input variables: Mote mote, int id, String msg. */ - -log.log('MOTE=' + mote + '\n'); -log.log('ID=' + id + '\n'); -log.log('TIME=' + mote.getSimulation().getSimulationTime() + '\n'); -log.log('MSG=' + msg + '\n'); - if (msg.startsWith('Hello, world')) { - log.log('TEST OK\n'); /* Report test success */ - /* To increase test run speed, close the simulator when done */ - mote.getSimulation().getGUI().doQuit(false); /* Quit simulator (to end test run)*/ + log.testOK(); +} else { + log.testFailed(); }