liminix/tests/tftpboot/script.expect

23 lines
368 B
Plaintext
Raw Normal View History

2023-12-19 12:12:12 +00:00
set timeout 30
2023-12-18 22:42:29 +00:00
spawn socat unix-connect:vm/console -
expect {
"stop autoboot" { send "\r" }
"=>" { send "\r" }
}
2023-12-18 22:42:29 +00:00
set fh [open "result/boot.scr"]
while {[gets $fh line] >= 0} {
expect "=>"
send "$line\r"
}
close $fh
expect {
"s6-linux-init" { exit 0 }
"Reserved memory: unsupported node format, ignoring" { exit 1 }
2023-12-18 22:42:29 +00:00
timeout { exit 1 }
}