From 1246174525b1c0b2ce28b7e8bb99ba4e96f25b26 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Wed, 3 Feb 2010 14:14:57 +0000 Subject: [PATCH] compile with nullmac + require all nodes to receive at least 3 messages before test ok --- tools/cooja/contiki_tests/crosslevel.csc | 32 ++++++++++++------------ 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/tools/cooja/contiki_tests/crosslevel.csc b/tools/cooja/contiki_tests/crosslevel.csc index df9c1e10b..4c3bd397f 100644 --- a/tools/cooja/contiki_tests/crosslevel.csc +++ b/tools/cooja/contiki_tests/crosslevel.csc @@ -23,7 +23,7 @@ sky1 Sky Mote Type #1 [CONTIKI_DIR]/examples/rime/example-abc.c - make example-abc.sky TARGET=sky + make example-abc.sky TARGET=sky DEFINES=MAC_DRIVER=nullmac_driver [CONTIKI_DIR]/examples/rime/example-abc.sky se.sics.cooja.interfaces.Position se.sics.cooja.interfaces.IPAddress @@ -44,7 +44,7 @@ esb1 ESB Mote Type #1 [CONTIKI_DIR]/examples/rime/example-abc.c - make example-abc.esb TARGET=esb + make example-abc.esb TARGET=esb DEFINES=MAC_DRIVER=nullmac_driver [CONTIKI_DIR]/examples/rime/example-abc.esb se.sics.cooja.interfaces.Position se.sics.cooja.interfaces.IPAddress @@ -59,7 +59,7 @@ se.sics.cooja.contikimote.ContikiMoteType - mtype48 + mtype686 Contiki Mote Type #1 [CONTIKI_DIR]/examples/rime/example-abc.c make example-abc.cooja TARGET=cooja @@ -93,7 +93,7 @@ se.sics.cooja.contikimote.interfaces.ContikiMoteID 1 - mtype48 + mtype686 se.sics.cooja.contikimote.ContikiMote @@ -107,7 +107,7 @@ se.sics.cooja.contikimote.interfaces.ContikiMoteID 2 - mtype48 + mtype686 se.sics.cooja.mspmote.SkyMote @@ -181,7 +181,7 @@ se.sics.cooja.contikimote.interfaces.ContikiMoteID 7 - mtype48 + mtype686 se.sics.cooja.mspmote.SkyMote @@ -210,7 +210,7 @@ se.sics.cooja.contikimote.interfaces.ContikiMoteID 9 - mtype48 + mtype686 se.sics.cooja.mspmote.ESBMote @@ -261,7 +261,7 @@ se.sics.cooja.plugins.SimControl 265 - 5 + 3 200 0 1 @@ -273,7 +273,7 @@ 460 - 4 + 2 178 400 568 @@ -290,7 +290,7 @@ 0.6868927097814259 0.0 0.0 0.6868927097814259 19.429407529520386 57.09333478544578 401 - 1 + 4 177 0 569 @@ -299,7 +299,7 @@ se.sics.cooja.plugins.RadioLogger 265 - 2 + 5 371 0 199 @@ -334,11 +334,11 @@ while (true) { log.log("\n"); } - /* Did all nodes (1-10) receive at least one message? */ + /* Did all nodes (1-12) receive at least three messages? */ for (i = 1; i <= 12; i++) { - if (nr_packets[i] < 1) break; + if (nr_packets[i] < 3) break; } - if (i == 12) { + if (i == 13) { log.testOK(); } @@ -347,7 +347,7 @@ while (true) { true 596 - 3 + 0 569 264 0 @@ -374,7 +374,7 @@ while (true) { 12 862 - 0 + 1 219 -1 746