diff --git a/tools/cooja/contiki_tests/RUN_ALL b/tools/cooja/contiki_tests/RUN_ALL new file mode 100644 index 000000000..dbfbe3d85 --- /dev/null +++ b/tools/cooja/contiki_tests/RUN_ALL @@ -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 \ No newline at end of file diff --git a/tools/cooja/contiki_tests/rucb.csc b/tools/cooja/contiki_tests/rucb.csc new file mode 100644 index 000000000..33efa229b --- /dev/null +++ b/tools/cooja/contiki_tests/rucb.csc @@ -0,0 +1,54 @@ + + + + My simulation + 0 + 1 + 123456 + 1 + 0 + + se.sics.cooja.radiomediums.UDGM + 100.0 + 100.0 + 0.99 + 1.0 + + + se.sics.cooja.mspmote.SkyMoteType + sky1 + Sky Mote Type #1 + ../../../examples/rime/example-rucb.c + make example-rucb.firmware TARGET=sky + + + se.sics.cooja.mspmote.SkyMote + sky1 + + se.sics.cooja.interfaces.Position + 8.7830079223847 + 95.48302342542931 + 0.0 + + + se.sics.cooja.mspmote.interfaces.MspMoteID + 1 + + + + se.sics.cooja.mspmote.SkyMote + sky1 + + se.sics.cooja.interfaces.Position + 27.845954712384994 + 89.7816915051461 + 0.0 + + + se.sics.cooja.mspmote.interfaces.MspMoteID + 2 + + + + + diff --git a/tools/cooja/contiki_tests/rucb.js b/tools/cooja/contiki_tests/rucb.js new file mode 100644 index 000000000..a5e4d0ce5 --- /dev/null +++ b/tools/cooja/contiki_tests/rucb.js @@ -0,0 +1,4 @@ +if (msg.startsWith("Completion time ")) { + log.log("TEST OK\n"); + mote.getSimulation().getGUI().doQuit(false); +}