blob: 9c93a8b345578ea5e7536c9721ba3899e2dc8599 [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
George Keishinga28061a2023-12-15 14:46:54 +053011Resource ../lib/os_utilities.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
George Keishing87dc4422023-10-20 12:56:30 +053017Force Tags Proc_Freq_Check
Steven Sombaraaf72c42017-09-05 12:02:00 -050018
19*** Test Cases ***
20
Steven Sombar1dc6fa72018-01-12 10:58:20 -060021Processor Speed Check
22 [Documentation] Check processor speed.
23 [Tags] Processor_Speed_Check
Steven Sombaraaf72c42017-09-05 12:02:00 -050024
Steven Sombar1dc6fa72018-01-12 10:58:20 -060025 ${actual_min_freq}= Get CPU Min Frequency
26 ${min_freq_designated_lower_limit}= Get CPU Min Frequency Limit
Steven Sombaraaf72c42017-09-05 12:02:00 -050027
Michael Walshc108e422019-03-28 12:27:18 -050028 Printn
Steven Sombar1dc6fa72018-01-12 10:58:20 -060029 Rpvars actual_min_freq min_freq_designated_lower_limit
Steven Sombaraaf72c42017-09-05 12:02:00 -050030
Steven Sombar1dc6fa72018-01-12 10:58:20 -060031 ${err_msg}= Catenate Reported CPU frequency below designated limit.
32 Should Be True ${actual_min_freq} >= ${min_freq_designated_lower_limit}
Steven Sombaraaf72c42017-09-05 12:02:00 -050033 ... msg=${err_msg}
34
Steven Sombar1dc6fa72018-01-12 10:58:20 -060035 ${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 Sombaraaf72c42017-09-05 12:02:00 -050046
47*** Keywords ***
48
Steven Sombar1dc6fa72018-01-12 10:58:20 -060049Test Setup Execution
50 [Documentation] Do the pre-test setup.
Steven Sombaraaf72c42017-09-05 12:02:00 -050051
Steven Sombar1dc6fa72018-01-12 10:58:20 -060052 REST Power On stack_mode=skip
53 Delete All Error Logs
54 Tool Exist ppc64_cpu
55 Tool Exist lscpu
Steven Sombaraaf72c42017-09-05 12:02:00 -050056
57
Steven Sombar1dc6fa72018-01-12 10:58:20 -060058Test Teardown Execution
59 [Documentation] Do the post-test teardown.
Steven Sombaraaf72c42017-09-05 12:02:00 -050060
Steven Sombar1dc6fa72018-01-12 10:58:20 -060061 ${keyword_buf}= Catenate Stop SOL Console Logging
62 ... \ targ_file_path=${EXECDIR}${/}logs${/}SOL.log
63 Run Key ${keyword_buf}
Steven Sombaraaf72c42017-09-05 12:02:00 -050064
65 FFDC On Test Case Fail
Steven Sombar1dc6fa72018-01-12 10:58:20 -060066 Power Off Host
Steven Sombaraaf72c42017-09-05 12:02:00 -050067 Close All Connections