blob: d37e9f88be7384af3f3f184ef82fe91e6fbe35d1 [file] [log] [blame]
Steven Sombaraaf72c42017-09-05 12:02:00 -05001*** Settings ***
2
Steven Sombar1dc6fa72018-01-12 10:58:20 -06003Documentation Check processor speed.
Steven Sombaraaf72c42017-09-05 12:02:00 -05004
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
11Resource ../syslib/utils_os.robot
Steven Sombaraaf72c42017-09-05 12:02:00 -050012
Steven Sombar1dc6fa72018-01-12 10:58:20 -060013Suite Setup Run Keyword Start SOL Console Logging
14Test Setup Test Setup Execution
15Test Teardown Test Teardown Execution
Steven Sombaraaf72c42017-09-05 12:02:00 -050016
17
18*** Test Cases ***
19
Steven Sombar1dc6fa72018-01-12 10:58:20 -060020Processor Speed Check
21 [Documentation] Check processor speed.
22 [Tags] Processor_Speed_Check
Steven Sombaraaf72c42017-09-05 12:02:00 -050023
Steven Sombar1dc6fa72018-01-12 10:58:20 -060024 ${actual_min_freq}= Get CPU Min Frequency
25 ${min_freq_designated_lower_limit}= Get CPU Min Frequency Limit
Steven Sombaraaf72c42017-09-05 12:02:00 -050026
Michael Walshc108e422019-03-28 12:27:18 -050027 Printn
Steven Sombar1dc6fa72018-01-12 10:58:20 -060028 Rpvars actual_min_freq min_freq_designated_lower_limit
Steven Sombaraaf72c42017-09-05 12:02:00 -050029
Steven Sombar1dc6fa72018-01-12 10:58:20 -060030 ${err_msg}= Catenate Reported CPU frequency below designated limit.
31 Should Be True ${actual_min_freq} >= ${min_freq_designated_lower_limit}
Steven Sombaraaf72c42017-09-05 12:02:00 -050032 ... msg=${err_msg}
33
Steven Sombar1dc6fa72018-01-12 10:58:20 -060034 ${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 Sombaraaf72c42017-09-05 12:02:00 -050045
46*** Keywords ***
47
Steven Sombar1dc6fa72018-01-12 10:58:20 -060048Test Setup Execution
49 [Documentation] Do the pre-test setup.
Steven Sombaraaf72c42017-09-05 12:02:00 -050050
Steven Sombar1dc6fa72018-01-12 10:58:20 -060051 REST Power On stack_mode=skip
52 Delete All Error Logs
53 Tool Exist ppc64_cpu
54 Tool Exist lscpu
Steven Sombaraaf72c42017-09-05 12:02:00 -050055
56
Steven Sombar1dc6fa72018-01-12 10:58:20 -060057Test Teardown Execution
58 [Documentation] Do the post-test teardown.
Steven Sombaraaf72c42017-09-05 12:02:00 -050059
Steven Sombar1dc6fa72018-01-12 10:58:20 -060060 ${keyword_buf}= Catenate Stop SOL Console Logging
61 ... \ targ_file_path=${EXECDIR}${/}logs${/}SOL.log
62 Run Key ${keyword_buf}
Steven Sombaraaf72c42017-09-05 12:02:00 -050063
64 FFDC On Test Case Fail
Steven Sombar1dc6fa72018-01-12 10:58:20 -060065 Power Off Host
Steven Sombaraaf72c42017-09-05 12:02:00 -050066 Close All Connections