Added Deluge and tests for it.
This commit is contained in:
parent
5b258ce104
commit
31bc37a043
8 changed files with 1109 additions and 0 deletions
98
tools/cooja/contiki_tests/sky_deluge.csc
Normal file
98
tools/cooja/contiki_tests/sky_deluge.csc
Normal file
|
@ -0,0 +1,98 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<simconf>
|
||||
<simulation>
|
||||
<title>Deluge</title>
|
||||
<delaytime>0</delaytime>
|
||||
<ticktime>1</ticktime>
|
||||
<randomseed>123456</randomseed>
|
||||
<motedelay>1000</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>../../../examples/sky/test-deluge.c</source>
|
||||
<command>make test-deluge.sky TARGET=sky</command>
|
||||
</motetype>
|
||||
<mote>
|
||||
se.sics.cooja.mspmote.SkyMote
|
||||
<motetype_identifier>sky1</motetype_identifier>
|
||||
<interface_config>
|
||||
se.sics.cooja.interfaces.Position
|
||||
<x>22.464792491653174</x>
|
||||
<y>11.3235347656354</y>
|
||||
<z>0.0</z>
|
||||
</interface_config>
|
||||
<interface_config>
|
||||
se.sics.cooja.mspmote.interfaces.MspMoteID
|
||||
<id>1</id>
|
||||
</interface_config>
|
||||
</mote>
|
||||
<mote>
|
||||
se.sics.cooja.mspmote.SkyMote
|
||||
<motetype_identifier>sky1</motetype_identifier>
|
||||
<interface_config>
|
||||
se.sics.cooja.interfaces.Position
|
||||
<x>16.167564578306468</x>
|
||||
<y>29.89745599030348</y>
|
||||
<z>0.0</z>
|
||||
</interface_config>
|
||||
<interface_config>
|
||||
se.sics.cooja.mspmote.interfaces.MspMoteID
|
||||
<id>3</id>
|
||||
</interface_config>
|
||||
</mote>
|
||||
<mote>
|
||||
se.sics.cooja.mspmote.SkyMote
|
||||
<motetype_identifier>sky1</motetype_identifier>
|
||||
<interface_config>
|
||||
se.sics.cooja.interfaces.Position
|
||||
<x>63.42409596590043</x>
|
||||
<y>12.470791515046386</y>
|
||||
<z>0.0</z>
|
||||
</interface_config>
|
||||
<interface_config>
|
||||
se.sics.cooja.mspmote.interfaces.MspMoteID
|
||||
<id>5</id>
|
||||
</interface_config>
|
||||
</mote>
|
||||
</simulation>
|
||||
<plugin>
|
||||
se.sics.cooja.plugins.SimControl
|
||||
<width>282</width>
|
||||
<z>2</z>
|
||||
<height>187</height>
|
||||
<location_x>0</location_x>
|
||||
<location_y>0</location_y>
|
||||
<minimized>false</minimized>
|
||||
</plugin>
|
||||
<plugin>
|
||||
se.sics.cooja.plugins.VisState
|
||||
<width>300</width>
|
||||
<z>3</z>
|
||||
<height>300</height>
|
||||
<location_x>390</location_x>
|
||||
<location_y>0</location_y>
|
||||
<minimized>false</minimized>
|
||||
</plugin>
|
||||
<plugin>
|
||||
se.sics.cooja.plugins.LogListener
|
||||
<plugin_config>
|
||||
<filter>version</filter>
|
||||
<history>256</history>
|
||||
</plugin_config>
|
||||
<width>690</width>
|
||||
<z>1</z>
|
||||
<height>328</height>
|
||||
<location_x>0</location_x>
|
||||
<location_y>319</location_y>
|
||||
<minimized>false</minimized>
|
||||
</plugin>
|
||||
</simconf>
|
||||
|
1
tools/cooja/contiki_tests/sky_deluge.info
Normal file
1
tools/cooja/contiki_tests/sky_deluge.info
Normal file
|
@ -0,0 +1 @@
|
|||
Three Sky nodes running a Deluge test. examples/sky/test-deluge.c
|
9
tools/cooja/contiki_tests/sky_deluge.js
Normal file
9
tools/cooja/contiki_tests/sky_deluge.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
TIMEOUT(100000, log.log("last msg: " + msg + "\n")); /* print last msg at timeout */
|
||||
|
||||
WAIT_UNTIL(id == 3 && msg.contains("version 1"));
|
||||
log.log("Node 3 got version 1\n");
|
||||
|
||||
WAIT_UNTIL(id == 5 && msg.contains("version 1"));
|
||||
log.log("Node 5 got version 1\n");
|
||||
|
||||
log.testOK(); /* Report test success and quit */
|
5
tools/cooja/contiki_tests/sky_deluge.log
Normal file
5
tools/cooja/contiki_tests/sky_deluge.log
Normal file
|
@ -0,0 +1,5 @@
|
|||
[sky_deluge.log]
|
||||
|
||||
Node 3 got version 1
|
||||
Node 5 got version 1
|
||||
TEST OK
|
Loading…
Add table
Add a link
Reference in a new issue