osd-contiki/tools/cooja/contiki_tests/sky_shell_basic_commands.js

16 lines
370 B
JavaScript
Raw Normal View History

2009-01-08 18:11:06 +01:00
TIMEOUT(2000, log.log("last message: " + msg + "\n"));
2008-11-11 11:35:26 +01:00
2009-01-08 18:11:06 +01:00
/* Wait until node has booted */
WAIT_UNTIL(msg.startsWith('Starting'));
log.log("Shell started\n");
2008-11-11 11:35:26 +01:00
2009-01-08 18:11:06 +01:00
/* Test command: ps */
node.write("ps");
WAIT_UNTIL(msg.startsWith('Event timer'));
2008-11-11 11:35:26 +01:00
2009-01-08 18:11:06 +01:00
/* Test command: help */
node.write("help");
WAIT_UNTIL(msg.startsWith('write <filename>'));
2008-11-11 11:35:26 +01:00
2009-01-08 18:11:06 +01:00
log.testOK(); /* We are done! */