mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
31 lines
346 B
Plaintext
Executable File
31 lines
346 B
Plaintext
Executable File
#!/usr/bin/expect
|
|
|
|
set timeout 5
|
|
|
|
spawn pseudoterm $env(PORT)
|
|
|
|
expect {
|
|
">$" {}
|
|
timeout { exit 1 }
|
|
}
|
|
|
|
send "start_test\n"
|
|
expect {
|
|
"\[TEST_START\]" {}
|
|
timeout { exit 1 }
|
|
}
|
|
|
|
expect {
|
|
">$" {}
|
|
timeout { exit 1 }
|
|
}
|
|
|
|
send "end_test\n"
|
|
|
|
expect {
|
|
"\[TEST_END\]" {}
|
|
timeout { exit 1 }
|
|
}
|
|
|
|
puts "\nTest successful!\n"
|