* rebased llvm/hotfix-sparcv9-not-64.diff
[t2sde.git] / tests / 981-install-text-minimal.exp
blobbfee50de9018d88bdebda8e5273802c56d6e46ff
1 #!/usr/bin/expect -f
3 set qemu [lindex $argv 0]
4 set argv [lreplace $argv 0 0]
6 # Wait enough (forever) until a long-time boot
7 set timeout 30
8 #timeout {exit 1}
10 # Start the guest VM
11 spawn $qemu -nographic {*}$argv
13 # TODO: detect grub and send \n to avoid delay
15 if { [string match "*-*86*" $qemu] } {
16 expect {
17 timeout {exit 1}
18 "*GNU GRUB*"
21 set send_slow {3 .1}
23 # edit grub entry w/ arrow key escapes and C-x
24 send "e"
25 send -s "\033\[B\033\[B\033\[B\033\[D"
27 # after 10
28 send -s " console=ttyS0\030"
31 set send_slow {8 .1}
33 expect {
34 timeout {exit 1}
35 "T2 SDE installer first stage*"
38 expect {
39 timeout {exit 1}
40 "* hit enter otherwise. (default:*"
43 send "\n"
44 expect {
45 timeout {exit 1}
46 "install:/#"
50 send "install -text\n"
52 expect {
53 timeout {exit 1}
54 "keyboard mapping"
56 send "1\n"
58 expect {
59 timeout {exit 1}
60 "Storage setup:"
62 send "1\n"
65 expect {
66 timeout {exit 1}
67 "Classic partitions"
69 send "1\n"
72 expect {
73 timeout {exit 1}
74 "Erasing"
76 send "1\n"
79 expect {
80 timeout {exit 1}
81 "Create filesystem"
83 send "1\n"
86 expect {
87 timeout {exit 1}
88 "Install the system"
90 send "5\n"
93 expect {
94 timeout {exit 1}
95 "Start gasgui"
97 send "6\n"
100 expect {
101 timeout {exit 1}
102 "Full install"
104 # minimal
105 send "3\n"
108 expect {
109 timeout {exit 1}
110 "Install selected"
112 send "\n"
115 expect {
116 timeout {exit 1}
117 "Installing linux-"
121 expect {
122 timeout {exit 1}
123 "Installing sysfiles-"
127 expect {
128 timeout {exit 1}
129 "ENTER to continue"
131 send "\n"
134 expect {
135 timeout {exit 1}
136 "keyboard mappings"
138 send "1\n"
141 expect {
142 timeout {exit 1}
143 " password"
145 send "test\n"
148 expect {
149 timeout {exit 1}
150 " password:"
152 send "test\n"
155 expect {
156 timeout {exit 1}
157 "following time"
159 # Europe
160 send "9\n"
163 expect {
164 timeout {exit 1}
165 "time zone"
167 # Berlin
168 send "6\n"
171 expect {
172 timeout {exit 1}
173 "date and time"
175 send "\n"
178 expect {
179 timeout {exit 1}
180 "locales"
182 send "3\n"
185 expect {
186 timeout {exit 1}
187 "install GRUB2 now"
189 send "\n"
192 expect {
193 timeout {exit 1}
194 "ENTER to continue"
196 send "\n"
199 expect {
200 timeout {exit 1}
201 "ENTER to continue"
203 send "\n"
206 expect {
207 timeout {exit 1}
208 "Boot Loader Setup"
210 send "\n"
213 expect {
214 timeout {exit 1}
215 "Unconfigured interface"
217 send "n\n"
220 expect {
221 timeout {exit 1}
222 "Network Configuration "
224 send "\n"
227 expect {
228 timeout {exit 1}
229 "SSH Daemon"
231 send "\n"
234 expect {
235 timeout {exit 1}
236 "Main Menu"
238 send "\n"
241 expect {
242 timeout {exit 1}
243 "and reboot"
245 send "\n"
248 expect {
249 timeout {exit 1}
250 "login:"
252 send "root\n"
255 expect {
256 timeout {exit 1}
257 "assword:"
259 send "test\n"
262 expect {
263 timeout {exit 1}
264 "root@"
266 send "poweroff\n"
269 expect {
270 timeout {exit 1}
271 "reboot: Power down"