{"id":38499166,"url":"https://github.com/rdkcentral/rdk-halif-test-power_manager","last_synced_at":"2026-01-17T05:57:48.240Z","repository":{"id":212086238,"uuid":"706779929","full_name":"rdkcentral/rdk-halif-test-power_manager","owner":"rdkcentral","description":"RDK Power Hardware Abstraction Layer Test Suite","archived":false,"fork":false,"pushed_at":"2025-11-11T14:34:06.000Z","size":216,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-11-11T16:21:37.861Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rdkcentral.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-10-18T15:46:59.000Z","updated_at":"2025-09-30T15:34:35.000Z","dependencies_parsed_at":"2024-05-30T16:25:16.981Z","dependency_job_id":"27b58dc3-bfe1-40c1-8901-a3aa5c0ae4d8","html_url":"https://github.com/rdkcentral/rdk-halif-test-power_manager","commit_stats":null,"previous_names":["rdkcentral/rdk-halif-test-power_manager"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/rdkcentral/rdk-halif-test-power_manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdkcentral%2Frdk-halif-test-power_manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdkcentral%2Frdk-halif-test-power_manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdkcentral%2Frdk-halif-test-power_manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdkcentral%2Frdk-halif-test-power_manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rdkcentral","download_url":"https://codeload.github.com/rdkcentral/rdk-halif-test-power_manager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdkcentral%2Frdk-halif-test-power_manager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28501351,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T04:31:57.058Z","status":"ssl_error","status_checked_at":"2026-01-17T04:31:45.816Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-17T05:57:48.159Z","updated_at":"2026-01-17T05:57:48.224Z","avatar_url":"https://github.com/rdkcentral.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unit Testing Suite For Power Manager HAL\n\n## Table of Contents\n\n- [Acronyms, Terms and Abbreviations](#acronyms-terms-and-abbreviations)\n- [Description](#description)\n- [Reference Documents](#reference-documents)\n- [How to build the test suite](#how-to-build-the-test-suite)\n- [Notes](#notes)\n- [Manual way of running the L1 and L2 test cases](#manual-way-of-running-the-l1-and-l2-test-cases)\n- [Setting Python environment for running the L1 L2 automation test cases](#setting-python-environment-for-running-the-l1-l2-automation-test-cases)\n\n## Acronyms, Terms and Abbreviations\n\n- `HAL`- Hardware Abstraction Layer\n- `L1` - Functional Tests\n- `L2` - Module functional Testing\n- `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.\n- `Low-Level Test Specification` : These specification will 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.\n\n## Description\n\nThis repository contains the Unit Test Suites (`L1` and `L2`) for Power Manager `HAL`.\n\n## Reference Documents\n\n|SNo|Document Name|Document Description|Document Link|\n|---|-------------|--------------------|-------------|\n|1|`HAL` Specification Document|This document provides specific information on the APIs for which tests are written in this module|[power-manager_halSpec.md](https://github.com/rdkcentral/rdk-halif-power_manager/blob/main/docs/pages/power-manager_halSpec.md)|\n|2|High Level Test Specification |High Level Test Specification Documentation this module |[power-manager_High-Level_TestSpec.md](https://github.com/rdkcentral/rdk-halif-test-power_manager/blob/main/docs/pages/power-manager_High-Level_TestSpec.md)|\n|3|`L2` Low Level Test Specification |`L2`Low Level Test Specification Documentation this module |[power-manager_L2_Low-Level_TestSpec.md](https://github.com/rdkcentral/rdk-halif-test-power_manager/blob/main/docs/pages/power-manager_L2_Low-Level_TestSpec.md)|\n|4|`L1` and `L2` Test Procedure Document|`L1` and `L2` Test Procedure Document|[power-manager_L1_L2_TestProcedure.md](docs/pages/power-manager_L1_L2_TestProcedure.md)|\n\n## Notes\n\n- 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.\n- 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.\n- 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:\n\n## How to build the test suite\n\nIn order to build the test suits, there is a requirement to supply the toolchain, either as a vendor independent toolchain, an SDK, or an RDK Docker Toolchain .\n\nFor more information about RDK Docker Toolchain, please check [RDK Docker Toolchain](https://github.com/rdkcentral/ut-core/wiki/FAQ:-RDK-Docker-Toolchain)\n\n- Export the Toolchain Path:\n\n```bash\nexport TOOLCHAIN_PATH=/opt/toolchains/rdk-glibc-x86_64/sysroots/armv7at2hf-neon-rdk-linux-gnueabi\nexport CC=\"arm-rdk-linux-gnueabi-gcc  -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard --sysroot=$TOOLCHAIN_PATH\"\n```\n\n- Clone the `HAL` Repository:\n\n```bash\ngit clone git@github.com:rdkcentral/rdk-halif-power_manager.git\n```\n\n- Set Project Version:\n\nIf you want to build the test repository with a specific tag or branch, set the UT_PROJECT_VERSION variable accordingly. If not set, the default main branch will be used.\n\n```bash\nexport UT_PROJECT_VERSION=1.0.1  # Build using a specific tag\n```\n\nor\n\n```bash\nexport UT_PROJECT_VERSION=develop  # Build using a specific branch\n```\n\n- Build Targets:\n\n There are two targets for the platform\n\n  1. linux - (default)\n  2. arm - TARGET=arm\n\n```bash\nbuild_ut.sh TARGET=arm\n```\n\n- `build_ut.sh` script will clone the hal-test repo, ut-core and generate a `hal_test_iarmmgrs-power-hal` binary in `ut/bin/` upon successful completion.\n\n### Manual way of running the `L1` and `L2` test cases\n\n```bash\n./hal_test_iarmmgrs-power-hal -p sink_powerManager.yaml\n ```\n\nAlternatively, use the run.sh script with the profile file:\n\n```bash\n./run.sh -p /absolute/path/to/profile/file\n ```\n\nProfiles file available for sink and source at [sink profile yaml file](./profiles/sink/sink_powerManager.yaml) and  [source  profile yaml file](./profiles/source/source_powerManager.yaml)\n\n### Setting Python environment for running the `L1` `L2` automation test cases\n\n- Install Python Environment and Activation Scripts please check the[HPK Documentation](https://github.com/rdkcentral/rdk-hpk-documentation/blob/main/README.md)\n- To run the `L1` `L2` test cases follow the [power-manager_L1_L2_TestProcedure.md](docs/pages/power-manager_L1_L2_TestProcedure.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdkcentral%2Frdk-halif-test-power_manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frdkcentral%2Frdk-halif-test-power_manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdkcentral%2Frdk-halif-test-power_manager/lists"}