* hotfix rapdijson for gcc14
[t2sde.git] / tests / 901-initrd.exp
blob478d95ecd45153af508877c75c91aeca49378ac9
1 #!/usr/bin/expect -f
3 set qemu [lindex $argv 0]
4 set kernel [lindex $argv 1]
5 set initrd [lindex $argv 2]
6 set append [lindex $argv 3]
7 set argv [lreplace $argv 0 3]
9 # Wait enough (forever) until a long-time boot
10 set timeout 13
11 #timeout {exit 1}
12 set send_slow {8 .1}
14 # Start the guest VM
15 spawn $qemu -kernel $kernel -initrd $initrd -nographic -append "$append" {*}$argv
17 expect {
18 timeout {exit 1}
19 "T2 SDE early userspace*"
22 expect {
23 timeout {exit 1}
24 "*we do not scream, debug shell:"
27 send "echo o > /proc/sysrq-trigger\n"
29 expect {
30 timeout {exit 1}
31 "reboot: Power down"