added the Coffee test to Cooja.

This commit is contained in:
nvt-se 2008-09-18 10:36:48 +00:00
parent 3c5ed37751
commit 0a03c4d237
3 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<simconf>
<simulation>
<title>test</title>
<delaytime>0</delaytime>
<ticktime>1</ticktime>
<randomseed>123456</randomseed>
<nrticklists>1</nrticklists>
<motedelay>0</motedelay>
<radiomedium>
se.sics.cooja.radiomediums.UDGM
<transmitting_range>50.0</transmitting_range>
<interference_range>100.0</interference_range>
<success_ratio_tx>1.0</success_ratio_tx>
<success_ratio_rx>1.0</success_ratio_rx>
</radiomedium>
<motetype>
se.sics.cooja.mspmote.SkyMoteType
<identifier>sky1</identifier>
<description>Sky Mote Type #1</description>
<source>/home/nvt/contiki-2.x-clean/examples/sky/test-coffee.c</source>
<command>make test-coffee.firmware TARGET=sky</command>
</motetype>
<mote>
se.sics.cooja.mspmote.SkyMote
<motetype_identifier>sky1</motetype_identifier>
<interface_config>
se.sics.cooja.interfaces.Position
<x>97.11078411573273</x>
<y>56.790978919276014</y>
<z>0.0</z>
</interface_config>
<interface_config>
se.sics.cooja.mspmote.interfaces.MspMoteID
<id>1</id>
</interface_config>
</mote>
</simulation>
</simconf>

View file

@ -0,0 +1 @@
Single Sky node. Coffee consistency test.

View file

@ -0,0 +1,10 @@
/* Script is called once for every node log output. */
/* Input variables: Mote mote, int id, String msg. */
if (msg.startsWith('Coffee consistency test: 0')) {
log.log('TEST OK');
mote.getSimulation().getGUI().doQuit(false); /* Quit simulator (to end test run)*/
} else if (msg.startsWith('Coffee consistency test')) {
log.log('TEST FAILED');
mote.getSimulation().getGUI().doQuit(false); /* Quit simulator (to end test run)*/
}