Skip to content

Commit 312e5da

Browse files
committed
Merge branch 'release/1.0.12' into main
2 parents 0d7c03d + 5f66dc2 commit 312e5da

File tree

14 files changed

+1068
-375
lines changed

14 files changed

+1068
-375
lines changed

.github/workflows/L1-tests.yml

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ jobs:
278278
-DCMAKE_INSTALL_PREFIX="$GITHUB_WORKSPACE/install/usr"
279279
-DCMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake"
280280
-DCMAKE_CXX_FLAGS="
281+
-fprofile-arcs
282+
-ftest-coverage
281283
-DEXCEPTIONS_ENABLE=ON
282284
-DUSE_THUNDER_R4=ON
283285
-DTHUNDER_VERSION=4
@@ -330,7 +332,7 @@ jobs:
330332
-DDS_FOUND=ON
331333
-DHAS_FRONT_PANEL=ON
332334
-DRDK_SERVICES_L1_TEST=ON
333-
-DPLUGIN_HDCPPROFILE=ON
335+
-DPLUGIN_HDCPPROFILE=OFF
334336
-DUSE_THUNDER_R4=ON
335337
-DHIDE_NON_EXTERNAL_SYMBOLS=OFF
336338
&&
@@ -346,6 +348,8 @@ jobs:
346348
-DCMAKE_INSTALL_PREFIX="$GITHUB_WORKSPACE/install/usr"
347349
-DCMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake"
348350
-DCMAKE_CXX_FLAGS="
351+
-fprofile-arcs
352+
-ftest-coverage
349353
-DEXCEPTIONS_ENABLE=ON
350354
-DUSE_THUNDER_R4=ON
351355
-DTHUNDER_VERSION=4
@@ -398,7 +402,7 @@ jobs:
398402
-DCMAKE_DISABLE_FIND_PACKAGE_RBus=ON
399403
-DCMAKE_BUILD_TYPE=Debug
400404
-DDS_FOUND=ON
401-
-DPLUGIN_HDCPPROFILE=ON
405+
-DPLUGIN_HDCPPROFILE=OFF
402406
-DRDK_SERVICES_L1_TEST=ON
403407
-DUSE_THUNDER_R4=ON
404408
-DHIDE_NON_EXTERNAL_SYMBOLS=OFF
@@ -496,17 +500,17 @@ jobs:
496500
run: >
497501
PATH=$GITHUB_WORKSPACE/install/usr/bin:${PATH}
498502
LD_LIBRARY_PATH=$GITHUB_WORKSPACE/install/usr/lib:$GITHUB_WORKSPACE/install/usr/lib/wpeframework/plugins:${LD_LIBRARY_PATH}
499-
GTEST_OUTPUT="json:$(pwd)/entservices-testframeworkL1TestResults.json"
503+
GTEST_OUTPUT="json:$(pwd)/rdkL1TestResults.json"
500504
RdkServicesL1Test &&
501-
cp -rf $(pwd)/entservices-testframeworkL1TestResults.json $GITHUB_WORKSPACE/entservices-testframeworkL1TestResultsWithoutValgrind.json &&
502-
rm -rf $(pwd)/entservices-testframeworkL1TestResults.json
505+
cp -rf $(pwd)/rdkL1TestResults.json $GITHUB_WORKSPACE/rdkL1TestResultsWithoutValgrind.json &&
506+
rm -rf $(pwd)/rdkL1TestResults.json
503507
504508
- name: Run unit tests with valgrind
505509
if: ${{ !env.ACT }}
506510
run: >
507511
PATH=$GITHUB_WORKSPACE/install/usr/bin:${PATH}
508512
LD_LIBRARY_PATH=$GITHUB_WORKSPACE/install/usr/lib:$GITHUB_WORKSPACE/install/usr/lib/wpeframework/plugins:${LD_LIBRARY_PATH}
509-
GTEST_OUTPUT="json:$(pwd)/entservices-testframeworkL1TestResults.json"
513+
GTEST_OUTPUT="json:$(pwd)/rdkL1TestResults.json"
510514
valgrind
511515
--tool=memcheck
512516
--log-file=valgrind_log
@@ -515,47 +519,43 @@ jobs:
515519
--track-fds=yes
516520
--fair-sched=try
517521
RdkServicesL1Test &&
518-
cp -rf $(pwd)/entservices-testframeworkL1TestResults.json $GITHUB_WORKSPACE/entservices-testframeworkL1TestResultsWithValgrind.json &&
519-
rm -rf $(pwd)/entservices-testframeworkL1TestResults.json
522+
cp -rf $(pwd)/rdkL1TestResults.json $GITHUB_WORKSPACE/rdkL1TestResultsWithValgrind.json &&
523+
rm -rf $(pwd)/rdkL1TestResults.json
520524
521-
- name: Generate coverage
522-
if: ${{ matrix.coverage == 'with-coverage' && !env.ACT }}
523-
run: >
524-
cp $GITHUB_WORKSPACE/entservices-testframework/Tests/L1Tests/.lcovrc_l1 ~/.lcovrc
525-
&&
526-
lcov -c
527-
-o coverage.info
528-
-d build/entservices-testframework
529-
&&
530-
lcov
531-
-r coverage.info
532-
'/usr/include/*'
533-
'*/build/entservices-testframework/_deps/*'
534-
'*/install/usr/include/*'
535-
'*/Tests/headers/*'
536-
'*/Tests/mocks/*'
537-
'*/Tests/L1Tests/tests/*'
538-
-o filtered_coverage.info
539-
&&
540-
genhtml
541-
-o coverage
542-
-t "entservices-testframework coverage"
543-
filtered_coverage.info
525+
# - name: Generate coverage
526+
# if: ${{ matrix.coverage == 'with-coverage' && !env.ACT }}
527+
# run: >
528+
# cp $GITHUB_WORKSPACE/entservices-testframework/Tests/L1Tests/.lcovrc_l1 ~/.lcovrc
529+
# &&
530+
# lcov -c
531+
# -o coverage.info
532+
# -d build/entservices-inputoutput
533+
# &&
534+
# lcov
535+
# -r coverage.info
536+
# '/usr/include/*'
537+
# '*/build/entservices-inputoutput/_deps/*'
538+
# '*/install/usr/include/*'
539+
# '*/Tests/headers/*'
540+
# '*/Tests/mocks/*'
541+
# '*/Tests/L1Tests/tests/*'
542+
# '*/Thunder/*'
543+
# -o filtered_coverage.info
544+
# &&
545+
# genhtml
546+
# -o coverage
547+
# -t "entservices-inputoutput coverage"
548+
# filtered_coverage.info
544549

545-
- name: Upload artifacts
546-
if: ${{ !env.ACT }}
547-
uses: actions/upload-artifact@v4
548-
with:
549-
name: artifacts
550-
path: |
551-
coverage/
552-
valgrind_log
553-
entservices-testframeworkL1TestResultsWithoutValgrind.json
554-
entservices-testframeworkL1TestResultsWithValgrind.json
555-
if-no-files-found: warn
550+
# - name: Upload artifacts
551+
# if: ${{ !env.ACT }}
552+
# uses: actions/upload-artifact@v4
553+
# with:
554+
# name: artifacts
555+
# path: |
556+
# coverage/
557+
# valgrind_log
558+
# rdkL1TestResultsWithoutValgrind.json
559+
# rdkL1TestResultsWithValgrind.json
560+
# if-no-files-found: warn
556561

557-
- name: Coping results to /tmp/Gtest_Report/
558-
if: ${{ !env.ACT }}
559-
run: >
560-
mkdir -p /tmp/Gtest_Report/ &&
561-
cp -r valgrind_log entservices-testframeworkL1TestResultsWithoutValgrind.json entservices-testframeworkL1TestResultsWithValgrind.json coverage /tmp/Gtest_Report/

.github/workflows/L2-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -551,18 +551,18 @@ jobs:
551551
lcov
552552
-r coverage.info
553553
'/usr/include/*'
554-
'*/build/entservices-infra/_deps/*'
555-
'*/build/entservices-deviceanddisplay/_deps/*'
554+
'*/build/entservices-inputoutput/_deps/*'
556555
'*/build/entservices-entservices-testframework/_deps/*'
557556
'*/install/usr/include/*'
558557
'*/Tests/headers/*'
559558
'*/Tests/mocks/*'
560559
'*/Tests/L2Tests/*'
560+
'*/sqlite/*'
561561
-o filtered_coverage.info
562562
&&
563563
genhtml
564564
-o coverage
565-
-t "entservices-testframework coverage"
565+
-t "entservices-inputoutput coverage"
566566
filtered_coverage.info
567567
568568
- name: Upload artifacts
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build Component in Native Environment
2+
3+
on:
4+
push:
5+
branches: [ main, 'sprint/**', 'release/**', develop ]
6+
pull_request:
7+
branches: [ main, 'sprint/**', 'release/**', topic/RDK*, develop ]
8+
9+
jobs:
10+
build-entservices-on-pr:
11+
name: Build entservices-inputoutput component in github rdkcentral
12+
runs-on: ubuntu-latest
13+
container:
14+
image: ghcr.io/rdkcentral/docker-rdk-ci:latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
20+
- name: native build
21+
run: |
22+
sh -x build_dependencies.sh
23+
sh -x cov_build.sh
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.RDKCM_RDKE }}

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,21 @@ All notable changes to this project will be documented in this file. Dates are d
44

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

7+
#### [1.0.12](https://github.com/rdkcentral/entservices-inputoutput/compare/1.0.11...1.0.12)
8+
9+
- RDKEMW-1014 : Add COM-RPC support to HdcpProfile plugin [`#72`](https://github.com/rdkcentral/entservices-inputoutput/pull/72)
10+
- RDK-55373:[RDKServices] Coverity integration with middleware component workflow [`#80`](https://github.com/rdkcentral/entservices-inputoutput/pull/80)
11+
- [RDKEMW-2711] RDKEMW-2748 : Update the Test Coverage [`#75`](https://github.com/rdkcentral/entservices-inputoutput/pull/75)
12+
- Update Utils.py [`#73`](https://github.com/rdkcentral/entservices-inputoutput/pull/73)
13+
- Merge tag '1.0.11' into develop [`c86b827`](https://github.com/rdkcentral/entservices-inputoutput/commit/c86b82721e32a4bbc828003d0fd5cf76c77d8cca)
14+
715
#### [1.0.11](https://github.com/rdkcentral/entservices-inputoutput/compare/1.0.10...1.0.11)
816

17+
> 25 April 2025
18+
919
- PowerManager Interface file modified [`#62`](https://github.com/rdkcentral/entservices-inputoutput/pull/62)
1020
- Update TestManager.py for removing frontpanel and hdcpprofile dependencies to execute testcases standalone [`#68`](https://github.com/rdkcentral/entservices-inputoutput/pull/68)
21+
- 1.0.11 release changelog updates [`85c0153`](https://github.com/rdkcentral/entservices-inputoutput/commit/85c0153a722c521a8707a49758f9df1cd4e4dc59)
1122
- Merge tag '1.0.10' into develop [`7a54d8c`](https://github.com/rdkcentral/entservices-inputoutput/commit/7a54d8cdb9da6de8071c19c8efdf48e7ec5bba96)
1223

1324
#### [1.0.10](https://github.com/rdkcentral/entservices-inputoutput/compare/1.0.9...1.0.10)

HdcpProfile/CMakeLists.txt

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
set(PLUGIN_NAME HdcpProfile)
1919
set(MODULE_NAME ${NAMESPACE}${PLUGIN_NAME})
20+
set(PLUGIN_IMPLEMENTATION ${MODULE_NAME}Implementation)
2021

2122
set(PLUGIN_HDCPPROFILE_AUTOSTART "false" CACHE STRING "Automatically start HdcpProfile plugin")
2223
set(PLUGIN_HDCPPROFILE_STARTUPORDER "" CACHE STRING "To configure startup order of HdcpProfile plugin")
@@ -32,20 +33,42 @@ add_library(${MODULE_NAME} SHARED
3233
HdcpProfile.cpp
3334
Module.cpp)
3435

36+
3537
set_target_properties(${MODULE_NAME} PROPERTIES
3638
CXX_STANDARD 11
3739
CXX_STANDARD_REQUIRED YES)
3840

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

43+
44+
include_directories(
45+
../helpers)
46+
47+
target_link_libraries(${MODULE_NAME} PRIVATE ${NAMESPACE}Plugins::${NAMESPACE}Plugins)
48+
49+
install(TARGETS ${MODULE_NAME}
50+
DESTINATION lib/${STORAGE_DIRECTORY}/plugins)
51+
52+
add_library(${PLUGIN_IMPLEMENTATION} SHARED
53+
HdcpProfileImplementation.cpp
54+
Module.cpp)
55+
target_link_libraries(${PLUGIN_IMPLEMENTATION}
56+
PRIVATE
57+
${NAMESPACE}Plugins::${NAMESPACE}Plugins)
58+
set_target_properties(${PLUGIN_IMPLEMENTATION} PROPERTIES
59+
CXX_STANDARD 11
60+
CXX_STANDARD_REQUIRED YES)
61+
62+
4163
if (USE_THUNDER_R4)
42-
target_link_libraries(${MODULE_NAME} PRIVATE ${NAMESPACE}COM::${NAMESPACE}COM)
64+
target_link_libraries(${PLUGIN_IMPLEMENTATION} PRIVATE ${NAMESPACE}COM::${NAMESPACE}COM)
4365
else ()
44-
target_link_libraries(${MODULE_NAME} PRIVATE ${NAMESPACE}Protocols::${NAMESPACE}Protocols)
66+
target_link_libraries(${PLUGIN_IMPLEMENTATION} PRIVATE ${NAMESPACE}Protocols::${NAMESPACE}Protocols)
4567
endif (USE_THUNDER_R4)
4668

4769
find_package(DS)
4870
find_package(IARMBus)
71+
find_package(CEC)
4972

5073
if (RDK_SERVICE_L2_TEST)
5174
message ("L2 test Enabled")
@@ -58,16 +81,17 @@ if (RDK_SERVICE_L2_TEST)
5881
endif (TESTMOCKLIB_LIBRARIES)
5982
endif()
6083

61-
target_include_directories(${MODULE_NAME} PRIVATE ${IARMBUS_INCLUDE_DIRS})
62-
target_include_directories(${MODULE_NAME} PRIVATE ${DS_INCLUDE_DIRS})
63-
target_include_directories(${MODULE_NAME} PRIVATE ../helpers)
84+
85+
target_include_directories(${PLUGIN_IMPLEMENTATION} PRIVATE ${IARMBUS_INCLUDE_DIRS})
86+
target_include_directories(${PLUGIN_IMPLEMENTATION} PRIVATE ${DS_INCLUDE_DIRS})
87+
target_include_directories(${PLUGIN_IMPLEMENTATION} PRIVATE ../helpers)
6488

6589

6690
set_source_files_properties(HdcpProfile.cpp PROPERTIES COMPILE_FLAGS "-fexceptions")
6791

68-
target_link_libraries(${MODULE_NAME} PUBLIC ${NAMESPACE}Plugins::${NAMESPACE}Plugins ${IARMBUS_LIBRARIES} ${DS_LIBRARIES} )
92+
target_link_libraries(${PLUGIN_IMPLEMENTATION} PUBLIC ${NAMESPACE}Plugins::${NAMESPACE}Plugins ${IARMBUS_LIBRARIES} ${DS_LIBRARIES})
6993

70-
install(TARGETS ${MODULE_NAME}
94+
install(TARGETS ${PLUGIN_IMPLEMENTATION}
7195
DESTINATION lib/${STORAGE_DIRECTORY}/plugins)
7296

7397
write_config(${PLUGIN_NAME})

HdcpProfile/HdcpProfile.conf.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,11 @@ precondition = ["Platform"]
22
callsign = "org.rdk.HdcpProfile"
33
autostart = "@PLUGIN_HDCPPROFILE_AUTOSTART@"
44
startuporder = "@PLUGIN_HDCPPROFILE_STARTUPORDER@"
5+
6+
configuration = JSON()
7+
rootobject = JSON()
8+
9+
rootobject.add("mode", "@PLUGIN_HDCPPROFILE_MODE@")
10+
rootobject.add("locator", "lib@[email protected]")
11+
12+
configuration.add("root", rootobject)

HdcpProfile/HdcpProfile.config

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,12 @@ set (callsign "org.rdk.HdcpProfile")
55
if(PLUGIN_HDCPPROFILE_STARTUPORDER)
66
set (startuporder ${PLUGIN_HDCPPROFILE_STARTUPORDER})
77
endif()
8+
9+
map()
10+
key(root)
11+
map()
12+
kv(mode ${PLUGIN_HDCPPROFILE_MODE})
13+
kv(locator lib${PLUGIN_IMPLEMENTATION}.so)
14+
end()
15+
end()
16+
ans(configuration)

0 commit comments

Comments
 (0)