blob: f7ae5042c8670a69b8c54161272362bf440ea505 [file] [log] [blame]
Michael Walsh800b3922017-05-05 15:30:30 -05001*** Settings ***
2Documentation This module provides one wrapper keyword for each kind of boot
3... test supported by obmc_boot_test.py.
4
5Resource ../extended/obmc_boot_test_resource.robot
6
7*** Keywords ***
8###############################################################################
9REST Power On
10 [Documentation] Do "REST Power On" boot test.
Michael Walshff340002017-08-29 11:18:27 -050011 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -050012
Michael Walshff340002017-08-29 11:18:27 -050013 # Description of argument(s):
14 # stack_mode If stack_mode is set to "skip", each test
15 # specified in the boot_stack is only
16 # performed if the machine is not already in
17 # the state that would normally result from
18 # running the given boot test. Otherwise,
19 # the test is skipped. If stack_mode is set
20 # to "normal", all tests from the boot_stack
21 # are performed. "skip" mode is useful when
22 # you simply want the machine in a desired
23 # state. The default value is the global
24 # value of "${stack_mode}"
25 # quiet If this parameter is set to ${1}, this
26 # keyword will print only essential
27 # information. The default value is the
28 # global value of "${quiet}"
29
30 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=REST Power On
31 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
32 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -050033
34###############################################################################
35
36
37###############################################################################
38IPMI Power On
39 [Documentation] Do "IPMI Power On" boot test.
Michael Walshff340002017-08-29 11:18:27 -050040 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -050041
Michael Walshff340002017-08-29 11:18:27 -050042 # Description of argument(s):
43 # stack_mode If stack_mode is set to "skip", each test
44 # specified in the boot_stack is only
45 # performed if the machine is not already in
46 # the state that would normally result from
47 # running the given boot test. Otherwise,
48 # the test is skipped. If stack_mode is set
49 # to "normal", all tests from the boot_stack
50 # are performed. "skip" mode is useful when
51 # you simply want the machine in a desired
52 # state. The default value is the global
53 # value of "${stack_mode}"
54 # quiet If this parameter is set to ${1}, this
55 # keyword will print only essential
56 # information. The default value is the
57 # global value of "${quiet}"
58
59 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=IPMI Power On
60 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
61 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -050062
63###############################################################################
64
65
66###############################################################################
67REST Power Off
68 [Documentation] Do "REST Power Off" boot test.
Michael Walshff340002017-08-29 11:18:27 -050069 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -050070
Michael Walshff340002017-08-29 11:18:27 -050071 # Description of argument(s):
72 # stack_mode If stack_mode is set to "skip", each test
73 # specified in the boot_stack is only
74 # performed if the machine is not already in
75 # the state that would normally result from
76 # running the given boot test. Otherwise,
77 # the test is skipped. If stack_mode is set
78 # to "normal", all tests from the boot_stack
79 # are performed. "skip" mode is useful when
80 # you simply want the machine in a desired
81 # state. The default value is the global
82 # value of "${stack_mode}"
83 # quiet If this parameter is set to ${1}, this
84 # keyword will print only essential
85 # information. The default value is the
86 # global value of "${quiet}"
87
88 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=REST Power Off
89 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
90 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -050091
92###############################################################################
93
94
95###############################################################################
96IPMI Power Off
97 [Documentation] Do "IPMI Power Off" boot test.
Michael Walshff340002017-08-29 11:18:27 -050098 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -050099
Michael Walshff340002017-08-29 11:18:27 -0500100 # Description of argument(s):
101 # stack_mode If stack_mode is set to "skip", each test
102 # specified in the boot_stack is only
103 # performed if the machine is not already in
104 # the state that would normally result from
105 # running the given boot test. Otherwise,
106 # the test is skipped. If stack_mode is set
107 # to "normal", all tests from the boot_stack
108 # are performed. "skip" mode is useful when
109 # you simply want the machine in a desired
110 # state. The default value is the global
111 # value of "${stack_mode}"
112 # quiet If this parameter is set to ${1}, this
113 # keyword will print only essential
114 # information. The default value is the
115 # global value of "${quiet}"
116
117 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=IPMI Power Off
118 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
119 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500120
121###############################################################################
122
123
124###############################################################################
125IPMI Power Soft
126 [Documentation] Do "IPMI Power Soft" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500127 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500128
Michael Walshff340002017-08-29 11:18:27 -0500129 # Description of argument(s):
130 # stack_mode If stack_mode is set to "skip", each test
131 # specified in the boot_stack is only
132 # performed if the machine is not already in
133 # the state that would normally result from
134 # running the given boot test. Otherwise,
135 # the test is skipped. If stack_mode is set
136 # to "normal", all tests from the boot_stack
137 # are performed. "skip" mode is useful when
138 # you simply want the machine in a desired
139 # state. The default value is the global
140 # value of "${stack_mode}"
141 # quiet If this parameter is set to ${1}, this
142 # keyword will print only essential
143 # information. The default value is the
144 # global value of "${quiet}"
145
146 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=IPMI Power Soft
147 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
148 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500149
150###############################################################################
151
152
153###############################################################################
154Host Power Off
155 [Documentation] Do "Host Power Off" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500156 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500157
Michael Walshff340002017-08-29 11:18:27 -0500158 # Description of argument(s):
159 # stack_mode If stack_mode is set to "skip", each test
160 # specified in the boot_stack is only
161 # performed if the machine is not already in
162 # the state that would normally result from
163 # running the given boot test. Otherwise,
164 # the test is skipped. If stack_mode is set
165 # to "normal", all tests from the boot_stack
166 # are performed. "skip" mode is useful when
167 # you simply want the machine in a desired
168 # state. The default value is the global
169 # value of "${stack_mode}"
170 # quiet If this parameter is set to ${1}, this
171 # keyword will print only essential
172 # information. The default value is the
173 # global value of "${quiet}"
174
175 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=Host Power Off
176 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
177 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500178
179###############################################################################
180
181
182###############################################################################
183APOR
184 [Documentation] Do "APOR" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500185 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500186
Michael Walshff340002017-08-29 11:18:27 -0500187 # Description of argument(s):
188 # stack_mode If stack_mode is set to "skip", each test
189 # specified in the boot_stack is only
190 # performed if the machine is not already in
191 # the state that would normally result from
192 # running the given boot test. Otherwise,
193 # the test is skipped. If stack_mode is set
194 # to "normal", all tests from the boot_stack
195 # are performed. "skip" mode is useful when
196 # you simply want the machine in a desired
197 # state. The default value is the global
198 # value of "${stack_mode}"
199 # quiet If this parameter is set to ${1}, this
200 # keyword will print only essential
201 # information. The default value is the
202 # global value of "${quiet}"
203
204 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=APOR
205 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
206 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500207
208###############################################################################
209
210
211###############################################################################
212OBMC Reboot (run)
213 [Documentation] Do "OBMC Reboot (run)" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500214 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500215
Michael Walshff340002017-08-29 11:18:27 -0500216 # Description of argument(s):
217 # stack_mode If stack_mode is set to "skip", each test
218 # specified in the boot_stack is only
219 # performed if the machine is not already in
220 # the state that would normally result from
221 # running the given boot test. Otherwise,
222 # the test is skipped. If stack_mode is set
223 # to "normal", all tests from the boot_stack
224 # are performed. "skip" mode is useful when
225 # you simply want the machine in a desired
226 # state. The default value is the global
227 # value of "${stack_mode}"
228 # quiet If this parameter is set to ${1}, this
229 # keyword will print only essential
230 # information. The default value is the
231 # global value of "${quiet}"
232
233 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=OBMC Reboot (run)
234 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
235 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500236
237###############################################################################
238
239
240###############################################################################
241OBMC Reboot (off)
242 [Documentation] Do "OBMC Reboot (off)" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500243 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500244
Michael Walshff340002017-08-29 11:18:27 -0500245 # Description of argument(s):
246 # stack_mode If stack_mode is set to "skip", each test
247 # specified in the boot_stack is only
248 # performed if the machine is not already in
249 # the state that would normally result from
250 # running the given boot test. Otherwise,
251 # the test is skipped. If stack_mode is set
252 # to "normal", all tests from the boot_stack
253 # are performed. "skip" mode is useful when
254 # you simply want the machine in a desired
255 # state. The default value is the global
256 # value of "${stack_mode}"
257 # quiet If this parameter is set to ${1}, this
258 # keyword will print only essential
259 # information. The default value is the
260 # global value of "${quiet}"
261
262 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=OBMC Reboot (off)
263 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
264 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500265
266###############################################################################
267
268
269###############################################################################
270PDU AC Cycle (run)
271 [Documentation] Do "PDU AC Cycle (run)" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500272 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500273
Michael Walshff340002017-08-29 11:18:27 -0500274 # Description of argument(s):
275 # stack_mode If stack_mode is set to "skip", each test
276 # specified in the boot_stack is only
277 # performed if the machine is not already in
278 # the state that would normally result from
279 # running the given boot test. Otherwise,
280 # the test is skipped. If stack_mode is set
281 # to "normal", all tests from the boot_stack
282 # are performed. "skip" mode is useful when
283 # you simply want the machine in a desired
284 # state. The default value is the global
285 # value of "${stack_mode}"
286 # quiet If this parameter is set to ${1}, this
287 # keyword will print only essential
288 # information. The default value is the
289 # global value of "${quiet}"
290
291 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=PDU AC Cycle (run)
292 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
293 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500294
295###############################################################################
296
297
298###############################################################################
299PDU AC Cycle (off)
300 [Documentation] Do "PDU AC Cycle (off)" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500301 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500302
Michael Walshff340002017-08-29 11:18:27 -0500303 # Description of argument(s):
304 # stack_mode If stack_mode is set to "skip", each test
305 # specified in the boot_stack is only
306 # performed if the machine is not already in
307 # the state that would normally result from
308 # running the given boot test. Otherwise,
309 # the test is skipped. If stack_mode is set
310 # to "normal", all tests from the boot_stack
311 # are performed. "skip" mode is useful when
312 # you simply want the machine in a desired
313 # state. The default value is the global
314 # value of "${stack_mode}"
315 # quiet If this parameter is set to ${1}, this
316 # keyword will print only essential
317 # information. The default value is the
318 # global value of "${quiet}"
319
320 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=PDU AC Cycle (off)
321 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
322 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500323
324###############################################################################
325
326
327###############################################################################
328IPMI MC Reset Warm (run)
329 [Documentation] Do "IPMI MC Reset Warm (run)" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500330 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500331
Michael Walshff340002017-08-29 11:18:27 -0500332 # Description of argument(s):
333 # stack_mode If stack_mode is set to "skip", each test
334 # specified in the boot_stack is only
335 # performed if the machine is not already in
336 # the state that would normally result from
337 # running the given boot test. Otherwise,
338 # the test is skipped. If stack_mode is set
339 # to "normal", all tests from the boot_stack
340 # are performed. "skip" mode is useful when
341 # you simply want the machine in a desired
342 # state. The default value is the global
343 # value of "${stack_mode}"
344 # quiet If this parameter is set to ${1}, this
345 # keyword will print only essential
346 # information. The default value is the
347 # global value of "${quiet}"
348
349 ${cmd_buf} Catenate OBMC Boot Test
350 ... \ loc_boot_stack=IPMI MC Reset Warm (run)
351 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
352 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500353
354###############################################################################
355
356
357###############################################################################
358IPMI MC Reset Warm (off)
359 [Documentation] Do "IPMI MC Reset Warm (off)" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500360 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500361
Michael Walshff340002017-08-29 11:18:27 -0500362 # Description of argument(s):
363 # stack_mode If stack_mode is set to "skip", each test
364 # specified in the boot_stack is only
365 # performed if the machine is not already in
366 # the state that would normally result from
367 # running the given boot test. Otherwise,
368 # the test is skipped. If stack_mode is set
369 # to "normal", all tests from the boot_stack
370 # are performed. "skip" mode is useful when
371 # you simply want the machine in a desired
372 # state. The default value is the global
373 # value of "${stack_mode}"
374 # quiet If this parameter is set to ${1}, this
375 # keyword will print only essential
376 # information. The default value is the
377 # global value of "${quiet}"
378
379 ${cmd_buf} Catenate OBMC Boot Test
380 ... \ loc_boot_stack=IPMI MC Reset Warm (off)
381 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
382 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500383
384###############################################################################
385
386
387###############################################################################
388IPMI Power Cycle
389 [Documentation] Do "IPMI Power Cycle" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500390 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500391
Michael Walshff340002017-08-29 11:18:27 -0500392 # Description of argument(s):
393 # stack_mode If stack_mode is set to "skip", each test
394 # specified in the boot_stack is only
395 # performed if the machine is not already in
396 # the state that would normally result from
397 # running the given boot test. Otherwise,
398 # the test is skipped. If stack_mode is set
399 # to "normal", all tests from the boot_stack
400 # are performed. "skip" mode is useful when
401 # you simply want the machine in a desired
402 # state. The default value is the global
403 # value of "${stack_mode}"
404 # quiet If this parameter is set to ${1}, this
405 # keyword will print only essential
406 # information. The default value is the
407 # global value of "${quiet}"
408
409 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=IPMI Power Cycle
410 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
411 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500412
413###############################################################################
414
415
416###############################################################################
417IPMI Power Reset
418 [Documentation] Do "IPMI Power Reset" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500419 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500420
Michael Walshff340002017-08-29 11:18:27 -0500421 # Description of argument(s):
422 # stack_mode If stack_mode is set to "skip", each test
423 # specified in the boot_stack is only
424 # performed if the machine is not already in
425 # the state that would normally result from
426 # running the given boot test. Otherwise,
427 # the test is skipped. If stack_mode is set
428 # to "normal", all tests from the boot_stack
429 # are performed. "skip" mode is useful when
430 # you simply want the machine in a desired
431 # state. The default value is the global
432 # value of "${stack_mode}"
433 # quiet If this parameter is set to ${1}, this
434 # keyword will print only essential
435 # information. The default value is the
436 # global value of "${quiet}"
437
438 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=IPMI Power Reset
439 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
440 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500441
442###############################################################################
443
444
445###############################################################################
446Auto Reboot
447 [Documentation] Do "Auto Reboot" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500448 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500449
Michael Walshff340002017-08-29 11:18:27 -0500450 # Description of argument(s):
451 # stack_mode If stack_mode is set to "skip", each test
452 # specified in the boot_stack is only
453 # performed if the machine is not already in
454 # the state that would normally result from
455 # running the given boot test. Otherwise,
456 # the test is skipped. If stack_mode is set
457 # to "normal", all tests from the boot_stack
458 # are performed. "skip" mode is useful when
459 # you simply want the machine in a desired
460 # state. The default value is the global
461 # value of "${stack_mode}"
462 # quiet If this parameter is set to ${1}, this
463 # keyword will print only essential
464 # information. The default value is the
465 # global value of "${quiet}"
466
467 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=Auto Reboot
468 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
469 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500470
471###############################################################################
472
473
474###############################################################################
475Host Reboot
476 [Documentation] Do "Host Reboot" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500477 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500478
Michael Walshff340002017-08-29 11:18:27 -0500479 # Description of argument(s):
480 # stack_mode If stack_mode is set to "skip", each test
481 # specified in the boot_stack is only
482 # performed if the machine is not already in
483 # the state that would normally result from
484 # running the given boot test. Otherwise,
485 # the test is skipped. If stack_mode is set
486 # to "normal", all tests from the boot_stack
487 # are performed. "skip" mode is useful when
488 # you simply want the machine in a desired
489 # state. The default value is the global
490 # value of "${stack_mode}"
491 # quiet If this parameter is set to ${1}, this
492 # keyword will print only essential
493 # information. The default value is the
494 # global value of "${quiet}"
495
496 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=Host Reboot
497 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
498 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500499
500###############################################################################
501
502