CI: cleanup 07-simulation-base

This commit is contained in:
Simon Duquennoy 2017-11-18 12:04:07 -08:00
parent 0422b10f26
commit f972c1b48e
4 changed files with 1 additions and 46 deletions

View File

@ -50,7 +50,7 @@
<plugin>
org.contikios.cooja.plugins.ScriptRunner
<plugin_config>
<scriptfile>[CONFIG_DIR]/hello-world.js</scriptfile>
<scriptfile>[CONFIG_DIR]/js/hello-world.js</scriptfile>
<active>true</active>
</plugin_config>
<width>541</width>

View File

@ -1,23 +0,0 @@
TIMEOUT(200000, log.log("last message: " + msg + "\n"));
data = 0;
alive = 0;
while(true) {
YIELD();
if(msg.startsWith('Data')) {
data++;
log.log("Heard " + data + " data messages\n");
}
if(msg.startsWith('Alive')) {
alive++;
log.log("Heard " + alive + " alive messages\n");
}
if(data == 10 && alive == 10) {
if(msg.startsWith('Data 10') ||
msg.startsWith('Alive 10')) {
log.testOK();
} else {
log.testError();
}
}
}

View File

@ -1,22 +0,0 @@
TIMEOUT(200000, log.log("last message: " + msg + "\n"));
data = 0;
alive = 0;
while(true) {
YIELD();
if(msg.startsWith('Data')) {
data++;
log.log("Heard " + data + " data messages\n");
}
if(msg.startsWith('Alive')) {
alive++;
log.log("Heard " + alive + " alive messages\n");
}
if(data == 0 && alive == 10) {
if(msg.startsWith('Alive 10')) {
log.testOK();
} else {
log.testError();
}
}
}