Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added regression tests that test IPv6 fragmentation
- Loading branch information
1 parent
f5307fc
commit b6770b9
Showing
22 changed files
with
2,258 additions
and
0 deletions.
There are no files selected for viewing
166 changes: 166 additions & 0 deletions
166
regression-tests/11-ipv6/04-exp5438-udp-fragmentation-contikimac.csc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<simconf> | ||
<project EXPORT="discard">[APPS_DIR]/mrm</project> | ||
<project EXPORT="discard">[APPS_DIR]/mspsim</project> | ||
<project EXPORT="discard">[APPS_DIR]/avrora</project> | ||
<project EXPORT="discard">[APPS_DIR]/serial_socket</project> | ||
<project EXPORT="discard">[APPS_DIR]/collect-view</project> | ||
<project EXPORT="discard">[APPS_DIR]/powertracker</project> | ||
<simulation> | ||
<title>My simulation</title> | ||
<randomseed>123456</randomseed> | ||
<motedelay_us>1000000</motedelay_us> | ||
<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> | ||
<events> | ||
<logoutput>40000</logoutput> | ||
</events> | ||
<motetype> | ||
se.sics.cooja.mspmote.Exp5438MoteType | ||
<identifier>exp5438#1</identifier> | ||
<description>Sender</description> | ||
<source EXPORT="discard">[CONTIKI_DIR]/regression-tests/11-ipv6/code/sender/udp-sender.c</source> | ||
<commands EXPORT="discard">make clean TARGET=exp5438 | ||
make udp-sender.exp5438 DEFINES=NETSTACK_CONF_RDC=contikimac_driver TARGET=exp5438</commands> | ||
<firmware EXPORT="copy">[CONTIKI_DIR]/regression-tests/11-ipv6/code/sender/udp-sender.exp5438</firmware> | ||
<moteinterface>se.sics.cooja.interfaces.Position</moteinterface> | ||
<moteinterface>se.sics.cooja.interfaces.RimeAddress</moteinterface> | ||
<moteinterface>se.sics.cooja.interfaces.IPAddress</moteinterface> | ||
<moteinterface>se.sics.cooja.interfaces.Mote2MoteRelations</moteinterface> | ||
<moteinterface>se.sics.cooja.interfaces.MoteAttributes</moteinterface> | ||
<moteinterface>se.sics.cooja.mspmote.interfaces.MspClock</moteinterface> | ||
<moteinterface>se.sics.cooja.mspmote.interfaces.MspMoteID</moteinterface> | ||
<moteinterface>se.sics.cooja.mspmote.interfaces.Msp802154Radio</moteinterface> | ||
<moteinterface>se.sics.cooja.mspmote.interfaces.UsciA1Serial</moteinterface> | ||
<moteinterface>se.sics.cooja.mspmote.interfaces.Exp5438LED</moteinterface> | ||
<moteinterface>se.sics.cooja.mspmote.interfaces.MspDebugOutput</moteinterface> | ||
</motetype> | ||
<motetype> | ||
se.sics.cooja.mspmote.Exp5438MoteType | ||
<identifier>exp5438#2</identifier> | ||
<description>Receiver</description> | ||
<source EXPORT="discard">[CONTIKI_DIR]/regression-tests/11-ipv6/code/receiver/udp-receiver.c</source> | ||
<commands EXPORT="discard">make clean TARGET=exp5438 | ||
make udp-receiver.exp5438 DEFINES=NETSTACK_CONF_RDC=contikimac_driver TARGET=exp5438</commands> | ||
<firmware EXPORT="copy">[CONTIKI_DIR]/regression-tests/11-ipv6/code/receiver/udp-receiver.exp5438</firmware> | ||
<moteinterface>se.sics.cooja.interfaces.Position</moteinterface> | ||
<moteinterface>se.sics.cooja.interfaces.RimeAddress</moteinterface> | ||
<moteinterface>se.sics.cooja.interfaces.IPAddress</moteinterface> | ||
<moteinterface>se.sics.cooja.interfaces.Mote2MoteRelations</moteinterface> | ||
<moteinterface>se.sics.cooja.interfaces.MoteAttributes</moteinterface> | ||
<moteinterface>se.sics.cooja.mspmote.interfaces.MspClock</moteinterface> | ||
<moteinterface>se.sics.cooja.mspmote.interfaces.MspMoteID</moteinterface> | ||
<moteinterface>se.sics.cooja.mspmote.interfaces.Msp802154Radio</moteinterface> | ||
<moteinterface>se.sics.cooja.mspmote.interfaces.UsciA1Serial</moteinterface> | ||
<moteinterface>se.sics.cooja.mspmote.interfaces.Exp5438LED</moteinterface> | ||
<moteinterface>se.sics.cooja.mspmote.interfaces.MspDebugOutput</moteinterface> | ||
</motetype> | ||
<mote> | ||
<breakpoints /> | ||
<interface_config> | ||
se.sics.cooja.interfaces.Position | ||
<x>40.305234290431166</x> | ||
<y>41.884881003965305</y> | ||
<z>0.0</z> | ||
</interface_config> | ||
<interface_config> | ||
se.sics.cooja.mspmote.interfaces.MspMoteID | ||
<id>1</id> | ||
</interface_config> | ||
<motetype_identifier>exp5438#1</motetype_identifier> | ||
</mote> | ||
<mote> | ||
<breakpoints /> | ||
<interface_config> | ||
se.sics.cooja.interfaces.Position | ||
<x>65.38552901873047</x> | ||
<y>40.93246474846026</y> | ||
<z>0.0</z> | ||
</interface_config> | ||
<interface_config> | ||
se.sics.cooja.mspmote.interfaces.MspMoteID | ||
<id>2</id> | ||
</interface_config> | ||
<motetype_identifier>exp5438#2</motetype_identifier> | ||
</mote> | ||
</simulation> | ||
<plugin> | ||
se.sics.cooja.plugins.SimControl | ||
<width>280</width> | ||
<z>0</z> | ||
<height>160</height> | ||
<location_x>400</location_x> | ||
<location_y>0</location_y> | ||
</plugin> | ||
<plugin> | ||
se.sics.cooja.plugins.Visualizer | ||
<plugin_config> | ||
<skin>se.sics.cooja.plugins.skins.IDVisualizerSkin</skin> | ||
<skin>se.sics.cooja.plugins.skins.UDGMVisualizerSkin</skin> | ||
<viewport>6.299766478490424 0.0 0.0 6.299766478490424 -160.913563890561 -119.86496930434095</viewport> | ||
</plugin_config> | ||
<width>400</width> | ||
<z>2</z> | ||
<height>400</height> | ||
<location_x>1</location_x> | ||
<location_y>1</location_y> | ||
</plugin> | ||
<plugin> | ||
se.sics.cooja.plugins.LogListener | ||
<plugin_config> | ||
<filter /> | ||
<formatted_time /> | ||
</plugin_config> | ||
<width>1200</width> | ||
<z>5</z> | ||
<height>240</height> | ||
<location_x>400</location_x> | ||
<location_y>160</location_y> | ||
</plugin> | ||
<plugin> | ||
se.sics.cooja.plugins.TimeLine | ||
<plugin_config> | ||
<mote>0</mote> | ||
<mote>1</mote> | ||
<showRadioRXTX /> | ||
<showRadioHW /> | ||
<showLEDs /> | ||
<zoomfactor>500.0</zoomfactor> | ||
</plugin_config> | ||
<width>1600</width> | ||
<z>4</z> | ||
<height>166</height> | ||
<location_x>0</location_x> | ||
<location_y>539</location_y> | ||
</plugin> | ||
<plugin> | ||
se.sics.cooja.plugins.Notes | ||
<plugin_config> | ||
<notes>Enter notes here</notes> | ||
<decorations>true</decorations> | ||
</plugin_config> | ||
<width>920</width> | ||
<z>3</z> | ||
<height>160</height> | ||
<location_x>680</location_x> | ||
<location_y>0</location_y> | ||
</plugin> | ||
<plugin> | ||
se.sics.cooja.plugins.ScriptRunner | ||
<plugin_config> | ||
<scriptfile>[CONFIG_DIR]/fragmentation-should-receive-all.js</scriptfile> | ||
<active>true</active> | ||
</plugin_config> | ||
<width>618</width> | ||
<z>1</z> | ||
<height>399</height> | ||
<location_x>645</location_x> | ||
<location_y>128</location_y> | ||
</plugin> | ||
</simconf> | ||
|
166 changes: 166 additions & 0 deletions
166
regression-tests/11-ipv6/05-exp5438-udp-fragmentation-nullrdc.csc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<simconf> | ||
<project EXPORT="discard">[APPS_DIR]/mrm</project> | ||
<project EXPORT="discard">[APPS_DIR]/mspsim</project> | ||
<project EXPORT="discard">[APPS_DIR]/avrora</project> | ||
<project EXPORT="discard">[APPS_DIR]/serial_socket</project> | ||
<project EXPORT="discard">[APPS_DIR]/collect-view</project> | ||
<project EXPORT="discard">[APPS_DIR]/powertracker</project> | ||
<simulation> | ||
<title>My simulation</title> | ||
<randomseed>123456</randomseed> | ||
<motedelay_us>1000000</motedelay_us> | ||
<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> | ||
<events> | ||
<logoutput>40000</logoutput> | ||
</events> | ||
<motetype> | ||
se.sics.cooja.mspmote.Exp5438MoteType | ||
<identifier>exp5438#1</identifier> | ||
<description>Sender</description> | ||
<source EXPORT="discard">[CONTIKI_DIR]/regression-tests/11-ipv6/code/sender/udp-sender.c</source> | ||
<commands EXPORT="discard">make clean TARGET=exp5438 | ||
make udp-sender.exp5438 DEFINES=NETSTACK_CONF_RDC=nullrdc_driver TARGET=exp5438</commands> | ||
<firmware EXPORT="copy">[CONTIKI_DIR]/regression-tests/11-ipv6/code/sender/udp-sender.exp5438</firmware> | ||
<moteinterface>se.sics.cooja.interfaces.Position</moteinterface> | ||
<moteinterface>se.sics.cooja.interfaces.RimeAddress</moteinterface> | ||
<moteinterface>se.sics.cooja.interfaces.IPAddress</moteinterface> | ||
<moteinterface>se.sics.cooja.interfaces.Mote2MoteRelations</moteinterface> | ||
<moteinterface>se.sics.cooja.interfaces.MoteAttributes</moteinterface> | ||
<moteinterface>se.sics.cooja.mspmote.interfaces.MspClock</moteinterface> | ||
<moteinterface>se.sics.cooja.mspmote.interfaces.MspMoteID</moteinterface> | ||
<moteinterface>se.sics.cooja.mspmote.interfaces.Msp802154Radio</moteinterface> | ||
<moteinterface>se.sics.cooja.mspmote.interfaces.UsciA1Serial</moteinterface> | ||
<moteinterface>se.sics.cooja.mspmote.interfaces.Exp5438LED</moteinterface> | ||
<moteinterface>se.sics.cooja.mspmote.interfaces.MspDebugOutput</moteinterface> | ||
</motetype> | ||
<motetype> | ||
se.sics.cooja.mspmote.Exp5438MoteType | ||
<identifier>exp5438#2</identifier> | ||
<description>Receiver</description> | ||
<source EXPORT="discard">[CONTIKI_DIR]/regression-tests/11-ipv6/code/receiver/udp-receiver.c</source> | ||
<commands EXPORT="discard">make clean TARGET=exp5438 | ||
make udp-receiver.exp5438 DEFINES=NETSTACK_CONF_RDC=nullrdc_driver TARGET=exp5438</commands> | ||
<firmware EXPORT="copy">[CONTIKI_DIR]/regression-tests/11-ipv6/code/receiver/udp-receiver.exp5438</firmware> | ||
<moteinterface>se.sics.cooja.interfaces.Position</moteinterface> | ||
<moteinterface>se.sics.cooja.interfaces.RimeAddress</moteinterface> | ||
<moteinterface>se.sics.cooja.interfaces.IPAddress</moteinterface> | ||
<moteinterface>se.sics.cooja.interfaces.Mote2MoteRelations</moteinterface> | ||
<moteinterface>se.sics.cooja.interfaces.MoteAttributes</moteinterface> | ||
<moteinterface>se.sics.cooja.mspmote.interfaces.MspClock</moteinterface> | ||
<moteinterface>se.sics.cooja.mspmote.interfaces.MspMoteID</moteinterface> | ||
<moteinterface>se.sics.cooja.mspmote.interfaces.Msp802154Radio</moteinterface> | ||
<moteinterface>se.sics.cooja.mspmote.interfaces.UsciA1Serial</moteinterface> | ||
<moteinterface>se.sics.cooja.mspmote.interfaces.Exp5438LED</moteinterface> | ||
<moteinterface>se.sics.cooja.mspmote.interfaces.MspDebugOutput</moteinterface> | ||
</motetype> | ||
<mote> | ||
<breakpoints /> | ||
<interface_config> | ||
se.sics.cooja.interfaces.Position | ||
<x>40.305234290431166</x> | ||
<y>41.884881003965305</y> | ||
<z>0.0</z> | ||
</interface_config> | ||
<interface_config> | ||
se.sics.cooja.mspmote.interfaces.MspMoteID | ||
<id>1</id> | ||
</interface_config> | ||
<motetype_identifier>exp5438#1</motetype_identifier> | ||
</mote> | ||
<mote> | ||
<breakpoints /> | ||
<interface_config> | ||
se.sics.cooja.interfaces.Position | ||
<x>65.38552901873047</x> | ||
<y>40.93246474846026</y> | ||
<z>0.0</z> | ||
</interface_config> | ||
<interface_config> | ||
se.sics.cooja.mspmote.interfaces.MspMoteID | ||
<id>2</id> | ||
</interface_config> | ||
<motetype_identifier>exp5438#2</motetype_identifier> | ||
</mote> | ||
</simulation> | ||
<plugin> | ||
se.sics.cooja.plugins.SimControl | ||
<width>280</width> | ||
<z>0</z> | ||
<height>160</height> | ||
<location_x>400</location_x> | ||
<location_y>0</location_y> | ||
</plugin> | ||
<plugin> | ||
se.sics.cooja.plugins.Visualizer | ||
<plugin_config> | ||
<skin>se.sics.cooja.plugins.skins.IDVisualizerSkin</skin> | ||
<skin>se.sics.cooja.plugins.skins.UDGMVisualizerSkin</skin> | ||
<viewport>6.299766478490424 0.0 0.0 6.299766478490424 -160.913563890561 -119.86496930434095</viewport> | ||
</plugin_config> | ||
<width>400</width> | ||
<z>2</z> | ||
<height>400</height> | ||
<location_x>1</location_x> | ||
<location_y>1</location_y> | ||
</plugin> | ||
<plugin> | ||
se.sics.cooja.plugins.LogListener | ||
<plugin_config> | ||
<filter /> | ||
<formatted_time /> | ||
</plugin_config> | ||
<width>1200</width> | ||
<z>5</z> | ||
<height>240</height> | ||
<location_x>400</location_x> | ||
<location_y>160</location_y> | ||
</plugin> | ||
<plugin> | ||
se.sics.cooja.plugins.TimeLine | ||
<plugin_config> | ||
<mote>0</mote> | ||
<mote>1</mote> | ||
<showRadioRXTX /> | ||
<showRadioHW /> | ||
<showLEDs /> | ||
<zoomfactor>500.0</zoomfactor> | ||
</plugin_config> | ||
<width>1600</width> | ||
<z>4</z> | ||
<height>166</height> | ||
<location_x>0</location_x> | ||
<location_y>539</location_y> | ||
</plugin> | ||
<plugin> | ||
se.sics.cooja.plugins.Notes | ||
<plugin_config> | ||
<notes>Enter notes here</notes> | ||
<decorations>true</decorations> | ||
</plugin_config> | ||
<width>920</width> | ||
<z>3</z> | ||
<height>160</height> | ||
<location_x>680</location_x> | ||
<location_y>0</location_y> | ||
</plugin> | ||
<plugin> | ||
se.sics.cooja.plugins.ScriptRunner | ||
<plugin_config> | ||
<scriptfile>[CONFIG_DIR]/fragmentation-should-receive-all.js</scriptfile> | ||
<active>true</active> | ||
</plugin_config> | ||
<width>618</width> | ||
<z>1</z> | ||
<height>399</height> | ||
<location_x>645</location_x> | ||
<location_y>128</location_y> | ||
</plugin> | ||
</simconf> | ||
|
Oops, something went wrong.