liminix/tests/jffs2/script.expect
2023-04-06 20:58:26 +01:00

11 lines
No EOL
210 B
Text

set timeout 10
spawn socat unix-connect:vm/console -
send "\r\n"
expect "login:" { send "root\r\n" }
expect "#"
send "echo HELLO WORLD > /hello\r\n"
expect "#"
send "cat /hello\r\n"
expect 'HELLO WORLD'
close