Steven Sombar | 80bc859 | 2018-04-24 11:44:53 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation 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 | |
| 13 | Resource ../syslib/utils_os.robot |
| 14 | Resource ../lib/rest_client.robot |
| 15 | |
| 16 | |
| 17 | Test Setup Test Setup Execution |
| 18 | Test Teardown Test Teardown Execution |
| 19 | |
| 20 | |
| 21 | *** Test Cases *** |
| 22 | |
| 23 | Test 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 Walsh | c108e42 | 2019-03-28 12:27:18 -0500 | [diff] [blame] | 44 | Printn |
Steven Sombar | 80bc859 | 2018-04-24 11:44:53 -0500 | [diff] [blame] | 45 | 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 | |
| 55 | Test Setup Execution |
| 56 | [Documentation] Do the pre-test setup. |
| 57 | |
| 58 | REST Power Off stack_mode=skip |
| 59 | |
| 60 | |
| 61 | Test 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} |