diff --git a/tools/cooja/contiki_tests/test001.csc b/tools/cooja/contiki_tests/test001.csc new file mode 100644 index 000000000..7db7cdb1c --- /dev/null +++ b/tools/cooja/contiki_tests/test001.csc @@ -0,0 +1,85 @@ + + + + My simulation + 5 + 1 + 123456 + 1 + 0 + + se.sics.cooja.radiomediums.UDGM + 100.0 + 100.0 + 1.0 + 1.0 + + + se.sics.cooja.contikimote.ContikiMoteType + mtype1 + Contiki Mote #1 + ../../.. + ../../../platform/cooja + ..\apps\mrm + ..\apps\mspsim + ..\..\..\platform\cooja\testapps + hello-world.c + hello_world_process + button_sensor + pir_sensor + radio_sensor + vib_sensor + se.sics.cooja.interfaces.Position + se.sics.cooja.interfaces.Battery + se.sics.cooja.contikimote.interfaces.ContikiVib + se.sics.cooja.contikimote.interfaces.ContikiMoteID + se.sics.cooja.contikimote.interfaces.ContikiRS232 + se.sics.cooja.contikimote.interfaces.ContikiBeeper + se.sics.cooja.contikimote.interfaces.ContikiIPAddress + se.sics.cooja.contikimote.interfaces.ContikiRadio + se.sics.cooja.contikimote.interfaces.ContikiButton + se.sics.cooja.contikimote.interfaces.ContikiPIR + se.sics.cooja.contikimote.interfaces.ContikiClock + se.sics.cooja.contikimote.interfaces.ContikiLED + se.sics.cooja.contikimote.interfaces.ContikiLog + se.sics.cooja.contikimote.interfaces.ContikiCFS + cfs_interface + beep_interface + button_interface + radio_interface + ip_interface + leds_interface + moteid_interface + pir_interface + rs232_interface + vib_interface + clock_interface + simlog_interface + false + Rime + + + se.sics.cooja.contikimote.ContikiMote + mtype1 + + se.sics.cooja.interfaces.Position + 0.0 + 0.0 + 0.0 + + + se.sics.cooja.contikimote.interfaces.ContikiMoteID + 1 + + + se.sics.cooja.contikimote.interfaces.ContikiIPAddress + 10.10.10.10 + + + se.sics.cooja.interfaces.Battery + false + + + + + diff --git a/tools/cooja/contiki_tests/test001.js b/tools/cooja/contiki_tests/test001.js new file mode 100644 index 000000000..198fbd49e --- /dev/null +++ b/tools/cooja/contiki_tests/test001.js @@ -0,0 +1,4 @@ +if (msg.startsWith("Hello, world")) { + log.log("TEST OK\n"); + mote.getSimulation().getGUI().doQuit(false); +} diff --git a/tools/cooja/contiki_tests/test002.csc b/tools/cooja/contiki_tests/test002.csc new file mode 100644 index 000000000..7db7cdb1c --- /dev/null +++ b/tools/cooja/contiki_tests/test002.csc @@ -0,0 +1,85 @@ + + + + My simulation + 5 + 1 + 123456 + 1 + 0 + + se.sics.cooja.radiomediums.UDGM + 100.0 + 100.0 + 1.0 + 1.0 + + + se.sics.cooja.contikimote.ContikiMoteType + mtype1 + Contiki Mote #1 + ../../.. + ../../../platform/cooja + ..\apps\mrm + ..\apps\mspsim + ..\..\..\platform\cooja\testapps + hello-world.c + hello_world_process + button_sensor + pir_sensor + radio_sensor + vib_sensor + se.sics.cooja.interfaces.Position + se.sics.cooja.interfaces.Battery + se.sics.cooja.contikimote.interfaces.ContikiVib + se.sics.cooja.contikimote.interfaces.ContikiMoteID + se.sics.cooja.contikimote.interfaces.ContikiRS232 + se.sics.cooja.contikimote.interfaces.ContikiBeeper + se.sics.cooja.contikimote.interfaces.ContikiIPAddress + se.sics.cooja.contikimote.interfaces.ContikiRadio + se.sics.cooja.contikimote.interfaces.ContikiButton + se.sics.cooja.contikimote.interfaces.ContikiPIR + se.sics.cooja.contikimote.interfaces.ContikiClock + se.sics.cooja.contikimote.interfaces.ContikiLED + se.sics.cooja.contikimote.interfaces.ContikiLog + se.sics.cooja.contikimote.interfaces.ContikiCFS + cfs_interface + beep_interface + button_interface + radio_interface + ip_interface + leds_interface + moteid_interface + pir_interface + rs232_interface + vib_interface + clock_interface + simlog_interface + false + Rime + + + se.sics.cooja.contikimote.ContikiMote + mtype1 + + se.sics.cooja.interfaces.Position + 0.0 + 0.0 + 0.0 + + + se.sics.cooja.contikimote.interfaces.ContikiMoteID + 1 + + + se.sics.cooja.contikimote.interfaces.ContikiIPAddress + 10.10.10.10 + + + se.sics.cooja.interfaces.Battery + false + + + + + diff --git a/tools/cooja/contiki_tests/test002.js b/tools/cooja/contiki_tests/test002.js new file mode 100644 index 000000000..8ec729037 --- /dev/null +++ b/tools/cooja/contiki_tests/test002.js @@ -0,0 +1,4 @@ +if (msg.startsWith("Bye, world")) { + log.log("TEST OK\n"); + mote.getSimulation().getGUI().doQuit(false); +}