nes-proj/tools/cooja/contiki_tests/sky_shell_basic_commands.js

16 lines
370 B
JavaScript
Raw Normal View History

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