Steven Sombar | aaf72c4 | 2017-09-05 12:02:00 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
Steven Sombar | 1dc6fa7 | 2018-01-12 10:58:20 -0600 | [diff] [blame] | 3 | Documentation Check processor speed. |
Steven Sombar | aaf72c4 | 2017-09-05 12:02:00 -0500 | [diff] [blame] | 4 | |
| 5 | # Test Parameters: |
| 6 | # OPENBMC_HOST The BMC host name or IP address. |
| 7 | # OS_HOST The OS host name or IP Address. |
| 8 | # OS_USERNAME The OS login userid (usually root). |
| 9 | # OS_PASSWORD The password for the OS login. |
| 10 | |
| 11 | Resource ../syslib/utils_os.robot |
Steven Sombar | aaf72c4 | 2017-09-05 12:02:00 -0500 | [diff] [blame] | 12 | |
Steven Sombar | 1dc6fa7 | 2018-01-12 10:58:20 -0600 | [diff] [blame] | 13 | Suite Setup Run Keyword Start SOL Console Logging |
| 14 | Test Setup Test Setup Execution |
| 15 | Test Teardown Test Teardown Execution |
Steven Sombar | aaf72c4 | 2017-09-05 12:02:00 -0500 | [diff] [blame] | 16 | |
| 17 | |
| 18 | *** Test Cases *** |
| 19 | |
Steven Sombar | 1dc6fa7 | 2018-01-12 10:58:20 -0600 | [diff] [blame] | 20 | Processor Speed Check |
| 21 | [Documentation] Check processor speed. |
| 22 | [Tags] Processor_Speed_Check |
Steven Sombar | aaf72c4 | 2017-09-05 12:02:00 -0500 | [diff] [blame] | 23 | |
Steven Sombar | 1dc6fa7 | 2018-01-12 10:58:20 -0600 | [diff] [blame] | 24 | ${actual_min_freq}= Get CPU Min Frequency |
| 25 | ${min_freq_designated_lower_limit}= Get CPU Min Frequency Limit |
Steven Sombar | aaf72c4 | 2017-09-05 12:02:00 -0500 | [diff] [blame] | 26 | |
| 27 | Rprintn |
Steven Sombar | 1dc6fa7 | 2018-01-12 10:58:20 -0600 | [diff] [blame] | 28 | Rpvars actual_min_freq min_freq_designated_lower_limit |
Steven Sombar | aaf72c4 | 2017-09-05 12:02:00 -0500 | [diff] [blame] | 29 | |
Steven Sombar | 1dc6fa7 | 2018-01-12 10:58:20 -0600 | [diff] [blame] | 30 | ${err_msg}= Catenate Reported CPU frequency below designated limit. |
| 31 | Should Be True ${actual_min_freq} >= ${min_freq_designated_lower_limit} |
Steven Sombar | aaf72c4 | 2017-09-05 12:02:00 -0500 | [diff] [blame] | 32 | ... msg=${err_msg} |
| 33 | |
Steven Sombar | 1dc6fa7 | 2018-01-12 10:58:20 -0600 | [diff] [blame] | 34 | ${actual_max_freq}= Get CPU Max Frequency |
| 35 | ${max_freq_designated_limit}= Get CPU Max Frequency Limit |
| 36 | |
| 37 | Rpvars actual_max_freq max_freq_designated_limit |
| 38 | |
| 39 | ${err_msg}= Catenate Reported CPU frequency above designated limit. |
| 40 | Should Be True ${actual_max_freq} <= ${max_freq_designated_limit} |
| 41 | ... msg=${err_msg} |
| 42 | |
| 43 | Error Logs Should Not Exist |
| 44 | |
Steven Sombar | aaf72c4 | 2017-09-05 12:02:00 -0500 | [diff] [blame] | 45 | |
| 46 | *** Keywords *** |
| 47 | |
Steven Sombar | 1dc6fa7 | 2018-01-12 10:58:20 -0600 | [diff] [blame] | 48 | Test Setup Execution |
| 49 | [Documentation] Do the pre-test setup. |
Steven Sombar | aaf72c4 | 2017-09-05 12:02:00 -0500 | [diff] [blame] | 50 | |
Steven Sombar | 1dc6fa7 | 2018-01-12 10:58:20 -0600 | [diff] [blame] | 51 | REST Power On stack_mode=skip |
| 52 | Delete All Error Logs |
| 53 | Tool Exist ppc64_cpu |
| 54 | Tool Exist lscpu |
Steven Sombar | aaf72c4 | 2017-09-05 12:02:00 -0500 | [diff] [blame] | 55 | |
| 56 | |
Steven Sombar | 1dc6fa7 | 2018-01-12 10:58:20 -0600 | [diff] [blame] | 57 | Test Teardown Execution |
| 58 | [Documentation] Do the post-test teardown. |
Steven Sombar | aaf72c4 | 2017-09-05 12:02:00 -0500 | [diff] [blame] | 59 | |
Steven Sombar | 1dc6fa7 | 2018-01-12 10:58:20 -0600 | [diff] [blame] | 60 | ${keyword_buf}= Catenate Stop SOL Console Logging |
| 61 | ... \ targ_file_path=${EXECDIR}${/}logs${/}SOL.log |
| 62 | Run Key ${keyword_buf} |
Steven Sombar | aaf72c4 | 2017-09-05 12:02:00 -0500 | [diff] [blame] | 63 | |
| 64 | FFDC On Test Case Fail |
Steven Sombar | 1dc6fa7 | 2018-01-12 10:58:20 -0600 | [diff] [blame] | 65 | Power Off Host |
Steven Sombar | aaf72c4 | 2017-09-05 12:02:00 -0500 | [diff] [blame] | 66 | Close All Connections |