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 | |
George Keishing | a28061a | 2023-12-15 14:46:54 +0530 | [diff] [blame] | 11 | Resource ../lib/os_utilities.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 | |
George Keishing | 87dc442 | 2023-10-20 12:56:30 +0530 | [diff] [blame] | 17 | Force Tags Proc_Freq_Check |
Steven Sombar | aaf72c4 | 2017-09-05 12:02:00 -0500 | [diff] [blame] | 18 | |
| 19 | *** Test Cases *** |
| 20 | |
Steven Sombar | 1dc6fa7 | 2018-01-12 10:58:20 -0600 | [diff] [blame] | 21 | Processor Speed Check |
| 22 | [Documentation] Check processor speed. |
| 23 | [Tags] Processor_Speed_Check |
Steven Sombar | aaf72c4 | 2017-09-05 12:02:00 -0500 | [diff] [blame] | 24 | |
Steven Sombar | 1dc6fa7 | 2018-01-12 10:58:20 -0600 | [diff] [blame] | 25 | ${actual_min_freq}= Get CPU Min Frequency |
| 26 | ${min_freq_designated_lower_limit}= Get CPU Min Frequency Limit |
Steven Sombar | aaf72c4 | 2017-09-05 12:02:00 -0500 | [diff] [blame] | 27 | |
Michael Walsh | c108e42 | 2019-03-28 12:27:18 -0500 | [diff] [blame] | 28 | Printn |
Steven Sombar | 1dc6fa7 | 2018-01-12 10:58:20 -0600 | [diff] [blame] | 29 | Rpvars actual_min_freq min_freq_designated_lower_limit |
Steven Sombar | aaf72c4 | 2017-09-05 12:02:00 -0500 | [diff] [blame] | 30 | |
Steven Sombar | 1dc6fa7 | 2018-01-12 10:58:20 -0600 | [diff] [blame] | 31 | ${err_msg}= Catenate Reported CPU frequency below designated limit. |
| 32 | Should Be True ${actual_min_freq} >= ${min_freq_designated_lower_limit} |
Steven Sombar | aaf72c4 | 2017-09-05 12:02:00 -0500 | [diff] [blame] | 33 | ... msg=${err_msg} |
| 34 | |
Steven Sombar | 1dc6fa7 | 2018-01-12 10:58:20 -0600 | [diff] [blame] | 35 | ${actual_max_freq}= Get CPU Max Frequency |
| 36 | ${max_freq_designated_limit}= Get CPU Max Frequency Limit |
| 37 | |
| 38 | Rpvars actual_max_freq max_freq_designated_limit |
| 39 | |
| 40 | ${err_msg}= Catenate Reported CPU frequency above designated limit. |
| 41 | Should Be True ${actual_max_freq} <= ${max_freq_designated_limit} |
| 42 | ... msg=${err_msg} |
| 43 | |
| 44 | Error Logs Should Not Exist |
| 45 | |
Steven Sombar | aaf72c4 | 2017-09-05 12:02:00 -0500 | [diff] [blame] | 46 | |
| 47 | *** Keywords *** |
| 48 | |
Steven Sombar | 1dc6fa7 | 2018-01-12 10:58:20 -0600 | [diff] [blame] | 49 | Test Setup Execution |
| 50 | [Documentation] Do the pre-test setup. |
Steven Sombar | aaf72c4 | 2017-09-05 12:02:00 -0500 | [diff] [blame] | 51 | |
Steven Sombar | 1dc6fa7 | 2018-01-12 10:58:20 -0600 | [diff] [blame] | 52 | REST Power On stack_mode=skip |
| 53 | Delete All Error Logs |
| 54 | Tool Exist ppc64_cpu |
| 55 | Tool Exist lscpu |
Steven Sombar | aaf72c4 | 2017-09-05 12:02:00 -0500 | [diff] [blame] | 56 | |
| 57 | |
Steven Sombar | 1dc6fa7 | 2018-01-12 10:58:20 -0600 | [diff] [blame] | 58 | Test Teardown Execution |
| 59 | [Documentation] Do the post-test teardown. |
Steven Sombar | aaf72c4 | 2017-09-05 12:02:00 -0500 | [diff] [blame] | 60 | |
Steven Sombar | 1dc6fa7 | 2018-01-12 10:58:20 -0600 | [diff] [blame] | 61 | ${keyword_buf}= Catenate Stop SOL Console Logging |
| 62 | ... \ targ_file_path=${EXECDIR}${/}logs${/}SOL.log |
| 63 | Run Key ${keyword_buf} |
Steven Sombar | aaf72c4 | 2017-09-05 12:02:00 -0500 | [diff] [blame] | 64 | |
| 65 | FFDC On Test Case Fail |
Steven Sombar | 1dc6fa7 | 2018-01-12 10:58:20 -0600 | [diff] [blame] | 66 | Power Off Host |
Steven Sombar | aaf72c4 | 2017-09-05 12:02:00 -0500 | [diff] [blame] | 67 | Close All Connections |