blob: 30c92476237a4f05392e5159805880f69991ac0d [file] [log] [blame]
Steven Sombar80bc8592018-04-24 11:44:53 -05001*** Settings ***
2
3Documentation Compare processor speed in turbo and non-turbo modes.
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# Approximate run time: 8 minutes.
12
13Resource ../syslib/utils_os.robot
14Resource ../lib/rest_client.robot
15
16
17Test Setup Test Setup Execution
18Test Teardown Test Teardown Execution
19
20
21*** Test Cases ***
22
23Test Turbo Processor Speed
24 [Documentation] Compare turbo and non-turbo speed.
25 [Tags] Turbo_Processor_Speed_Test
26
27 # Disable turbo mode.
28 Set Turbo Setting Via REST 0 verify=${True}
29
30 Start SOL Console Logging
31 REST Power On stack_mode=normal
32 Tool Exist ppc64_cpu
33
34 ${proc_speed_non_turbo}= Get CPU Max Frequency
35
36 Rest Power Off
37
38 # Enable turbo mode.
39 Set Turbo Setting Via REST 1 verify=${True}
40
41 REST Power On stack_mode=normal
42 ${proc_speed_turbo}= Get CPU Max Frequency
43
Michael Walshc108e422019-03-28 12:27:18 -050044 Printn
Steven Sombar80bc8592018-04-24 11:44:53 -050045 Rpvars proc_speed_non_turbo proc_speed_turbo
46
47 ${err_msg}= Catenate Reported turbo processor speed should be
48 ... greater than non-turbo speed.
49 Should Be True ${proc_speed_turbo} > ${proc_speed_non_turbo}
50 ... msg=${err_msg}
51
52
53*** Keywords ***
54
55Test Setup Execution
56 [Documentation] Do the pre-test setup.
57
58 REST Power Off stack_mode=skip
59
60
61Test Teardown Execution
62 [Documentation] Do the post-test teardown.
63
64 FFDC On Test Case Fail
65
66 ${keyword_buf}= Catenate Stop SOL Console Logging
67 ... \ targ_file_path=${EXECDIR}${/}logs${/}SOL.log
68 Run Key ${keyword_buf}