Partager via


Power Manager Notification Messages Test (Compact 2013)

3/26/2014

The Power Manager Notification Messages test verifies messages that are broadcasted when the system power state is changed.

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.

pwrtstmsg.dll

Test library.

Subtests

The table below lists the subtests included in this test.

SubTest ID

Description

1

Prints the usage information for the test suite.

101

Test notification messages for system power state transitions. This test iterates through the supported power states and tries to transition to different power states and then verify that an appropriate notification is sent.

102

Test notification messages for suspend\resume state transition. This test suspends and resumes the system and verifies that the appropriate notification messages are sent.

Setting Up the Test

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

Running the Test

The Power Manager Notification Messages test executes the tux -o -d pwrtstmsg.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 subtests.

Troubleshooting the Test

* The platform must have power managment capabilities.

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

* Ensure that the device is able to resume properly from the suspended state. If the resume does not happen correctly, it may affect the functionality of the device and test results.

See Also

Other Resources

Power Manager Tests