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 | a20da40 | 2017-03-31 16:27:45 -0500 | [diff] [blame] | 19 | ... power_off_timeout ffdc_only 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 | 664b20b | 2017-03-31 09:27:30 -0500 | [diff] [blame] | 48 | ${state_change_timeout} 3 mins |
Michael Walsh | 5530229 | 2017-01-10 11:43:02 -0600 | [diff] [blame] | 49 | ${power_on_timeout} 14 mins |
| 50 | ${power_off_timeout} 2 mins |
Michael Walsh | a20da40 | 2017-03-31 16:27:45 -0500 | [diff] [blame] | 51 | ${ffdc_only} ${0} |
Michael Walsh | 0bbd860 | 2016-11-22 11:31:49 -0600 | [diff] [blame] | 52 | ${test_mode} 0 |
| 53 | ${quiet} 0 |
| 54 | ${debug} 0 |
| 55 | |
Michael Walsh | 0bbd860 | 2016-11-22 11:31:49 -0600 | [diff] [blame] | 56 | # Flag variables. |
Michael Walsh | 0bbd860 | 2016-11-22 11:31:49 -0600 | [diff] [blame] | 57 | # test_really_running is needed by DB_Logging plug-in. |
| 58 | ${test_really_running} ${1} |
Leah McNutt | c9c9cde | 2016-10-07 16:53:52 +0000 | [diff] [blame] | 59 | |
| 60 | *** Test Cases *** |
Michael Walsh | 6741f74 | 2017-02-20 16:16:38 -0600 | [diff] [blame] | 61 | General Boot Testing |
| 62 | [Documentation] Performs repeated boot tests. |
| 63 | [Tags] General_boot_testing |
Michael Walsh | c911681 | 2017-03-10 14:23:06 -0600 | [diff] [blame] | 64 | [Teardown] Test Teardown |
Leah McNutt | c9c9cde | 2016-10-07 16:53:52 +0000 | [diff] [blame] | 65 | |
| 66 | # Call the Main keyword to prevent any dots from appearing in the console |
| 67 | # due to top level keywords. |
| 68 | Main |
| 69 | |
| 70 | *** Keywords *** |
Michael Walsh | 0bbd860 | 2016-11-22 11:31:49 -0600 | [diff] [blame] | 71 | ############################################################################### |
Leah McNutt | c9c9cde | 2016-10-07 16:53:52 +0000 | [diff] [blame] | 72 | Main |
Michael Walsh | c911681 | 2017-03-10 14:23:06 -0600 | [diff] [blame] | 73 | [Teardown] Main Keyword Teardown |
Leah McNutt | c9c9cde | 2016-10-07 16:53:52 +0000 | [diff] [blame] | 74 | |
Michael Walsh | 6741f74 | 2017-02-20 16:16:38 -0600 | [diff] [blame] | 75 | # This is the "Main" keyword. The advantages of having this keyword vs |
| 76 | # just putting the code in the *** Test Cases *** table are: |
| 77 | # 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] | 78 | |
Michael Walsh | 6741f74 | 2017-02-20 16:16:38 -0600 | [diff] [blame] | 79 | Main Py |
Leah McNutt | c9c9cde | 2016-10-07 16:53:52 +0000 | [diff] [blame] | 80 | |
Michael Walsh | 0bbd860 | 2016-11-22 11:31:49 -0600 | [diff] [blame] | 81 | ############################################################################### |