Leah McNutt | c9c9cde | 2016-10-07 16:53:52 +0000 | [diff] [blame] | 1 | *** Settings *** |
Michael Walsh | 0bbd860 | 2016-11-22 11:31:49 -0600 | [diff] [blame] | 2 | Documentation Do random repeated boots based on the state of the BMC machine. |
Leah McNutt | c9c9cde | 2016-10-07 16:53:52 +0000 | [diff] [blame] | 3 | |
Michael Walsh | 6741f74 | 2017-02-20 16:16:38 -0600 | [diff] [blame] | 4 | Library state.py |
| 5 | Library obmc_boot_test.py |
Michael Walsh | 0bbd860 | 2016-11-22 11:31:49 -0600 | [diff] [blame] | 6 | |
Michael Walsh | 6741f74 | 2017-02-20 16:16:38 -0600 | [diff] [blame] | 7 | Resource openbmc_ffdc.robot |
Michael Walsh | 0bbd860 | 2016-11-22 11:31:49 -0600 | [diff] [blame] | 8 | |
| 9 | *** Variables *** |
| 10 | # Initialize program parameters variables. |
| 11 | # Create parm_list containing all of our program parameters. This is used by |
| 12 | # 'Rqprint Pgm Header' |
| 13 | @{parm_list} openbmc_nickname openbmc_host openbmc_username |
| 14 | ... openbmc_password os_host os_username os_password pdu_host |
| 15 | ... pdu_username pdu_password pdu_slot_no openbmc_serial_host |
| 16 | ... openbmc_serial_port boot_stack boot_list max_num_tests |
| 17 | ... plug_in_dir_paths status_file_path openbmc_model boot_pass boot_fail |
Michael Walsh | 5530229 | 2017-01-10 11:43:02 -0600 | [diff] [blame] | 18 | ... ffdc_dir_path_style ffdc_check state_change_timeout power_on_timeout |
Michael Walsh | 6741f74 | 2017-02-20 16:16:38 -0600 | [diff] [blame] | 19 | ... power_off_timeout test_mode quiet debug |
Michael Walsh | 0bbd860 | 2016-11-22 11:31:49 -0600 | [diff] [blame] | 20 | |
| 21 | # Initialize each program parameter. |
Michael Walsh | 0bbd860 | 2016-11-22 11:31:49 -0600 | [diff] [blame] | 22 | ${openbmc_host} ${EMPTY} |
Michael Walsh | 6741f74 | 2017-02-20 16:16:38 -0600 | [diff] [blame] | 23 | ${openbmc_nickname} ${openbmc_host} |
Michael Walsh | 0bbd860 | 2016-11-22 11:31:49 -0600 | [diff] [blame] | 24 | ${openbmc_username} root |
| 25 | ${openbmc_password} 0penBmc |
| 26 | ${os_host} ${EMPTY} |
| 27 | ${os_username} root |
| 28 | ${os_password} P@ssw0rd |
| 29 | ${pdu_host} ${EMPTY} |
| 30 | ${pdu_username} admin |
| 31 | ${pdu_password} admin |
| 32 | ${pdu_slot_no} ${EMPTY} |
| 33 | ${openbmc_serial_host} ${EMPTY} |
| 34 | ${openbmc_serial_port} ${EMPTY} |
| 35 | ${boot_stack} ${EMPTY} |
| 36 | ${boot_list} ${EMPTY} |
| 37 | ${max_num_tests} 0 |
| 38 | ${plug_in_dir_paths} ${EMPTY} |
| 39 | ${status_file_path} ${EMPTY} |
| 40 | ${openbmc_model} ${EMPTY} |
| 41 | # The reason boot_pass and boot_fail are parameters is that it is possible to |
| 42 | # be called by a program that has already done some tests. This allows us to |
| 43 | # keep the grand total. |
| 44 | ${boot_pass} ${0} |
| 45 | ${boot_fail} ${0} |
Michael Walsh | b412595 | 2016-12-13 15:49:50 -0600 | [diff] [blame] | 46 | ${ffdc_dir_path_style} ${EMPTY} |
| 47 | ${ffdc_check} ${EMPTY} |
Michael Walsh | 5530229 | 2017-01-10 11:43:02 -0600 | [diff] [blame] | 48 | ${state_change_timeout} 1 min |
| 49 | ${power_on_timeout} 14 mins |
| 50 | ${power_off_timeout} 2 mins |
Michael Walsh | 0bbd860 | 2016-11-22 11:31:49 -0600 | [diff] [blame] | 51 | ${test_mode} 0 |
| 52 | ${quiet} 0 |
| 53 | ${debug} 0 |
| 54 | |
Michael Walsh | 0bbd860 | 2016-11-22 11:31:49 -0600 | [diff] [blame] | 55 | # Flag variables. |
Michael Walsh | 0bbd860 | 2016-11-22 11:31:49 -0600 | [diff] [blame] | 56 | # test_really_running is needed by DB_Logging plug-in. |
| 57 | ${test_really_running} ${1} |
Leah McNutt | c9c9cde | 2016-10-07 16:53:52 +0000 | [diff] [blame] | 58 | |
| 59 | *** Test Cases *** |
Michael Walsh | 6741f74 | 2017-02-20 16:16:38 -0600 | [diff] [blame] | 60 | General Boot Testing |
| 61 | [Documentation] Performs repeated boot tests. |
| 62 | [Tags] General_boot_testing |
Michael Walsh | c911681 | 2017-03-10 14:23:06 -0600 | [diff] [blame] | 63 | [Teardown] Test Teardown |
Leah McNutt | c9c9cde | 2016-10-07 16:53:52 +0000 | [diff] [blame] | 64 | |
| 65 | # Call the Main keyword to prevent any dots from appearing in the console |
| 66 | # due to top level keywords. |
| 67 | Main |
| 68 | |
| 69 | *** Keywords *** |
Michael Walsh | 0bbd860 | 2016-11-22 11:31:49 -0600 | [diff] [blame] | 70 | ############################################################################### |
Leah McNutt | c9c9cde | 2016-10-07 16:53:52 +0000 | [diff] [blame] | 71 | Main |
Michael Walsh | c911681 | 2017-03-10 14:23:06 -0600 | [diff] [blame] | 72 | [Teardown] Main Keyword Teardown |
Leah McNutt | c9c9cde | 2016-10-07 16:53:52 +0000 | [diff] [blame] | 73 | |
Michael Walsh | 6741f74 | 2017-02-20 16:16:38 -0600 | [diff] [blame] | 74 | # This is the "Main" keyword. The advantages of having this keyword vs |
| 75 | # just putting the code in the *** Test Cases *** table are: |
| 76 | # 1) You won't get a green dot in the output every time you run a keyword. |
Leah McNutt | c9c9cde | 2016-10-07 16:53:52 +0000 | [diff] [blame] | 77 | |
Michael Walsh | 6741f74 | 2017-02-20 16:16:38 -0600 | [diff] [blame] | 78 | Main Py |
Leah McNutt | c9c9cde | 2016-10-07 16:53:52 +0000 | [diff] [blame] | 79 | |
Michael Walsh | 0bbd860 | 2016-11-22 11:31:49 -0600 | [diff] [blame] | 80 | ############################################################################### |