/rdk-halif-test-power_manager

RDK Power Hardware Abstraction Layer Test Suite

Primary LanguageCApache License 2.0Apache-2.0

Unit Testing Suite For Power Manager HAL

Table of Contents

Acronyms, Terms and Abbreviations

  • HAL- Hardware Abstraction Layer
  • L1 - Functional Tests
  • L2 - Module functional Testing
  • High-Level Test Specification : These specification will provide a broad overview of the system's functionality from the callers' perspective. It focuses on major use cases, system behavior, and overall caller experience.
  • Low-Level Test Specification : These specification will delve deeper into the technical details. They will define specific test cases with inputs, expected outputs, and pass/fail criteria for individual functionalities, modules, or APIs.

Description

This repository contains the Unit Test Suites (L1 & L2) for Power Manager HAL.

Reference Documents

SNo Document Name Document Description Document Link
1 HAL Specification Document This document provides specific information on the APIs for which tests are written in this module power-manager_halSpec.md
2 High Level Test Specification High Level Test Specification Documentation this module power-manager_High-Level_TestSpec.md
3 L2 Low Level Test Specification L2Low Level Test Specification Documentation this module power-manager_L2_Low-Level_TestSpec.md

Notes

  • All APIs need to be implemented in this current version. If any API is not supported, please add stub implementation with return type PWRMGR_OPERATION_NOT_SUPPORTED for the same.
  • Building against the actual library may introduce SOC dependencies. Hence, a template SKELETON library is created without SOC dependencies. On the real platform (target), it can be mounted, copied and bound with the actual library.
  • When executing the binary, ensure to include a platform-specific profile file as an argument for the designated test cases. The following example illustrates this:
./hal_test -p sink_powerManager.yaml

Alternatively, use the run.sh script with the profile file:

./run.sh -p /absolute/path/to/profile/file