liminix/tests/ext4/script.expect
2023-11-06 21:52:31 +00: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