* rebased llvm/hotfix-sparcv9-not-64.diff
[t2sde.git] / tests / 912-inst-minird.exp
blob545a2ce04c57527dd3fd40d9e551c917b0ec1400
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 30
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 installer first stage*"
22 expect {
23 timeout {exit 1}
24 "Enter number or image file names*"
26 send "\n"
28 expect {
29 timeout {exit 1}
30 "* hit enter otherwise. (default:*"
33 send "\n"
34 expect {
35 timeout {exit 1}
36 "install:/#"
40 send "fdisk --version\n"
41 expect {
42 timeout {exit 1}
43 "fdisk from*"
47 send "mkfs.ext3 -V\n"
48 expect {
49 timeout {exit 1}
50 "mke2fs *"
54 send "echo o > /proc/sysrq-trigger\n"
55 expect {
56 timeout {exit 1}
57 "reboot: Power down"