{"id":38499311,"url":"https://github.com/rdkcentral/rdk-halif-test-deepsleep_manager","last_synced_at":"2026-01-17T05:57:56.358Z","repository":{"id":211280702,"uuid":"706779516","full_name":"rdkcentral/rdk-halif-test-deepsleep_manager","owner":"rdkcentral","description":"RDK Deep sleep Manager Hardware Abstraction Layer test suite","archived":false,"fork":false,"pushed_at":"2025-10-01T10:33:07.000Z","size":238,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-10-01T11:32:17.898Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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:04.000Z","updated_at":"2025-09-30T15:24:46.000Z","dependencies_parsed_at":"2026-01-07T13:00:54.186Z","dependency_job_id":null,"html_url":"https://github.com/rdkcentral/rdk-halif-test-deepsleep_manager","commit_stats":null,"previous_names":["rdkcentral/rdk-halif-test-deepsleep_manager"],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/rdkcentral/rdk-halif-test-deepsleep_manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdkcentral%2Frdk-halif-test-deepsleep_manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdkcentral%2Frdk-halif-test-deepsleep_manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdkcentral%2Frdk-halif-test-deepsleep_manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdkcentral%2Frdk-halif-test-deepsleep_manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rdkcentral","download_url":"https://codeload.github.com/rdkcentral/rdk-halif-test-deepsleep_manager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdkcentral%2Frdk-halif-test-deepsleep_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:56.253Z","updated_at":"2026-01-17T05:57:56.343Z","avatar_url":"https://github.com/rdkcentral.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unit Testing Suite For Deep Sleep 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 and L3 automation test cases](#setting-python-environment-for-running-the-l1-l2-and-l3-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- `L3` - Module testing with External Stimulus is required to validate and control device\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` , `L2` and `L3`) for Deep Sleep 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|[deepsleep-manager_halSpec.md](https://github.com/rdkcentral/rdk-halif-deepsleep_manager/blob/main/docs/pages/deepsleep-manager_halSpec.md)|\n|2|High Level Test Specification Document|High Level Test Specification Documentation this module|[deep-sleep-manager_High-Level_TestSpec.md](docs/pages/deep-sleep-manager_High-Level_TestSpec.md)|\n|3|`L2` Low Level Test Specification Document|`L2`Low Level Test Specification Documentation this module|[deep-sleep-manager_L2-Low-Level_TestSpec.md](docs/pages/deep-sleep-manager_L2-Low-Level_TestSpec.md)|\n|4|`L1` and `L2` Test Procedure Document|`L1` and `L2` Test Procedure Document|[deep-sleep-manager_L1_L2_TestProcedure.md](docs/pages/deep-sleep-manager_L1_L2_TestProcedure.md)|\n|5|`L3` Low Level Test Spec|`L3` Low Level Test Specification|[deep-sleep-manager_L3-Low-Level_TestSpec.md](docs/pages/deep-sleep-manager_L3-Low-Level_TestSpec.md)|\n|6|`L3` Test Procedure Document|`L3` Test Procedure Document|[deep-sleep-manager_L3_TestProcedure.md](docs/pages/deep-sleep-manager_L3_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 DEEPSLEEPMGR_SUCCESS 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-deepsleep_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-deepsleep-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-deepsleep-hal -p deepsleepmanagerExtendedEnumsNotSupported.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\n- Profiles file available in [here](./profiles/deepsleepmanagerWakeUpSources.yaml)\n\n### Setting Python environment for running the `L1` `L2` and `L3` automation test cases\n\n- For running the `L1` `L2` and `L3` test suite, a host PC or server with a Python environment is required.\n- Install Python Environment and Activation Scripts as detailed in the [HPK Documentation](https://github.com/rdkcentral/rdk-hpk-documentation/blob/main/README.md)\n- To run the `L1` `L2` test cases follow the [deep-sleep-manager_L1_L2_TestProcedure.md](docs/pages/deep-sleep-manager_L1_L2_TestProcedure.md)\n- To run the `L3` test cases follow the [deep-sleep-manager_L3_TestProcedure.md](docs/pages/deep-sleep-manager_L3_TestProcedure.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdkcentral%2Frdk-halif-test-deepsleep_manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frdkcentral%2Frdk-halif-test-deepsleep_manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdkcentral%2Frdk-halif-test-deepsleep_manager/lists"}