Alexander Bernauer
2012-01-30 16:10:55 UTC
Hi
I have troubles running Cooja test scripts.
First, the following example script, that is deployed with Cooja, fails.
---8<---
TIMEOUT(60000);
while (true) {
log.log(time + ":" + id + ":" + msg + "\n");
YIELD();
}
--->8---
---8<---
[...]
Test script error, terminating Cooja.
[...]
TypeError: Cannot find log in object se.sics.cooja.plugins.LogScriptEngine
[...]
--->8---
Second, after pulling the recent master commit
(66868253f02b9bc2028539f23d467a0c7b3589d0), Cooja does not even build
any more:
---8<---
[javac] /home/alex/scm/contiki/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/interfaces/CoojaM25P80.java:84: non-static variable startOffset cannot be referenced from a static context
[javac] Arrays.fill(data, CoffeeConfiguration.startOffset + offset, size, (byte)0);
[javac] ^
[javac] /home/alex/scm/contiki/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/interfaces/CoojaM25P80.java:100: non-static variable startOffset cannot be referenced from a static context
[javac] System.arraycopy(data, CoffeeConfiguration.startOffset + offset, bytes, 0, size);
[javac] ^
[javac] /home/alex/scm/contiki/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/interfaces/CoojaM25P80.java:108: non-static variable startOffset cannot be referenced from a static context
[javac] System.arraycopy(bytes, 0, data, CoffeeConfiguration.startOffset + offset, size);
--->8---
What's the status of Cooja Test Scripts? Is it still supported? Is there
a particular tag I should use? Any other recommendations?
Greetings
Alex
I have troubles running Cooja test scripts.
First, the following example script, that is deployed with Cooja, fails.
---8<---
TIMEOUT(60000);
while (true) {
log.log(time + ":" + id + ":" + msg + "\n");
YIELD();
}
--->8---
---8<---
[...]
Test script error, terminating Cooja.
[...]
TypeError: Cannot find log in object se.sics.cooja.plugins.LogScriptEngine
[...]
--->8---
Second, after pulling the recent master commit
(66868253f02b9bc2028539f23d467a0c7b3589d0), Cooja does not even build
any more:
---8<---
[javac] /home/alex/scm/contiki/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/interfaces/CoojaM25P80.java:84: non-static variable startOffset cannot be referenced from a static context
[javac] Arrays.fill(data, CoffeeConfiguration.startOffset + offset, size, (byte)0);
[javac] ^
[javac] /home/alex/scm/contiki/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/interfaces/CoojaM25P80.java:100: non-static variable startOffset cannot be referenced from a static context
[javac] System.arraycopy(data, CoffeeConfiguration.startOffset + offset, bytes, 0, size);
[javac] ^
[javac] /home/alex/scm/contiki/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/interfaces/CoojaM25P80.java:108: non-static variable startOffset cannot be referenced from a static context
[javac] System.arraycopy(bytes, 0, data, CoffeeConfiguration.startOffset + offset, size);
--->8---
What's the status of Cooja Test Scripts? Is it still supported? Is there
a particular tag I should use? Any other recommendations?
Greetings
Alex