From 7b03d8097418e60c7a4ee01caa5166524ef3bece Mon Sep 17 00:00:00 2001 From: nifi Date: Thu, 9 Apr 2009 22:45:32 +0000 Subject: [PATCH] added test script and info for ipv6 routing multihop simulation --- .../cooja/contiki_tests/sky_ipv6_routing.csc | 20 +++++++++---------- .../cooja/contiki_tests/sky_ipv6_routing.info | 1 + tools/cooja/contiki_tests/sky_ipv6_routing.js | 8 ++++++++ 3 files changed, 19 insertions(+), 10 deletions(-) create mode 100644 tools/cooja/contiki_tests/sky_ipv6_routing.info create mode 100644 tools/cooja/contiki_tests/sky_ipv6_routing.js diff --git a/tools/cooja/contiki_tests/sky_ipv6_routing.csc b/tools/cooja/contiki_tests/sky_ipv6_routing.csc index 23848ee8d..1e24fcd31 100644 --- a/tools/cooja/contiki_tests/sky_ipv6_routing.csc +++ b/tools/cooja/contiki_tests/sky_ipv6_routing.csc @@ -60,7 +60,7 @@ se.sics.cooja.mspmote.interfaces.MspIPAddress - fe80.0000.0000.0000.0212.7501.0001.0101 + 0000.0000.0000.0000.0000.0000.0000.0000 se.sics.cooja.mspmote.interfaces.MspMoteID @@ -78,7 +78,7 @@ se.sics.cooja.mspmote.interfaces.MspIPAddress - fe80.0000.0000.0000.0212.7502.0002.0202 + 0000.0000.0000.0000.0000.0000.0000.0000 se.sics.cooja.mspmote.interfaces.MspMoteID @@ -96,7 +96,7 @@ se.sics.cooja.mspmote.interfaces.MspIPAddress - fe80.0000.0000.0000.0212.7503.0003.0303 + 0000.0000.0000.0000.0000.0000.0000.0000 se.sics.cooja.mspmote.interfaces.MspMoteID @@ -114,7 +114,7 @@ se.sics.cooja.mspmote.interfaces.MspIPAddress - fe80.0000.0000.0000.0212.7504.0004.0404 + 0000.0000.0000.0000.0000.0000.0000.0000 se.sics.cooja.mspmote.interfaces.MspMoteID @@ -132,7 +132,7 @@ se.sics.cooja.mspmote.interfaces.MspIPAddress - fe80.0000.0000.0000.0212.7505.0005.0505 + 0000.0000.0000.0000.0000.0000.0000.0000 se.sics.cooja.mspmote.interfaces.MspMoteID @@ -143,7 +143,7 @@ se.sics.cooja.plugins.SimControl 282 - 1 + 2 187 0 0 @@ -155,7 +155,7 @@ Radio environment (UDGM) 300 - 3 + 1 300 503 0 @@ -168,10 +168,10 @@ 256 1021 - 2 + 3 190 - -7 - 276 + -5 + 455 false diff --git a/tools/cooja/contiki_tests/sky_ipv6_routing.info b/tools/cooja/contiki_tests/sky_ipv6_routing.info new file mode 100644 index 000000000..d168f9dd0 --- /dev/null +++ b/tools/cooja/contiki_tests/sky_ipv6_routing.info @@ -0,0 +1 @@ +IPv6 multihop routing using Rime route discovery using 5 Sky nodes. Test success when client receives response from server. diff --git a/tools/cooja/contiki_tests/sky_ipv6_routing.js b/tools/cooja/contiki_tests/sky_ipv6_routing.js new file mode 100644 index 000000000..7e95567d8 --- /dev/null +++ b/tools/cooja/contiki_tests/sky_ipv6_routing.js @@ -0,0 +1,8 @@ +/* Make test automatically fail (timeout) after 100 simulated seconds */ +TIMEOUT(100000, log.log("last msg: " + msg + "\n")); /* print last msg at timeout */ + +log.log("waiting for server response at mote 2\n"); +WAIT_UNTIL(id == 2 && msg.startsWith("Response from the server")); + +log.log("ok, reporting success now\n"); +log.testOK(); /* Report test success and quit */