Compartir a través de


Power Manager State Transition Tests (Compact 2013)

3/26/2014

The Power Manager State Transition Tests verify the state transitions between different supported system power states. The tests include power state supported by both the DEFAULT and PDA power models.

Test Prerequisites

Your device must meet the following requirements before you run this test.

The following prerequisites are required for this test.

Hardware Prerequisites:

In order to run the test, the platform and/or device drivers should have power management capabilities.

Software Prerequisites:

Having the SYSGEN_PM sysgen variable set when building your OS image will include the Power Manager.

The following table shows the software requirements for this test.

Requirement

Description

Tux.exe

Tux test harness that executes the test.

Kato.dll

Logging engine that logs test data.

testutildrv.dll

Utility driver to handle setting RTC wake source for suspend/resume

pwrdrvr.dll

Sample power managed device driver used during test

pwrtsttransitions.dll

Power Manager State Transition Test DLL.

Subtests

The table below lists the subtests included in this test.

SubTest ID

Description

101

Test On state.

This test will verify remaining in the On state when different events occur. This test is for images using the PDA power model only.

102

Test transitions to and from BacklightOff state.

This test will verify transitions to and from the BacklightOff state. This test is for images using the PDA power model only.

103

Test transitions to and from UserIdle state.

This test will verify transitions to and from the UserIdle state. This test is for images using the PDA power model only.

104

Test transitions to and from ScreenOff state.

This test will verify transitions to and from the ScreenOff state. This test is for images using the PDA power model only.

201

Test On state.

This test will verify remaining in the On state when different events occur. This test is for images using the DEFAULT power model only.

202

Test transitions to and from UserIdle state.

This test will verify transitions to and from the UserIdle state. This test is for images using the DEFAULT power model only.

203

Test transitions to and from SystemIdle state.

This test will verify transitions to and from the SystemIdle state. This test is for images using the DEFAULT power model only.

204

Test transitions to and from Suspend state.

This test will verify transitions to and from the Suspend state. This test is for images using the DEFAULT power model only.

Setting Up the Test

This test has no additional requirements beyond the standard test environment setup.

Running the Test

The Power Manager State Transition Test executes the tux -o -d pwrtsttransitions.dll command line by default.

This test library can have one or more optional command line entries to change the behavior of the test. To specify one or more command line entries to the test library, you must use the -c command-line option. This option forces Tux to pass the specified string into the test library.

The following table shows the optional command line parameters for this test.

Command Line Parameter

Description

AllowSuspend

Allows the tests to suspend the system.

PdaVersion

Informs the tests that this is a PDA-type device which tests a separate set of system power states.

Verifying the Test

When the test completes running, verify that "PASS" appears in the test log for all sub-tests.

Troubleshooting the Test

* The platform must have power management capabilities.

* The platform must support the standard power states used in this test which target the DEFAULT and PDA versions of the Power Manager.

See Also

Other Resources

Power Manager Tests