1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/projects/test_shell/tests/02-unknown-command

21 lines
319 B
Plaintext
Raw Normal View History

2010-09-22 17:25:19 +02:00
#!/usr/bin/expect
2010-09-28 17:36:28 +02:00
set timeout 2
2010-09-22 17:25:19 +02:00
spawn board/msba2/tools/bin/pseudoterm $env(PORT)
sleep 1
expect {
">$" {}
timeout { exit 1 }
}
send "some_definately_unknown_command\n"
expect {
2010-09-28 17:36:28 +02:00
"shell: command "some_definately_unknown_command" not found." {}
2010-09-22 17:25:19 +02:00
timeout { exit 1 }
}
puts "\nTest successful!\n"