Move energy scale (power) tests to systest.
The energy scale (power) tests boot the OS and read its OCC values.
We put tests dependent on the OS in the systest directory.
Resolves openbmc/openbmc-test-automation#1022
Change-Id: Idbb12bed0b1fb7e7ad1f4eac035dae0c9ed0bbb3
Signed-off-by: Steven Sombar <ssombar@us.ibm.com>
diff --git a/systest/test_power_capping.robot b/systest/test_power_capping.robot
index a1f9d25..709e160 100644
--- a/systest/test_power_capping.robot
+++ b/systest/test_power_capping.robot
@@ -1,11 +1,17 @@
*** Settings ***
Documentation Energy scale power capping tests.
-Resource ../../lib/energy_scale_utils.robot
-Resource ../../lib/rest_client.robot
-Resource ../../lib/openbmc_ffdc.robot
-Resource ../../lib/boot_utils.robot
-Resource ../../lib/ipmi_client.robot
+
+# Acronyms
+# PL Power Limit
+# OCC On Chip Controller
+
+
+Resource ../lib/energy_scale_utils.robot
+Resource ../lib/rest_client.robot
+Resource ../lib/openbmc_ffdc.robot
+Resource ../lib/boot_utils.robot
+Resource ../lib/ipmi_client.robot
Suite Setup Suite Setup Execution
Test Teardown Test Teardown Execution
@@ -15,12 +21,10 @@
Escale System On And PL Enabled
- [Documentation] With system power on, check values with occtoolp9.
+ [Documentation] Change active power limit with system power on and
+ ... Power limit active.
[Tags] Escale_System_On_And_PL_Enabled
- # Implements:
- # - Change Active Power Limit with System Power On and Power Limit Active.
-
REST Power On stack_mode=skip
OCC Tool Upload Setup
@@ -45,13 +49,10 @@
Escale System On And PL Disabled
- [Documentation] With system power on, check values with occtoolp9.
+ [Documentation] Change active power limit with system power on and
+ ... deactivate power limit prior to change.
[Tags] Escale_System_On_And_PL_Disabled
- # Implements:
- # - Change Active Power Limit with System Power On and Deactivate Power
- # Limit Prior to Change.
-
${power_setting}= Set Variable ${600}
REST Power On stack_mode=skip
@@ -72,13 +73,10 @@
Escale Check Settings System On Then Off
- [Documentation] Set power activitation and limit when system
- ... on, then check at power off.
+ [Documentation] Set power limit and activate power limit before
+ ... BMC state is power on.
[Tags] Escale_Check_Settings_System_On_Then_Off
- # Implements:
- # - Set Power Limit and Activate Power Limit Before BMC State is Power On.
-
${power_setting}= Set Variable ${800}
REST Power On stack_mode=skip
@@ -105,13 +103,9 @@
Escale Check Settings System Off Then On
- [Documentation] Set power activitation and limit when system
- ... off, then check at power on.
+ [Documentation] Set and activate power limit with system power off.
[Tags] Escale_Check_Settings_System_Off_Then_On
- # Implements:
- # - Set and Activate Power Limit with System Power Off.
-
${power_setting}= Set Variable ${500}
Smart Power Off
@@ -136,12 +130,9 @@
Escale Change Limit At Runtime
- [Documentation] Change power setting while at runtime.
+ [Documentation] Change power limit at runtime.
[Tags] Escale_Change_Limit_At_Runtime
- # Implements:
- # - Change Power Limit at Runtime.
-
${power_setting}= Set Variable ${600}
Smart Power Off
@@ -160,12 +151,9 @@
Escale Disable And Enable At Runtime
- [Documentation] Disable and enable power at runtime.
+ [Documentation] Disable/enable power limit at runtime.
[Tags] Escale_Disable_And_Enable_At_Runtime
- # Implements:
- # - Disable/Enable Power Limit at Runtime.
-
${power_setting}= Set Variable ${500}
Smart Power Off