xref: /openbmc/openbmc-test-automation/lib/boot_utils.robot (revision ff340006d7e41989ea2d0f2c28bbe650c7357734)
1800b3922SMichael Walsh*** Settings ***
2800b3922SMichael WalshDocumentation  This module provides one wrapper keyword for each kind of boot
3800b3922SMichael Walsh...            test supported by obmc_boot_test.py.
4800b3922SMichael Walsh
5800b3922SMichael WalshResource  ../extended/obmc_boot_test_resource.robot
6800b3922SMichael Walsh
7800b3922SMichael Walsh*** Keywords ***
8800b3922SMichael Walsh###############################################################################
9800b3922SMichael WalshREST Power On
10800b3922SMichael Walsh    [Documentation]  Do "REST Power On" boot test.
11*ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
12800b3922SMichael Walsh
13*ff340006SMichael Walsh    # Description of argument(s):
14*ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
15*ff340006SMichael Walsh    #                               specified in the boot_stack is only
16*ff340006SMichael Walsh    #                               performed if the machine is not already in
17*ff340006SMichael Walsh    #                               the state that would normally result from
18*ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
19*ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
20*ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
21*ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
22*ff340006SMichael Walsh    #                               you simply want the machine in a desired
23*ff340006SMichael Walsh    #                               state.  The default value is the global
24*ff340006SMichael Walsh    #                               value of "${stack_mode}"
25*ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
26*ff340006SMichael Walsh    #                               keyword will print only essential
27*ff340006SMichael Walsh    #                               information.  The default value is the
28*ff340006SMichael Walsh    #                               global value of "${quiet}"
29*ff340006SMichael Walsh
30*ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=REST Power On
31*ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
32*ff340006SMichael Walsh    Run Key U  ${cmd_buf}
33800b3922SMichael Walsh
34800b3922SMichael Walsh###############################################################################
35800b3922SMichael Walsh
36800b3922SMichael Walsh
37800b3922SMichael Walsh###############################################################################
38800b3922SMichael WalshIPMI Power On
39800b3922SMichael Walsh    [Documentation]  Do "IPMI Power On" boot test.
40*ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
41800b3922SMichael Walsh
42*ff340006SMichael Walsh    # Description of argument(s):
43*ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
44*ff340006SMichael Walsh    #                               specified in the boot_stack is only
45*ff340006SMichael Walsh    #                               performed if the machine is not already in
46*ff340006SMichael Walsh    #                               the state that would normally result from
47*ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
48*ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
49*ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
50*ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
51*ff340006SMichael Walsh    #                               you simply want the machine in a desired
52*ff340006SMichael Walsh    #                               state.  The default value is the global
53*ff340006SMichael Walsh    #                               value of "${stack_mode}"
54*ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
55*ff340006SMichael Walsh    #                               keyword will print only essential
56*ff340006SMichael Walsh    #                               information.  The default value is the
57*ff340006SMichael Walsh    #                               global value of "${quiet}"
58*ff340006SMichael Walsh
59*ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=IPMI Power On
60*ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
61*ff340006SMichael Walsh    Run Key U  ${cmd_buf}
62800b3922SMichael Walsh
63800b3922SMichael Walsh###############################################################################
64800b3922SMichael Walsh
65800b3922SMichael Walsh
66800b3922SMichael Walsh###############################################################################
67800b3922SMichael WalshREST Power Off
68800b3922SMichael Walsh    [Documentation]  Do "REST Power Off" boot test.
69*ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
70800b3922SMichael Walsh
71*ff340006SMichael Walsh    # Description of argument(s):
72*ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
73*ff340006SMichael Walsh    #                               specified in the boot_stack is only
74*ff340006SMichael Walsh    #                               performed if the machine is not already in
75*ff340006SMichael Walsh    #                               the state that would normally result from
76*ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
77*ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
78*ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
79*ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
80*ff340006SMichael Walsh    #                               you simply want the machine in a desired
81*ff340006SMichael Walsh    #                               state.  The default value is the global
82*ff340006SMichael Walsh    #                               value of "${stack_mode}"
83*ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
84*ff340006SMichael Walsh    #                               keyword will print only essential
85*ff340006SMichael Walsh    #                               information.  The default value is the
86*ff340006SMichael Walsh    #                               global value of "${quiet}"
87*ff340006SMichael Walsh
88*ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=REST Power Off
89*ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
90*ff340006SMichael Walsh    Run Key U  ${cmd_buf}
91800b3922SMichael Walsh
92800b3922SMichael Walsh###############################################################################
93800b3922SMichael Walsh
94800b3922SMichael Walsh
95800b3922SMichael Walsh###############################################################################
96800b3922SMichael WalshIPMI Power Off
97800b3922SMichael Walsh    [Documentation]  Do "IPMI Power Off" boot test.
98*ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
99800b3922SMichael Walsh
100*ff340006SMichael Walsh    # Description of argument(s):
101*ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
102*ff340006SMichael Walsh    #                               specified in the boot_stack is only
103*ff340006SMichael Walsh    #                               performed if the machine is not already in
104*ff340006SMichael Walsh    #                               the state that would normally result from
105*ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
106*ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
107*ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
108*ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
109*ff340006SMichael Walsh    #                               you simply want the machine in a desired
110*ff340006SMichael Walsh    #                               state.  The default value is the global
111*ff340006SMichael Walsh    #                               value of "${stack_mode}"
112*ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
113*ff340006SMichael Walsh    #                               keyword will print only essential
114*ff340006SMichael Walsh    #                               information.  The default value is the
115*ff340006SMichael Walsh    #                               global value of "${quiet}"
116*ff340006SMichael Walsh
117*ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=IPMI Power Off
118*ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
119*ff340006SMichael Walsh    Run Key U  ${cmd_buf}
120800b3922SMichael Walsh
121800b3922SMichael Walsh###############################################################################
122800b3922SMichael Walsh
123800b3922SMichael Walsh
124800b3922SMichael Walsh###############################################################################
125800b3922SMichael WalshIPMI Power Soft
126800b3922SMichael Walsh    [Documentation]  Do "IPMI Power Soft" boot test.
127*ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
128800b3922SMichael Walsh
129*ff340006SMichael Walsh    # Description of argument(s):
130*ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
131*ff340006SMichael Walsh    #                               specified in the boot_stack is only
132*ff340006SMichael Walsh    #                               performed if the machine is not already in
133*ff340006SMichael Walsh    #                               the state that would normally result from
134*ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
135*ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
136*ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
137*ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
138*ff340006SMichael Walsh    #                               you simply want the machine in a desired
139*ff340006SMichael Walsh    #                               state.  The default value is the global
140*ff340006SMichael Walsh    #                               value of "${stack_mode}"
141*ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
142*ff340006SMichael Walsh    #                               keyword will print only essential
143*ff340006SMichael Walsh    #                               information.  The default value is the
144*ff340006SMichael Walsh    #                               global value of "${quiet}"
145*ff340006SMichael Walsh
146*ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=IPMI Power Soft
147*ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
148*ff340006SMichael Walsh    Run Key U  ${cmd_buf}
149800b3922SMichael Walsh
150800b3922SMichael Walsh###############################################################################
151800b3922SMichael Walsh
152800b3922SMichael Walsh
153800b3922SMichael Walsh###############################################################################
154800b3922SMichael WalshHost Power Off
155800b3922SMichael Walsh    [Documentation]  Do "Host Power Off" boot test.
156*ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
157800b3922SMichael Walsh
158*ff340006SMichael Walsh    # Description of argument(s):
159*ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
160*ff340006SMichael Walsh    #                               specified in the boot_stack is only
161*ff340006SMichael Walsh    #                               performed if the machine is not already in
162*ff340006SMichael Walsh    #                               the state that would normally result from
163*ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
164*ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
165*ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
166*ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
167*ff340006SMichael Walsh    #                               you simply want the machine in a desired
168*ff340006SMichael Walsh    #                               state.  The default value is the global
169*ff340006SMichael Walsh    #                               value of "${stack_mode}"
170*ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
171*ff340006SMichael Walsh    #                               keyword will print only essential
172*ff340006SMichael Walsh    #                               information.  The default value is the
173*ff340006SMichael Walsh    #                               global value of "${quiet}"
174*ff340006SMichael Walsh
175*ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=Host Power Off
176*ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
177*ff340006SMichael Walsh    Run Key U  ${cmd_buf}
178800b3922SMichael Walsh
179800b3922SMichael Walsh###############################################################################
180800b3922SMichael Walsh
181800b3922SMichael Walsh
182800b3922SMichael Walsh###############################################################################
183800b3922SMichael WalshAPOR
184800b3922SMichael Walsh    [Documentation]  Do "APOR" boot test.
185*ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
186800b3922SMichael Walsh
187*ff340006SMichael Walsh    # Description of argument(s):
188*ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
189*ff340006SMichael Walsh    #                               specified in the boot_stack is only
190*ff340006SMichael Walsh    #                               performed if the machine is not already in
191*ff340006SMichael Walsh    #                               the state that would normally result from
192*ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
193*ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
194*ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
195*ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
196*ff340006SMichael Walsh    #                               you simply want the machine in a desired
197*ff340006SMichael Walsh    #                               state.  The default value is the global
198*ff340006SMichael Walsh    #                               value of "${stack_mode}"
199*ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
200*ff340006SMichael Walsh    #                               keyword will print only essential
201*ff340006SMichael Walsh    #                               information.  The default value is the
202*ff340006SMichael Walsh    #                               global value of "${quiet}"
203*ff340006SMichael Walsh
204*ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=APOR
205*ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
206*ff340006SMichael Walsh    Run Key U  ${cmd_buf}
207800b3922SMichael Walsh
208800b3922SMichael Walsh###############################################################################
209800b3922SMichael Walsh
210800b3922SMichael Walsh
211800b3922SMichael Walsh###############################################################################
212800b3922SMichael WalshOBMC Reboot (run)
213800b3922SMichael Walsh    [Documentation]  Do "OBMC Reboot (run)" boot test.
214*ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
215800b3922SMichael Walsh
216*ff340006SMichael Walsh    # Description of argument(s):
217*ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
218*ff340006SMichael Walsh    #                               specified in the boot_stack is only
219*ff340006SMichael Walsh    #                               performed if the machine is not already in
220*ff340006SMichael Walsh    #                               the state that would normally result from
221*ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
222*ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
223*ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
224*ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
225*ff340006SMichael Walsh    #                               you simply want the machine in a desired
226*ff340006SMichael Walsh    #                               state.  The default value is the global
227*ff340006SMichael Walsh    #                               value of "${stack_mode}"
228*ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
229*ff340006SMichael Walsh    #                               keyword will print only essential
230*ff340006SMichael Walsh    #                               information.  The default value is the
231*ff340006SMichael Walsh    #                               global value of "${quiet}"
232*ff340006SMichael Walsh
233*ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=OBMC Reboot (run)
234*ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
235*ff340006SMichael Walsh    Run Key U  ${cmd_buf}
236800b3922SMichael Walsh
237800b3922SMichael Walsh###############################################################################
238800b3922SMichael Walsh
239800b3922SMichael Walsh
240800b3922SMichael Walsh###############################################################################
241800b3922SMichael WalshOBMC Reboot (off)
242800b3922SMichael Walsh    [Documentation]  Do "OBMC Reboot (off)" boot test.
243*ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
244800b3922SMichael Walsh
245*ff340006SMichael Walsh    # Description of argument(s):
246*ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
247*ff340006SMichael Walsh    #                               specified in the boot_stack is only
248*ff340006SMichael Walsh    #                               performed if the machine is not already in
249*ff340006SMichael Walsh    #                               the state that would normally result from
250*ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
251*ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
252*ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
253*ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
254*ff340006SMichael Walsh    #                               you simply want the machine in a desired
255*ff340006SMichael Walsh    #                               state.  The default value is the global
256*ff340006SMichael Walsh    #                               value of "${stack_mode}"
257*ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
258*ff340006SMichael Walsh    #                               keyword will print only essential
259*ff340006SMichael Walsh    #                               information.  The default value is the
260*ff340006SMichael Walsh    #                               global value of "${quiet}"
261*ff340006SMichael Walsh
262*ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=OBMC Reboot (off)
263*ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
264*ff340006SMichael Walsh    Run Key U  ${cmd_buf}
265800b3922SMichael Walsh
266800b3922SMichael Walsh###############################################################################
267800b3922SMichael Walsh
268800b3922SMichael Walsh
269800b3922SMichael Walsh###############################################################################
270800b3922SMichael WalshPDU AC Cycle (run)
271800b3922SMichael Walsh    [Documentation]  Do "PDU AC Cycle (run)" boot test.
272*ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
273800b3922SMichael Walsh
274*ff340006SMichael Walsh    # Description of argument(s):
275*ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
276*ff340006SMichael Walsh    #                               specified in the boot_stack is only
277*ff340006SMichael Walsh    #                               performed if the machine is not already in
278*ff340006SMichael Walsh    #                               the state that would normally result from
279*ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
280*ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
281*ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
282*ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
283*ff340006SMichael Walsh    #                               you simply want the machine in a desired
284*ff340006SMichael Walsh    #                               state.  The default value is the global
285*ff340006SMichael Walsh    #                               value of "${stack_mode}"
286*ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
287*ff340006SMichael Walsh    #                               keyword will print only essential
288*ff340006SMichael Walsh    #                               information.  The default value is the
289*ff340006SMichael Walsh    #                               global value of "${quiet}"
290*ff340006SMichael Walsh
291*ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=PDU AC Cycle (run)
292*ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
293*ff340006SMichael Walsh    Run Key U  ${cmd_buf}
294800b3922SMichael Walsh
295800b3922SMichael Walsh###############################################################################
296800b3922SMichael Walsh
297800b3922SMichael Walsh
298800b3922SMichael Walsh###############################################################################
299800b3922SMichael WalshPDU AC Cycle (off)
300800b3922SMichael Walsh    [Documentation]  Do "PDU AC Cycle (off)" boot test.
301*ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
302800b3922SMichael Walsh
303*ff340006SMichael Walsh    # Description of argument(s):
304*ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
305*ff340006SMichael Walsh    #                               specified in the boot_stack is only
306*ff340006SMichael Walsh    #                               performed if the machine is not already in
307*ff340006SMichael Walsh    #                               the state that would normally result from
308*ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
309*ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
310*ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
311*ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
312*ff340006SMichael Walsh    #                               you simply want the machine in a desired
313*ff340006SMichael Walsh    #                               state.  The default value is the global
314*ff340006SMichael Walsh    #                               value of "${stack_mode}"
315*ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
316*ff340006SMichael Walsh    #                               keyword will print only essential
317*ff340006SMichael Walsh    #                               information.  The default value is the
318*ff340006SMichael Walsh    #                               global value of "${quiet}"
319*ff340006SMichael Walsh
320*ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=PDU AC Cycle (off)
321*ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
322*ff340006SMichael Walsh    Run Key U  ${cmd_buf}
323800b3922SMichael Walsh
324800b3922SMichael Walsh###############################################################################
325800b3922SMichael Walsh
326800b3922SMichael Walsh
327800b3922SMichael Walsh###############################################################################
328800b3922SMichael WalshIPMI MC Reset Warm (run)
329800b3922SMichael Walsh    [Documentation]  Do "IPMI MC Reset Warm (run)" boot test.
330*ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
331800b3922SMichael Walsh
332*ff340006SMichael Walsh    # Description of argument(s):
333*ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
334*ff340006SMichael Walsh    #                               specified in the boot_stack is only
335*ff340006SMichael Walsh    #                               performed if the machine is not already in
336*ff340006SMichael Walsh    #                               the state that would normally result from
337*ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
338*ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
339*ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
340*ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
341*ff340006SMichael Walsh    #                               you simply want the machine in a desired
342*ff340006SMichael Walsh    #                               state.  The default value is the global
343*ff340006SMichael Walsh    #                               value of "${stack_mode}"
344*ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
345*ff340006SMichael Walsh    #                               keyword will print only essential
346*ff340006SMichael Walsh    #                               information.  The default value is the
347*ff340006SMichael Walsh    #                               global value of "${quiet}"
348*ff340006SMichael Walsh
349*ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test
350*ff340006SMichael Walsh    ...  \ loc_boot_stack=IPMI MC Reset Warm (run)
351*ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
352*ff340006SMichael Walsh    Run Key U  ${cmd_buf}
353800b3922SMichael Walsh
354800b3922SMichael Walsh###############################################################################
355800b3922SMichael Walsh
356800b3922SMichael Walsh
357800b3922SMichael Walsh###############################################################################
358800b3922SMichael WalshIPMI MC Reset Warm (off)
359800b3922SMichael Walsh    [Documentation]  Do "IPMI MC Reset Warm (off)" boot test.
360*ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
361800b3922SMichael Walsh
362*ff340006SMichael Walsh    # Description of argument(s):
363*ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
364*ff340006SMichael Walsh    #                               specified in the boot_stack is only
365*ff340006SMichael Walsh    #                               performed if the machine is not already in
366*ff340006SMichael Walsh    #                               the state that would normally result from
367*ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
368*ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
369*ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
370*ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
371*ff340006SMichael Walsh    #                               you simply want the machine in a desired
372*ff340006SMichael Walsh    #                               state.  The default value is the global
373*ff340006SMichael Walsh    #                               value of "${stack_mode}"
374*ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
375*ff340006SMichael Walsh    #                               keyword will print only essential
376*ff340006SMichael Walsh    #                               information.  The default value is the
377*ff340006SMichael Walsh    #                               global value of "${quiet}"
378*ff340006SMichael Walsh
379*ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test
380*ff340006SMichael Walsh    ...  \ loc_boot_stack=IPMI MC Reset Warm (off)
381*ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
382*ff340006SMichael Walsh    Run Key U  ${cmd_buf}
383800b3922SMichael Walsh
384800b3922SMichael Walsh###############################################################################
385800b3922SMichael Walsh
386800b3922SMichael Walsh
387800b3922SMichael Walsh###############################################################################
388800b3922SMichael WalshIPMI Power Cycle
389800b3922SMichael Walsh    [Documentation]  Do "IPMI Power Cycle" boot test.
390*ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
391800b3922SMichael Walsh
392*ff340006SMichael Walsh    # Description of argument(s):
393*ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
394*ff340006SMichael Walsh    #                               specified in the boot_stack is only
395*ff340006SMichael Walsh    #                               performed if the machine is not already in
396*ff340006SMichael Walsh    #                               the state that would normally result from
397*ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
398*ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
399*ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
400*ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
401*ff340006SMichael Walsh    #                               you simply want the machine in a desired
402*ff340006SMichael Walsh    #                               state.  The default value is the global
403*ff340006SMichael Walsh    #                               value of "${stack_mode}"
404*ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
405*ff340006SMichael Walsh    #                               keyword will print only essential
406*ff340006SMichael Walsh    #                               information.  The default value is the
407*ff340006SMichael Walsh    #                               global value of "${quiet}"
408*ff340006SMichael Walsh
409*ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=IPMI Power Cycle
410*ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
411*ff340006SMichael Walsh    Run Key U  ${cmd_buf}
412800b3922SMichael Walsh
413800b3922SMichael Walsh###############################################################################
414800b3922SMichael Walsh
415800b3922SMichael Walsh
416800b3922SMichael Walsh###############################################################################
417800b3922SMichael WalshIPMI Power Reset
418800b3922SMichael Walsh    [Documentation]  Do "IPMI Power Reset" boot test.
419*ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
420800b3922SMichael Walsh
421*ff340006SMichael Walsh    # Description of argument(s):
422*ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
423*ff340006SMichael Walsh    #                               specified in the boot_stack is only
424*ff340006SMichael Walsh    #                               performed if the machine is not already in
425*ff340006SMichael Walsh    #                               the state that would normally result from
426*ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
427*ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
428*ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
429*ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
430*ff340006SMichael Walsh    #                               you simply want the machine in a desired
431*ff340006SMichael Walsh    #                               state.  The default value is the global
432*ff340006SMichael Walsh    #                               value of "${stack_mode}"
433*ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
434*ff340006SMichael Walsh    #                               keyword will print only essential
435*ff340006SMichael Walsh    #                               information.  The default value is the
436*ff340006SMichael Walsh    #                               global value of "${quiet}"
437*ff340006SMichael Walsh
438*ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=IPMI Power Reset
439*ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
440*ff340006SMichael Walsh    Run Key U  ${cmd_buf}
441800b3922SMichael Walsh
442800b3922SMichael Walsh###############################################################################
443800b3922SMichael Walsh
444800b3922SMichael Walsh
445800b3922SMichael Walsh###############################################################################
446800b3922SMichael WalshAuto Reboot
447800b3922SMichael Walsh    [Documentation]  Do "Auto Reboot" boot test.
448*ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
449800b3922SMichael Walsh
450*ff340006SMichael Walsh    # Description of argument(s):
451*ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
452*ff340006SMichael Walsh    #                               specified in the boot_stack is only
453*ff340006SMichael Walsh    #                               performed if the machine is not already in
454*ff340006SMichael Walsh    #                               the state that would normally result from
455*ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
456*ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
457*ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
458*ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
459*ff340006SMichael Walsh    #                               you simply want the machine in a desired
460*ff340006SMichael Walsh    #                               state.  The default value is the global
461*ff340006SMichael Walsh    #                               value of "${stack_mode}"
462*ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
463*ff340006SMichael Walsh    #                               keyword will print only essential
464*ff340006SMichael Walsh    #                               information.  The default value is the
465*ff340006SMichael Walsh    #                               global value of "${quiet}"
466*ff340006SMichael Walsh
467*ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=Auto Reboot
468*ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
469*ff340006SMichael Walsh    Run Key U  ${cmd_buf}
470800b3922SMichael Walsh
471800b3922SMichael Walsh###############################################################################
472800b3922SMichael Walsh
473800b3922SMichael Walsh
474800b3922SMichael Walsh###############################################################################
475800b3922SMichael WalshHost Reboot
476800b3922SMichael Walsh    [Documentation]  Do "Host Reboot" boot test.
477*ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
478800b3922SMichael Walsh
479*ff340006SMichael Walsh    # Description of argument(s):
480*ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
481*ff340006SMichael Walsh    #                               specified in the boot_stack is only
482*ff340006SMichael Walsh    #                               performed if the machine is not already in
483*ff340006SMichael Walsh    #                               the state that would normally result from
484*ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
485*ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
486*ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
487*ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
488*ff340006SMichael Walsh    #                               you simply want the machine in a desired
489*ff340006SMichael Walsh    #                               state.  The default value is the global
490*ff340006SMichael Walsh    #                               value of "${stack_mode}"
491*ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
492*ff340006SMichael Walsh    #                               keyword will print only essential
493*ff340006SMichael Walsh    #                               information.  The default value is the
494*ff340006SMichael Walsh    #                               global value of "${quiet}"
495*ff340006SMichael Walsh
496*ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=Host Reboot
497*ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
498*ff340006SMichael Walsh    Run Key U  ${cmd_buf}
499800b3922SMichael Walsh
500800b3922SMichael Walsh###############################################################################
501800b3922SMichael Walsh
502800b3922SMichael Walsh
503