From 8a171ebc16516ebba91677038e22e9a5888655e9 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Thu, 18 Sep 2008 10:27:57 +0000 Subject: [PATCH] added contiki test: sky hello world --- tools/cooja/contiki_tests/sky_helloworld.csc | 40 +++++++++++++++++++ tools/cooja/contiki_tests/sky_helloworld.info | 1 + tools/cooja/contiki_tests/sky_helloworld.js | 7 ++++ 3 files changed, 48 insertions(+) create mode 100644 tools/cooja/contiki_tests/sky_helloworld.csc create mode 100644 tools/cooja/contiki_tests/sky_helloworld.info create mode 100644 tools/cooja/contiki_tests/sky_helloworld.js diff --git a/tools/cooja/contiki_tests/sky_helloworld.csc b/tools/cooja/contiki_tests/sky_helloworld.csc new file mode 100644 index 000000000..f000f0d17 --- /dev/null +++ b/tools/cooja/contiki_tests/sky_helloworld.csc @@ -0,0 +1,40 @@ + + + + Hello World (Sky) + 0 + 1 + 123456 + 1 + 0 + + se.sics.cooja.radiomediums.UDGM + 50.0 + 100.0 + 1.0 + 1.0 + + + se.sics.cooja.mspmote.SkyMoteType + sky1 + Sky Mote Type #1 + C:\Documents and Settings\fros\My Documents\Eclipse Workspace\contiki-2.x_hybrid_dbg\examples\hello-world\hello-world.c + make hello-world.firmware TARGET=sky + + + se.sics.cooja.mspmote.SkyMote + sky1 + + se.sics.cooja.interfaces.Position + 64.11203103628397 + 93.06735634828134 + 0.0 + + + se.sics.cooja.mspmote.interfaces.MspMoteID + 1 + + + + + diff --git a/tools/cooja/contiki_tests/sky_helloworld.info b/tools/cooja/contiki_tests/sky_helloworld.info new file mode 100644 index 000000000..8ddfb275d --- /dev/null +++ b/tools/cooja/contiki_tests/sky_helloworld.info @@ -0,0 +1 @@ +Single sky mote running Hello world application \ No newline at end of file diff --git a/tools/cooja/contiki_tests/sky_helloworld.js b/tools/cooja/contiki_tests/sky_helloworld.js new file mode 100644 index 000000000..ef3a62343 --- /dev/null +++ b/tools/cooja/contiki_tests/sky_helloworld.js @@ -0,0 +1,7 @@ +/* Script is called once for every node log output. */ +/* Input variables: Mote mote, int id, String msg. */ + +if (msg.startsWith('Hello, world')) { + log.log('TEST OK\n'); /* Report test success */ + mote.getSimulation().getGUI().doQuit(false); /* Quit simulator (to end test run)*/ +}