* hotfix rapdijson for gcc14
[t2sde.git] / tests / 982-install-minimal-xorg.exp
blobd255176a70a4565457d10914c9bbe0fbd618ebd7
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\n"
52 expect {
53 timeout {exit 1}
54 "keyboard mapping"
56 send "\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 "\n"
79 expect {
80 timeout {exit 1}
81 "Create filesystem"
83 send "\n"
86 expect {
87 timeout {exit 1}
88 "Install the system"
90 send -s "\033\[B\033\[B\033\[B\033\[B\033\[B\033\[B"
91 send "\n"
94 expect {
95 timeout {exit 1}
96 "Start gasgui"
98 send "6\n"
101 expect {
102 timeout {exit 1}
103 "Full install"
105 # minimal-xorg
106 send "2\n"
109 expect {
110 timeout {exit 1}
111 "Install selected"
113 send "\n"
116 expect {
117 timeout {exit 1}
118 "Installing linux-"
122 expect {
123 timeout {exit 1}
124 "Installing sysfiles-"
128 expect {
129 timeout {exit 1}
130 "ontinue"
132 send "\n"
135 expect {
136 timeout {exit 1}
137 "keyboard mappings"
139 send "\n"
142 expect {
143 timeout {exit 1}
144 "ype password"
146 send "test\n"
149 expect {
150 timeout {exit 1}
151 "etype password"
153 send "test\n"
156 expect {
157 timeout {exit 1}
158 "following time"
160 # Europe
161 send "9\n"
164 expect {
165 timeout {exit 1}
166 "time zone"
168 # Berlin
169 send "6\n"
172 expect {
173 timeout {exit 1}
174 "date and time"
176 send "\n"
179 expect {
180 timeout {exit 1}
181 "locales"
183 send "3\n"
186 expect {
187 timeout {exit 1}
188 "install GRUB2 now"
190 send "\n"
193 expect {
194 timeout {exit 1}
195 "ontinue"
197 send "\n"
200 expect {
201 timeout {exit 1}
202 "ENTER to continue"
204 send "\n"
207 expect {
208 timeout {exit 1}
209 "Boot Loader Setup"
211 send "\t\n"
214 expect {
215 timeout {exit 1}
216 "Unconfigured interface"
218 send "\t\n"
221 expect {
222 timeout {exit 1}
223 "Network Configuration "
225 send "\t\n"
228 expect {
229 timeout {exit 1}
230 "SSH Daemon"
232 send "\t\n"
235 expect {
236 timeout {exit 1}
237 "Main Menu"
239 send "\t\n"
242 expect {
243 timeout {exit 1}
244 "and reboot"
246 send "\n"
249 expect {
250 timeout {exit 1}
251 "login:"
253 send "root\n"
256 expect {
257 timeout {exit 1}
258 "assword:"
260 send "test\n"
263 expect {
264 timeout {exit 1}
265 "root@"
267 send "poweroff\n"
270 expect {
271 timeout {exit 1}
272 "reboot: Power down"