Skip to content

Power Manager High Level Test Specification Documentation

Acronyms, Terms and Abbreviations

  • HAL - Hardware Abstraction Layer
  • API - Application Programming Interface
  • L2 - Level 2 Testing ()
  • L3 - Level 3 Testing ()
  • IR - Infrared
  • CEC - Consumer Electronics Control
  • LAN - Local Area Network
  • NA - Not Applicable
  • Y - Yes

Introduction

This document provides an overview of High Level testing requirements for the Power Manager module. It outlines the scope of testing, objectives, testing levels and approaches, specific test requirements, control plane emulator requirements and expected deliverables.

Interface of the test is available here: Power Manager HAL header

The Power manager Hal Spec document: Power Manager HAL Spec

Testing Scope

# Test Functionality Description
1 Set And Get Power States Power Manager should set the power state provided by caller and same should be retrieved
2 Set and Get Status of Wakeup Sources Power Manager should set the wakeup source provided by caller and same should be retrieved
3 Testing Wakeup Source Power manager should accept the supported wakeup sources and device should wakeup from standby/sleep modes using wakeup sources set by caller
4 Test Reset Functionality Power manager should reboot the device

Emulator Requirements

  • Boot configuration: Wakeup sources supported by the device. See DeepSleep_WakeupReason_t.

Set And Get Power States

Description HAL APIs L2 L3 Control plane requirements
Set various power states and retrieve it for verification based on the platform configuration file. For source devices, check with the "source_powerManager.yaml" using the path "powermanager.PowerStates" and for sink devices, check with the "sink_powerManager.yaml" using the path "powermanager.PowerStates" PLAT_API_SetPowerState, PLAT_API_GetPowerState Y NA NA

Test Startup Requirement - Set And Get Power States

NA

Emulator Requirements - Set And Get Power States

NA

Control Plane Requirements - Set And Get Power States

NA

Set and Get Status of Wakeup Sources

Description HAL APIs L2 L3 Control plane requirements
Set status of various wakeup sources and retrieves status for verification based on the platform configuration. For source devices, check with the "source_powerManager.yaml" using the path "powermanager.WakeupSources" and for sink devices, check with the "sink_powerManager.yaml" using the path "powermanager.WakeupSources" PLAT_API_SetWakeupSrc, PLAT_API_GetWakeupSrc Y NA NA

Test Startup Requirement - Set and Get Status of Wakeup Sources

NA

Emulator Requirements - Set and Get Status of Wakeup Sources

Emulator Requirements

Control Plane Requirements - Set and Get Status of Wakeup Sources

NA

Testing Wakeup Source

Testing the wake-up sources is already done within the deep-sleep L3 test specification.

Test Reset Functionality

This function is depreciated and we are not testing depreciated functions.