updated threaded contiki test scripts

This commit is contained in:
fros4943 2009-01-08 17:11:06 +00:00
parent 17fa4513dc
commit 000fd29f4c
10 changed files with 178 additions and 274 deletions

View file

@ -1,7 +1,4 @@
/* Script is called once for every node log output. */
/* Input variables: Mote mote, int id, String msg. */
TIMEOUT(2000, log.log("last message: " + msg + "\n"));
if (msg.startsWith('Hello, world')) {
log.log('TEST OK\n'); /* Report test success */
mote.getSimulation().getGUI().doQuit(false); /* Quit simulator (to end test run)*/
}
WAIT_UNTIL(msg.equals('Hello, world'));
log.testOK();