rime rucb and mspsim test

This commit is contained in:
fros4943 2008-04-22 14:29:05 +00:00
parent 59a0e26b90
commit ebc2389130
3 changed files with 71 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#!/usr/bin/env bash
echo "Running tests"
rm *.log
for myfile in ./*.csc
do
TEST=`basename $myfile .csc`
echo Starting test: $TEST
java -jar ../dist/cooja.jar -nogui -test=$TEST
done

View File

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<simconf>
<simulation>
<title>My simulation</title>
<delaytime>0</delaytime>
<ticktime>1</ticktime>
<randomseed>123456</randomseed>
<nrticklists>1</nrticklists>
<motedelay>0</motedelay>
<radiomedium>
se.sics.cooja.radiomediums.UDGM
<transmitting_range>100.0</transmitting_range>
<interference_range>100.0</interference_range>
<success_ratio_tx>0.99</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/rime/example-rucb.c</source>
<command>make example-rucb.firmware TARGET=sky</command>
</motetype>
<mote>
se.sics.cooja.mspmote.SkyMote
<motetype_identifier>sky1</motetype_identifier>
<interface_config>
se.sics.cooja.interfaces.Position
<x>8.7830079223847</x>
<y>95.48302342542931</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>27.845954712384994</x>
<y>89.7816915051461</y>
<z>0.0</z>
</interface_config>
<interface_config>
se.sics.cooja.mspmote.interfaces.MspMoteID
<id>2</id>
</interface_config>
</mote>
</simulation>
</simconf>

View File

@ -0,0 +1,4 @@
if (msg.startsWith("Completion time ")) {
log.log("TEST OK\n");
mote.getSimulation().getGUI().doQuit(false);
}