Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
bb067c1
RDKEMW-6331 : Fix HdmiCecSink COM-RPC issues
smanes0213 Jul 31, 2025
3eca45b
Update HdmiCecSinkImplementation.cpp
smanes0213 Aug 1, 2025
07bfb4d
Merge branch 'develop' into feature/RDKEMW-6331
smanes0213 Aug 5, 2025
545eac8
Update HdmiCecSinkImplementation.cpp
smanes0213 Aug 5, 2025
152368f
Add debug prints
smanes0213 Aug 5, 2025
94abdce
Merge branch 'develop' into feature/RDKEMW-6331
smanes0213 Aug 7, 2025
571d5d2
Added additional debug prints
smanes0213 Aug 7, 2025
8d0d0c2
resolved compilation errors
smanes0213 Aug 7, 2025
dcab426
Update HdmiCecSinkImplementation.cpp
smanes0213 Aug 7, 2025
6df9055
Resolved value assignment swap
smanes0213 Aug 7, 2025
5d0ce2c
Update HdmiCecSinkImplementation.cpp
smanes0213 Aug 7, 2025
b12baa5
Delete wpeframework.log
smanes0213 Aug 7, 2025
ac4b1c5
update HdmiCecSinkImplementation.h
smanes0213 Aug 8, 2025
c487463
Delete wpelatest.log
smanes0213 Aug 8, 2025
b8a9f0a
Resolved GetActiveRoute length issue
smanes0213 Aug 8, 2025
194d2c9
Merge branch 'develop' into feature/RDKEMW-6331
smanes0213 Aug 11, 2025
83c3ff8
Add additional logging to check SetActivePath functionality
smanes0213 Aug 11, 2025
c8d85b7
Remove all the debug prints from the HdmiCecSink Implementation file.
smanes0213 Aug 12, 2025
678ac0c
Rename the HdmiCecSinkSuccess structure objects.
smanes0213 Aug 13, 2025
409910c
Update HdmiCecSinkImplementation.cpp
smanes0213 Aug 13, 2025
d138e67
Merge branch 'develop' into feature/RDK-55553
smanes0213 Aug 20, 2025
013c963
RDK-55553 : Add L1 & L2 tests for HdmiCecSink plugin
smanes0213 Aug 20, 2025
6ffd182
Update L2-tests.yml
smanes0213 Aug 20, 2025
e245174
Only find CEC package when not building for L2 tests
smanes0213 Aug 20, 2025
7fbca3b
Update L2-tests.yml
smanes0213 Aug 20, 2025
fcab20e
Enable L2 Test
smanes0213 Aug 20, 2025
ab30d4c
Update L2-tests.yml
smanes0213 Aug 20, 2025
5d3f391
Update CMakeLists.txt
smanes0213 Aug 20, 2025
e9fe2fe
Update CMakeLists.txt
smanes0213 Aug 20, 2025
b8d7fa0
Update L2-tests.yml
smanes0213 Aug 28, 2025
76217b8
Merge branch 'develop' into feature/RDK-55553
smanes0213 Aug 29, 2025
1098544
RDK-55553 : Add L1 & L2 tests for HdmiCecSink plugin
smanes0213 Aug 29, 2025
16db385
Update HdmiCecSink_L2Test.cpp
smanes0213 Aug 29, 2025
b251382
Added JSONRPC fixtures and events
smanes0213 Sep 2, 2025
e1f4027
Added JSONRPC fixtures
smanes0213 Sep 2, 2025
715b31e
Merge branch 'develop' into feature/RDK-55553
smanes0213 Sep 2, 2025
ccf623d
Delete testlogs.txt
smanes0213 Sep 2, 2025
ea1bb26
Update HdmiCecSink_L2Test.cpp
smanes0213 Sep 4, 2025
d9e03a5
Merge branch 'develop' into feature/RDK-55553
smanes0213 Sep 4, 2025
5c65ee9
Add Test Fixtures to cover CEC process
smanes0213 Sep 4, 2025
7d0d2c7
Add Test Fixtures to cover CEC process
smanes0213 Sep 4, 2025
f0a7d32
Add Test Fixtures to cover CEC process
smanes0213 Sep 4, 2025
aeb68d0
Move InjectTestFixtures to the end
smanes0213 Sep 4, 2025
8471c23
Update HdmiCecSink_L2Test.cpp
smanes0213 Sep 4, 2025
ce77066
Merge branch 'develop' into feature/RDK-55553
smanes0213 Sep 4, 2025
e5eda5b
Update HdmiCecSink_L2Test.cpp
smanes0213 Sep 5, 2025
26aa9e1
Update HdmiCecSink_L2Test.cpp
smanes0213 Sep 5, 2025
87d882f
Update HdmiCecSink_L2Test.cpp
smanes0213 Sep 5, 2025
5ec5189
Update HdmiCecSink_L2Test.cpp
smanes0213 Sep 5, 2025
5b4ff59
Update HdmiCecSink_L2Test.cpp
smanes0213 Sep 5, 2025
d5014ee
Update HdmiCecSink_L2Test.cpp
smanes0213 Sep 5, 2025
fc05f43
Update HdmiCecSink_L2Test.cpp
smanes0213 Sep 5, 2025
2c17c6d
Update HdmiCecSink_L2Test.cpp
smanes0213 Sep 5, 2025
7d6dec5
Update HdmiCecSink_L2Test.cpp
smanes0213 Sep 5, 2025
42f01f5
Update HdmiCecSink_L2Test.cpp
smanes0213 Sep 5, 2025
1018023
Update HdmiCecSink_L2Test.cpp
smanes0213 Sep 7, 2025
ac69fc4
Update HdmiCecSink_L2Test.cpp
smanes0213 Sep 7, 2025
655e370
Update HdmiCecSink_L2Test.cpp
smanes0213 Sep 7, 2025
974bcbc
Update HdmiCecSink_L2Test.cpp
smanes0213 Sep 7, 2025
e97a117
Resolving L1 Test compilation issues
smanes0213 Sep 8, 2025
56b8e3c
Update test_HdmiCecSink.cpp
smanes0213 Sep 8, 2025
a6ebb0a
Update L1-tests.yml
smanes0213 Sep 8, 2025
676d321
Resolve errors in L1 HdmiCecSink test file
smanes0213 Sep 9, 2025
2b16bed
Update according to latest PowerManagerMock changes
smanes0213 Sep 9, 2025
a50169d
Update L2-tests.yml
smanes0213 Sep 9, 2025
23bdb57
Update HdmiCecSink_L2Test.cpp
smanes0213 Sep 9, 2025
ab29ccd
Merge branch 'develop' into feature/RDK-55553
smanes0213 Sep 9, 2025
15da096
Update HdmiCecSink_L2Test.cpp
smanes0213 Sep 9, 2025
9b08f48
Update L2-tests.yml
smanes0213 Sep 10, 2025
1215062
Update HdmiCecSink_L2Test.cpp
smanes0213 Sep 10, 2025
8854c71
Update L2-tests.yml
smanes0213 Sep 10, 2025
d59f99e
list the pwrmgr_restarted file in the logs
smanes0213 Sep 11, 2025
adee87e
Add adittional logs for checking presence of ui_settings file
smanes0213 Sep 11, 2025
8e5a5a7
Resolve powerstate issue.
smanes0213 Sep 11, 2025
25f5287
Update HdmiCecSink_L2Test.cpp
smanes0213 Sep 11, 2025
6bc0847
Update L2-tests.yml
smanes0213 Sep 11, 2025
cee49cc
increase coverage
smanes0213 Sep 12, 2025
334345e
increase coverage
smanes0213 Sep 12, 2025
9ea0d44
Update HdmiCecSink_L2Test.cpp
smanes0213 Sep 12, 2025
106ee71
Update HdmiCecSink_L2Test.cpp
smanes0213 Sep 12, 2025
17d5bf6
Update HdmiCecSink_L2Test.cpp
smanes0213 Sep 12, 2025
dd283cd
Update HdmiCecSink_L2Test.cpp
smanes0213 Sep 12, 2025
03eface
Increase Coverage
smanes0213 Sep 12, 2025
99e49af
Increase Coverage
smanes0213 Sep 12, 2025
62fce1b
Increase Coverage
smanes0213 Sep 12, 2025
9f9b3cb
Increase Coverage
smanes0213 Sep 12, 2025
c5630d3
Increase Coverage
smanes0213 Sep 12, 2025
36d8a85
Increase Coverage
smanes0213 Sep 12, 2025
8713080
Increase Coverage
smanes0213 Sep 12, 2025
9fec898
Increase Coverage
smanes0213 Sep 12, 2025
b9eba86
Increase Coverage
smanes0213 Sep 12, 2025
0b6f0c1
Add description to test fixtures
smanes0213 Sep 12, 2025
84218a5
Add description to test fixtures
smanes0213 Sep 12, 2025
e06d930
Add description to test fixtures
smanes0213 Sep 12, 2025
cba93f2
Add description to test fixtures
smanes0213 Sep 12, 2025
9ba96ce
Add description to test fixtures
smanes0213 Sep 12, 2025
1de0da4
Add new implementation changes
smanes0213 Sep 15, 2025
8da6006
Update test_HdmiCecSource.cpp
smanes0213 Sep 15, 2025
2ba995c
remove unwanted changes from CMakeLists.txt
smanes0213 Sep 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/L1-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ jobs:
with:
repository: rdkcentral/entservices-testframework
path: entservices-testframework
ref: develop
ref: feature/RDK-55553
token: ${{ secrets.RDKCM_RDKE }}

- name: Checkout entservices-inputoutput
Expand Down Expand Up @@ -176,6 +176,7 @@ jobs:
patch -p1 < $GITHUB_WORKSPACE/entservices-testframework/patches/error_code_R4_4.patch
patch -p1 < $GITHUB_WORKSPACE/entservices-testframework/patches/1004-Add-support-for-project-dir.patch
patch -p1 < $GITHUB_WORKSPACE/entservices-testframework/patches/RDKEMW-733-Add-ENTOS-IDS.patch
patch -p1 < $GITHUB_WORKSPACE/entservices-testframework/patches/Jsonrpc_dynamic_error_handling.patch
cd -

- name: Build Thunder
Expand Down Expand Up @@ -252,6 +253,7 @@ jobs:
ccec/MessageProcessor.hpp
ccec/CECFrame.hpp
ccec/MessageEncoder.hpp
ccec/CCEC.hpp
ccec/host/RDK.hpp
rdk/ds/audioOutputPort.hpp
rdk/ds/compositeIn.hpp
Expand Down Expand Up @@ -462,7 +464,7 @@ jobs:
-DRDK_SERVICES_L1_TEST=ON
-DPLUGIN_AVINPUT=ON
-DPLUGIN_HDCPPROFILE=ON
-DPLUGIN_HDMICECSOURCE=ON
-DPLUGIN_HDMICECSOURCE=OFF
-DPLUGIN_HDMICECSINK=ON
-DUSE_THUNDER_R4=ON
-DHIDE_NON_EXTERNAL_SYMBOLS=OFF
Expand Down
169 changes: 163 additions & 6 deletions .github/workflows/L2-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@
path: ThunderTools
ref: R4.4.3

- name: Checkout entservices-deviceanddisplay
uses: actions/checkout@v3
with:
repository: rdkcentral/entservices-deviceanddisplay
path: entservices-deviceanddisplay
ref: develop

- name: Checkout entservices-inputoutput
if: ${{ inputs.caller_source == 'local' }}
uses: actions/checkout@v3
Expand All @@ -100,14 +107,14 @@
with:
repository: rdkcentral/entservices-inputoutput
path: entservices-inputoutput
ref: develop
ref: feature/RDKEMW-55553

- name: Checkout entservices-testframework
uses: actions/checkout@v3
with:
repository: rdkcentral/entservices-testframework
path: entservices-testframework
ref: develop
ref: feature/RDK-55553
token: ${{ secrets.RDKCM_RDKE }}

- name: Checkout googletest
Expand Down Expand Up @@ -169,7 +176,7 @@
with:
repository: rdkcentral/entservices-apis
path: entservices-apis
ref: ${{env.INTERFACES_REF}}
ref: develop
run: rm -rf $GITHUB_WORKSPACE/entservices-apis/jsonrpc/DTV.json

- name: Build entservices-apis
Expand Down Expand Up @@ -197,6 +204,8 @@
headers/rdk/iarmmgrs-hal
headers/systemservices
headers/systemservices/proc
headers/ccec/drivers
headers/ccec/host
&&
cd headers
&&
Expand Down Expand Up @@ -252,6 +261,17 @@
rdk/ds/AudioStereoMode.hpp
rdk/ds/VideoDFC.hpp
dsRpc.h
ccec/drivers/CecIARMBusMgr.h
ccec/FrameListener.hpp
ccec/Connection.hpp
ccec/Assert.hpp
ccec/Messages.hpp
ccec/MessageDecoder.hpp
ccec/MessageProcessor.hpp
ccec/CECFrame.hpp
ccec/CCEC.hpp
ccec/MessageEncoder.hpp
ccec/host/RDK.hpp
&&
cp -r /usr/include/gstreamer-1.0/gst /usr/include/glib-2.0/* /usr/lib/x86_64-linux-gnu/glib-2.0/include/* /usr/local/include/trower-base64/base64.h /usr/include/libdrm/drm.h /usr/include/libdrm/drm_mode.h /usr/include/xf86drm.h .

Expand Down Expand Up @@ -292,13 +312,137 @@
-DCMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake"
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
-DCMAKE_CXX_FLAGS="
-fprofile-arcs
-ftest-coverage
-DEXCEPTIONS_ENABLE=ON
-DUSE_THUNDER_R4=ON
-DTHUNDER_VERSION=4
-DTHUNDER_VERSION_MAJOR=4
-DTHUNDER_VERSION_MINOR=4
-DRDK_SERVICES_L1_TEST
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers
-I $GITHUB_WORKSPACE/install/usr/include"
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/audiocapturemgr
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/ds
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/iarmbus
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/iarmmgrs-hal
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/ccec/drivers
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/network
-I $GITHUB_WORKSPACE/entservices-testframework/Tests
-I $GITHUB_WORKSPACE/entservices-inputoutput/helpers
-I $GITHUB_WORKSPACE/Thunder/Source
-I $GITHUB_WORKSPACE/Thunder/Source/core
-I $GITHUB_WORKSPACE/install/usr/include
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/devicesettings.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/Iarm.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/Rfc.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/RBus.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/Telemetry.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/Udev.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/maintenanceMGR.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/pkg.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/secure_wrappermock.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/wpa_ctrl_mock.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/readprocMockInterface.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/gdialservice.h
--coverage
-Wall -Wno-unused-result -Wno-deprecated-declarations -Wno-error=format=
-Wl,-wrap,system -Wl,-wrap,popen -Wl,-wrap,syslog -Wl,-wrap,v_secure_system -Wl,-wrap,v_secure_popen -Wl,-wrap,v_secure_pclose -Wl,-wrap,unlink -Wl,-wrap,v_secure_system -Wl,-wrap,pclose -Wl,-wrap,setmntent -Wl,-wrap,getmntent
-DENABLE_TELEMETRY_LOGGING

Check failure on line 350 in .github/workflows/L2-tests.yml

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file '.github/workflows/L2-tests.yml' (Match: rdkcentral/rdkservices/1, 9 lines, url: https://github.com/rdkcentral/rdkservices/archive/GRT_v1.tar.gz, file: tests.cmake)
-DUSE_IARMBUS
-DENABLE_SYSTEM_GET_STORE_DEMO_LINK
-DENABLE_DEEP_SLEEP
-DENABLE_SET_WAKEUP_SRC_CONFIG
-DENABLE_THERMAL_PROTECTION
-DUSE_DRM_SCREENCAPTURE
-DHAS_API_SYSTEM
-DHAS_API_POWERSTATE
-DHAS_RBUS
-DENABLE_DEVICE_MANUFACTURER_INFO"
&&
cmake --build build/mocks -j8
&&
cmake --install build/mocks

- name: Build entservices-deviceanddisplay
run: >
cmake
-S "$GITHUB_WORKSPACE/entservices-deviceanddisplay"
-B build/entservices-deviceanddisplay
-DCMAKE_TOOLCHAIN_FILE="${{ env.TOOLCHAIN_FILE }}"
-DCMAKE_INSTALL_PREFIX="$GITHUB_WORKSPACE/install/usr"
-DCMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake"
-DHIDE_NON_EXTERNAL_SYMBOLS=OFF
-DCMAKE_CXX_FLAGS="
-DEXCEPTIONS_ENABLE=ON
-fprofile-arcs
-ftest-coverage
-DUSE_THUNDER_R4=ON
-DTHUNDER_VERSION=4
-DTHUNDER_VERSION_MAJOR=4
-DTHUNDER_VERSION_MINOR=4
-DDEVICE_TYPE=AVOutputTV
-DPLUGIN_PERSISTENTSTORE_PATH="/tmp/secure/persistent/rdkservicestore"
-DPLUGIN_PERSISTENTSTORE_LEGACYPATH="/tmp/persistent/rdkservicestore"
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/ds
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/iarmbus
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/iarmmgrs-hal
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/systemservices
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/systemservices/proc
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks
-I $GITHUB_WORKSPACE/install/usr/include
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/devicesettings.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/Iarm.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/Rfc.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/RBus.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/Udev.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/Wraps.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/maintenanceMGR.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/pkg.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/secure_wrappermock.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/wpa_ctrl_mock.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/readprocMockInterface.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/btmgr.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/tr181api.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/tvSettings.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/tvError.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/tvSettingsExtODM.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/tvSettingsODM.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/tvTypes.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/essos-resmgr.h
-Wall -Wno-unused-result -Wno-deprecated-declarations -Wno-error=format=
-Wl,-wrap,system -Wl,-wrap,popen -Wl,-wrap,syslog -Wl,-wrap,v_secure_system -Wl,-wrap,v_secure_popen -Wl,-wrap,v_secure_pclose -Wl,-wrap,unlink
-DUSE_IARMBUS
-DENABLE_ERM
-DRDK_LOG_MILESTONE
-DRDK_SERVICE_L2_TEST
-DDISABLE_SECURITY_TOKEN
-DHAS_API_POWERSTATE
-DENABLE_THERMAL_PROTECTION"
-DPLUGIN_PERSISTENTSTORE_PATH="/tmp/secure/persistent/rdkservicestore"
-DPLUGIN_PERSISTENTSTORE_LEGACYPATH="/tmp/persistent/rdkservicestore"
-DCOMCAST_CONFIG=OFF
-DCMAKE_DISABLE_FIND_PACKAGE_DS=ON
-DCMAKE_DISABLE_FIND_PACKAGE_IARMBus=ON
-DCMAKE_DISABLE_FIND_PACKAGE_Udev=ON
-DCMAKE_DISABLE_FIND_PACKAGE_RFC=ON
-DCMAKE_DISABLE_FIND_PACKAGE_RBus=ON
-DPLUGIN_SYSTEMSERVICES=OFF
-DPLUGIN_POWERMANAGER=ON
-DPLUGIN_DISPLAYSETTINGS=OFF
-DPLUGIN_USERPREFERENCES=OFF
-DPLUGIN_DEVICEDIAGNOSTICS=OFF
-DPLUGIN_WAREHOUSE=OFF
-DUSE_THUNDER_R4=ON
-DPLUGIN_L2Tests=ON
-DRDK_SERVICE_L2_TEST=ON
-DDS_FOUND=ON
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
&&
cmake --build build/entservices-deviceanddisplay -j8
&&
cmake --install build/entservices-deviceanddisplay

- name: Build entservices-inputoutput
run: >
cmake
Expand Down Expand Up @@ -327,6 +471,8 @@
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/systemservices/proc
-I $GITHUB_WORKSPACE/install/usr/include
-I $GITHUB_WORKSPACE/install/usr/include/WPEFramework
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/ccec/drivers
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/devicesettings.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/Iarm.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/Rfc.h
Expand All @@ -346,8 +492,16 @@
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/tvSettingsODM.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/tvTypes.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/essos-resmgr.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/HdmiCec.h
-Werror -Wall -Wno-unused-result -Wno-deprecated-declarations -Wno-error=format=
-DUSE_IARMBUS
-DENABLE_DEEP_SLEEP
-DENABLE_SET_WAKEUP_SRC_CONFIG
-DENABLE_THERMAL_PROTECTION
-DUSE_DRM_SCREENCAPTURE
-DHAS_API_SYSTEM
-DHAS_API_POWERSTATE
-DHAS_RBUS
-DRDK_SERVICE_L2_TEST
-DDISABLE_SECURITY_TOKEN
-DENABLE_THERMAL_PROTECTION"
Expand All @@ -359,16 +513,18 @@
-DCMAKE_DISABLE_FIND_PACKAGE_Udev=ON
-DCMAKE_DISABLE_FIND_PACKAGE_RFC=ON
-DCMAKE_DISABLE_FIND_PACKAGE_RBus=ON
-DCMAKE_DISABLE_FIND_PACKAGE_CEC=ON
-DPLUGIN_AVINPUT=OFF
-DPLUGIN_AVOUTPUT=OFF
-DPLUGIN_HDMICECSINK=ON
-DAVOUTPUT_TV=OFF
-DUSE_THUNDER_R4=ON
-DPLUGIN_L2Tests=ON
-DRDK_SERVICE_L2_TEST=ON
-DDS_FOUND=ON
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
&&
cmake --build build/entservices-inputoutput -j8
cmake --build build/entservices-inputoutput
&&
cmake --install build/entservices-inputoutput

Expand Down Expand Up @@ -398,7 +554,7 @@
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/iarmmgrs-hal
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/systemservices
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/systemservices/proc
-I $GITHUB_WORKSPACE/entservices-inputoutput/helpers
-I $GITHUB_WORKSPACE/entservices-deviceanddisplay/helpers
-I $GITHUB_WORKSPACE/install/usr/include
-I $GITHUB_WORKSPACE/install/usr/include/WPEFramework
-I ./usr/include/libdrm
Expand Down Expand Up @@ -436,6 +592,7 @@
-DCMAKE_DISABLE_FIND_PACKAGE_RBus=ON
-DPLUGIN_AVINPUT=OFF
-DPLUGIN_AVOUTPUT=OFF
-DPLUGIN_HDMICECSINK=ON
-DAVOUTPUT_TV=OFF
-DUSE_THUNDER_R4=ON
-DPLUGIN_L2Tests=ON
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ string(TOLOWER ${NAMESPACE} STORAGE_DIRECTORY)
include(CmakeHelperFunctions)

if(RDK_SERVICE_L2_TEST)
# add_subdirectory(Tests/L2Tests)
add_subdirectory(Tests/L2Tests)
endif()

if(RDK_SERVICES_L1_TEST)
Expand Down
35 changes: 33 additions & 2 deletions HdmiCecSink/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# limitations under the License.
set(PLUGIN_NAME HdmiCecSink)
set(MODULE_NAME ${NAMESPACE}${PLUGIN_NAME})
set(PLUGIN_IMPLEMENTATION ${MODULE_NAME}Implementation)


set(PLUGIN_HDMICECSINK_STARTUPORDER "" CACHE STRING "To configure startup order of HdmiCecSink plugin")
Expand All @@ -26,28 +27,58 @@ add_library(${MODULE_NAME} SHARED
HdmiCecSink.cpp
Module.cpp)

add_library(${PLUGIN_IMPLEMENTATION} SHARED
HdmiCecSinkImplementation.cpp
Module.cpp)

set_target_properties(${MODULE_NAME} PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED YES)

set_target_properties(${PLUGIN_IMPLEMENTATION} PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED YES)

target_compile_definitions(${MODULE_NAME} PRIVATE MODULE_NAME=Plugin_${PLUGIN_NAME})

find_package(DS)
find_package(IARMBus)

find_package(CEC)

target_include_directories(${MODULE_NAME} PRIVATE ${IARMBUS_INCLUDE_DIRS} ../helpers)
target_include_directories(${MODULE_NAME} PRIVATE ${CEC_INCLUDE_DIRS})
target_include_directories(${MODULE_NAME} PRIVATE ${DS_INCLUDE_DIRS})
set_source_files_properties(HdmiCecSink.cpp PROPERTIES COMPILE_FLAGS "-fexceptions")


target_include_directories(${PLUGIN_IMPLEMENTATION} PRIVATE ${IARMBUS_INCLUDE_DIRS} ../helpers)
target_include_directories(${PLUGIN_IMPLEMENTATION} PRIVATE ${CEC_INCLUDE_DIRS})
target_include_directories(${PLUGIN_IMPLEMENTATION} PRIVATE ${DS_INCLUDE_DIRS})
set_source_files_properties(HdmiCecSinkImplementation.cpp PROPERTIES COMPILE_FLAGS "-fexceptions")


target_link_libraries(${MODULE_NAME} PUBLIC ${NAMESPACE}Plugins::${NAMESPACE}Plugins ${IARMBUS_LIBRARIES} ${CEC_LIBRARIES} ${DS_LIBRARIES} )
target_link_libraries(${PLUGIN_IMPLEMENTATION} PUBLIC ${NAMESPACE}Plugins::${NAMESPACE}Plugins ${IARMBUS_LIBRARIES} ${CEC_LIBRARIES} ${DS_LIBRARIES} )

if (NOT RDK_SERVICES_L1_TEST)
target_compile_options(${MODULE_NAME} PRIVATE -Wno-error=deprecated)
target_compile_options(${PLUGIN_IMPLEMENTATION} PRIVATE -Wno-error=deprecated)
endif ()

if (RDK_SERVICE_L2_TEST)
find_library(TESTMOCKLIB_LIBRARIES NAMES TestMocklib)
if (TESTMOCKLIB_LIBRARIES)
message ("linking mock libraries ${TESTMOCKLIB_LIBRARIES} library")
target_link_libraries(${PLUGIN_IMPLEMENTATION} PRIVATE ${TESTMOCKLIB_LIBRARIES})
else (TESTMOCKLIB_LIBRARIES)
message ("Require ${TESTMOCKLIB_LIBRARIES} library")
endif (TESTMOCKLIB_LIBRARIES)
endif (RDK_SERVICES_L2_TEST)

install(TARGETS ${MODULE_NAME}
DESTINATION lib/${STORAGE_DIRECTORY}/plugins)

write_config(${PLUGIN_NAME})
install(TARGETS ${PLUGIN_IMPLEMENTATION}
DESTINATION lib/${STORAGE_DIRECTORY}/plugins)

write_config(${PLUGIN_NAME})
7 changes: 7 additions & 0 deletions HdmiCecSink/HdmiCecSink.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@ precondition = ["Platform"]
callsign = "org.rdk.HdmiCecSink"
autostart = "false"
startuporder = "@PLUGIN_HDMICECSINK_STARTUPORDER@"

configuration = JSON()
rootobject = JSON()

rootobject.add("mode", "@PLUGIN_HDMICECSINK_MODE@")
rootobject.add("locator", "lib@[email protected]")
configuration.add("root", rootobject)
Loading
Loading