Skip to content

Commit

Permalink
Merge branch 'release/1.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
hari22yuva committed Jun 28, 2024
2 parents de4577c + 2e55824 commit 9b5dfa5
Show file tree
Hide file tree
Showing 23 changed files with 3,093 additions and 281 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,19 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [1.2.0](https://github.com/rdkcentral/rdk-halif-test-hdmi_cec/compare/1.1.0...1.2.0)

- gh #24 hdmicec source & sink l2 tests [`#28`](https://github.com/rdkcentral/rdk-halif-test-hdmi_cec/pull/28)
- Feature/issues15 emulator startup [`#21`](https://github.com/rdkcentral/rdk-halif-test-hdmi_cec/pull/21)
- Update [`#19`](https://github.com/rdkcentral/rdk-halif-test-hdmi_cec/pull/19)
- Update with Sink tests [`9655adf`](https://github.com/rdkcentral/rdk-halif-test-hdmi_cec/commit/9655adfc5e492fdeff797b7f0dad0bdd1ad28d91)
- Update based on review discussion [`ab6f668`](https://github.com/rdkcentral/rdk-halif-test-hdmi_cec/commit/ab6f66870bbb3c5fea99a8c429ca74b37ace6b95)
- Update with generated L2 code and specification document [`769045a`](https://github.com/rdkcentral/rdk-halif-test-hdmi_cec/commit/769045a5b17736013d7950f6a4fa746b1e676433)

#### [1.1.0](https://github.com/rdkcentral/rdk-halif-test-hdmi_cec/compare/1.0.4...1.1.0)

> 5 June 2024
- gh #11 hdmi_cec: Test Profile: Adding MACRO ENABLE_ENHANCED_ERROR_CODE to enalbe/disable the enhanced error code tests [`#12`](https://github.com/rdkcentral/rdk-halif-test-hdmi_cec/pull/12)
- Capture the YAML Template and design for CEC Emulator [`#8`](https://github.com/rdkcentral/rdk-halif-test-hdmi_cec/pull/8)
- Create hdmi_cec_emulator_design.md [`84741c3`](https://github.com/rdkcentral/rdk-halif-test-hdmi_cec/commit/84741c312dfc3b9ff96ec79ad1a93e2fd1e2565a)
Expand Down
26 changes: 22 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ TOP_DIR := $(ROOT_DIR)
SRC_DIRS = $(ROOT_DIR)/src
INC_DIRS := $(ROOT_DIR)/../include
HAL_LIB := RCECHal
VCOMPONENT_SRCS := $(ROOT_DIR)/vcomponent/src/vcomponent_hdmi_cec.c
SKELTON_SRCS := $(ROOT_DIR)/skeletons/src/hdmi_cec_driver.c

ifeq ($(TARGET),)
Expand All @@ -54,6 +55,17 @@ SETUP_SKELETON_LIBS := skeleton
endif
endif

ifeq ($(TARGET),vcomponent)
HAL_LIB_DIR := $(ROOT_DIR)/libs
YLDFLAGS = -Wl,-rpath,$(HAL_LIB_DIR) -L$(HAL_LIB_DIR) -l$(HAL_LIB) -lpthread -lrt
INC_DIRS += $(ROOT_DIR)/vcomponent/include
SETUP_SKELETON_LIBS := vcomponent
XCFLAGS = -DVCOMPONENT
export XCFLAGS
endif



.PHONY: clean list all

export YLDFLAGS
Expand All @@ -64,13 +76,13 @@ export TARGET
export TOP_DIR
export HAL_LIB_DIR

.PHONY: clean list build skeleton

.PHONY: clean list build vcomponent

build: $(SETUP_SKELETON_LIBS)
echo "SETUP_SKELETON_LIBS $(SETUP_SKELETON_LIBS)"
@echo UT [$@]
make -C ./ut-core
make -C ./ut-core framework
make -C ./ut-core test

#Build against the real library leads to the SOC library dependency also.SOC lib dependency cannot be specified in the ut Makefile, since it is supposed to be common across may platforms. So in order to over come this situation, creating a template skelton library with empty templates so that the template library wont have any other Soc dependency. And in the real platform mount copy bind with the actual library will work fine.
skeleton:
Expand All @@ -79,11 +91,17 @@ skeleton:
mkdir -p $(HAL_LIB_DIR)
cp $(ROOT_DIR)/lib$(HAL_LIB).so $(HAL_LIB_DIR)

vcomponent:
echo $(CC)
$(CC) -fPIC -shared -I$(ROOT_DIR)/../include -I$(ROOT_DIR)/vcomponent/include -I$(ROOT_DIR)/ut-core/include -I$(ROOT_DIR)/ut-core/framework/ut-control/include $(VCOMPONENT_SRCS) -o lib$(HAL_LIB).so
mkdir -p $(HAL_LIB_DIR)
cp $(ROOT_DIR)/lib$(HAL_LIB).so $(HAL_LIB_DIR)


list:
@echo UT [$@]
make -C ./ut-core list

clean:
@echo UT [$@]
make -C ./ut-core clean
make -C ./ut-core cleanall
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,29 @@

## Acronyms, Terms and Abbreviations

- `L1` - Functional Tests
- `HAL`- Hardware Abstraction Layer
- `HDMI` - High Definition Multimedia Interface
- `CEC` - Consumer Electronics Control
- `L1` - Functional Tests
- `L2` - Functional Tests

## Description

This repository contains the Unit Test Suites (L1) for HDMI CEC `HAL`.
This repository contains the Unit Test Suites for HDMI CEC `HAL`.

## Reference Documents

<!-- Need to update links to rdkcentral and point to branch main-->
|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|[hdmi-cec_halSpec.md](https://github.com/rdkcentral/rdk-halif-hdmi_cec/blob/main/docs/pages/hdmi-cec_halSpec.md "hdmi-cec_halSpec.md")|
|2|`L1` Tests |`L1` Test Case File for this module |[test_l1_hdmi_cec_driver.c](https://github.com/rdkcentral/rdk-halif-test-hdmi_cec/blob/main/src/test_l1_hdmi_cec_driver.c "test_l1_hdmi_cec_driver.c")|
|1|`HAL` Specification Document|This document provides specific information on the APIs for which tests are written in this module|[hdmi-cec_halSpec.md](https://github.com/rdkcentral/rdk-halif-hdmi_cec/blob/main/docs/pages/hdmi-cec_halSpec.md)|
|2|High Level Test Spec for sink device|High Level Test Specification Documentation for the `HDMI` `CEC` Sink device|[hdmi-cec-sink_High-Level_TestSpec.md](docs/pages/hdmi-cec-sink_High-Level_TestSpec.md )|
|3|`L2` Low Level Test Spec for sink device|`L2` Low Level Test Specification and Procedure Documentation for the `HDMI` `CEC` Sink device|[hdmi-cec-sink_L2_Low-Level_TestSpec.md](docs/pages/hdmi-cec-sink_L2_Low-Level_TestSpec.md)|
|4|High Level Test Spec for Source device|High Level Test Specification Documentation for the `HDMI` `CEC` Source device|[hdmi-cec-source_High-Level_TestSpec.md](docs/pages/hdmi-cec-source_High-Level_TestSpec.md)|
|5|`L2` Low Level Test Spec for Source device|`L2` Low Level Test Specification and Procedure Documentation for the `HDMI` `CEC` Source device|[hdmi-cec-source_L2_Low-Level_TestSpec.md](docs/pages/hdmi-cec-source_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 HDMI_CEC_IO_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 running the binary, remember to include a profile file as an argument for designated test cases. The following example illustrates this: `./hal_test -p hdmiCECExtendedEnumsNotSupported.yaml`
- Profiles file available in [profile yaml file](./profiles/hdmiCECExtendedEnumsNotSupported.yaml)
- When running the binary, remember to include a profile file as an argument for designated test cases. The following example illustrates this: `./hal_test -p sink_hdmiCEC.yml`
- Profiles file available in [profile yaml file](./profiles/)
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ NC="\e[39m"
# When the major version changes in the ut-core, what that signals is that the testings will have to be upgraded to support that version
# Therefore in that case it warns you but doesnt' chnage to that version, which could cause your tests to break.
# Change this to upgrade your UT-Core Major versions. Non ABI Changes 1.x.x are supported, between major revisions
UT_PROJECT_MAJOR_VERSION="2."
UT_PROJECT_MAJOR_VERSION="3."

# Clone the Unit Test Requirements
[email protected]:rdkcentral/ut-core.git
Expand Down Expand Up @@ -60,7 +60,7 @@ else
check_next_revision
cd ./ut-core
git checkout ${UT_CORE_PROJECT_VERSION}
./build.sh
./build.sh $@
cd ..
./${0} $@
fi
Loading

0 comments on commit 9b5dfa5

Please sign in to comment.