liminix-fork/tests/tftpboot/script.expect
Daniel Barlow 9a29a042e8 fix tftpboot test on boards without autoboot, swap wan/lan
This is for MIPS.  I spent a while investigating why the second virtio
net device doesn't function in qemu mips malta u-boot, but with no
success. Use the first one instead.
2023-12-21 19:25:16 +00:00

21 lines
301 B
Text

set timeout 30
spawn socat unix-connect:vm/console -
expect {
"stop autoboot" { send "\r" }
"=>" { send "\r" }
}
set fh [open "result/boot.scr"]
while {[gets $fh line] >= 0} {
expect "=>"
send "$line\r"
}
close $fh
expect {
"s6-linux-init" { exit 0 }
timeout { exit 1 }
}