From 839d68bd1f159f79ddcaf82f559e0bae2417baef Mon Sep 17 00:00:00 2001
From: tpaul627 <69359527+tpaul627@users.noreply.github.com>
Date: Fri, 25 Jul 2025 20:13:14 +0530
Subject: [PATCH 01/11] RDKEMW-6328: set AVHijack rfc to false (#208)
---
.../parodusClient/waldb/data-model/data-model-generic.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/hostif/parodusClient/waldb/data-model/data-model-generic.xml b/src/hostif/parodusClient/waldb/data-model/data-model-generic.xml
index 7a0d81180..e3c9469fb 100755
--- a/src/hostif/parodusClient/waldb/data-model/data-model-generic.xml
+++ b/src/hostif/parodusClient/waldb/data-model/data-model-generic.xml
@@ -4345,7 +4345,7 @@
-
+
From c1760d3fc35655603c7fea45f86421149cbc8659 Mon Sep 17 00:00:00 2001
From: madhubabutt <114217841+madhubabutt@users.noreply.github.com>
Date: Tue, 29 Jul 2025 20:00:52 +0530
Subject: [PATCH 02/11] RDKEMW-6193 Code Coverage support for tr69hostif (#211)
Co-authored-by: mtirum011
---
.github/workflows/code-coverage.yml | 52 +++++++++++++++++++++++
run_ut.sh | 28 ++++++++----
src/unittest/stubs/ds/audioOutputPort.hpp | 2 +-
src/unittest/stubs/ds/host.hpp | 2 +-
4 files changed, 73 insertions(+), 11 deletions(-)
create mode 100644 .github/workflows/code-coverage.yml
diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml
new file mode 100644
index 000000000..2e29b0b79
--- /dev/null
+++ b/.github/workflows/code-coverage.yml
@@ -0,0 +1,52 @@
+name: Code Coverage
+
+on:
+ pull_request:
+ branches: [ main ]
+
+jobs:
+ execute-unit-code-coverage-report-on-release:
+ name: Test coverage report for release
+ runs-on: ubuntu-latest
+ container:
+ image: ghcr.io/rdkcentral/docker-rdk-ci:latest
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v3
+
+ - name: Run unit tests with coverage flags enabled
+ run: |
+ sh run_ut.sh --enable-cov
+ - name: Caculate the code coverage summary
+ run: |
+ lcov --list tr69hostif_coverage.info | grep "Lines\|Total" > /tmp/coverage_summary.txt
+ cd -
+
+ - name: Update the coverage report to Pull request using actions
+ uses: actions/github-script@v4
+ with:
+ script: |
+ const fs = require('fs');
+ const lcov_result = fs.readFileSync('/tmp/coverage_summary.txt', 'utf8');
+
+ github.issues.createComment({
+ issue_number: context.issue.number,
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ body:
+ '## Code Coverage Summary \n' +
+ ' ' +
+ '```' +
+ lcov_result +
+ '```'
+ });
+ - name: Generate the html report
+ run: |
+ genhtml tr69hostif_coverage.info --output-directory /tmp/coverage_report
+ cd -
+ - name: Upload the coverage report to Pull request using actions
+ uses: actions/upload-artifact@v4
+ with:
+ name: coverage-report
+ path: /tmp/coverage_report
diff --git a/run_ut.sh b/run_ut.sh
index c6143381c..92abdfec0 100644
--- a/run_ut.sh
+++ b/run_ut.sh
@@ -18,6 +18,17 @@
# SPDX-License-Identifier: Apache-2.0
############################################################################
+
+ENABLE_COV=false
+
+if [ "x$1" = "x--enable-cov" ]; then
+ echo "Enabling coverage options"
+ export CXXFLAGS="-g -O0 -fprofile-arcs -ftest-coverage"
+ export CFLAGS="-g -O0 -fprofile-arcs -ftest-coverage"
+ export LDFLAGS="-lgcov --coverage"
+ ENABLE_COV=true
+fi
+
apt-get update
apt-get -y install libtinyxml2-dev
apt-get -y install libsoup-3.0-dev
@@ -57,12 +68,6 @@ make
./dm_gtest
echo "********************"
-
-lcov --capture --directory . --output-file coverage.info
-lcov --remove coverage.info '/usr/*' --output-file coverage.filtered.info
-genhtml coverage.filtered.info --output-directory out
-
-
echo "**** Compiling DeviceInfo gtest ****"
cd $TOP_DIR/src/hostif/profiles/DeviceInfo/gtest
rm devieInfo_gtest
@@ -70,7 +75,12 @@ make
./devieInfo_gtest
echo "********************"
+cd $TOP_DIR
-lcov --capture --directory . --output-file coverage.info
-lcov --remove coverage.info '/usr/*' --output-file coverage.filtered.info
-genhtml coverage.filtered.info --output-directory out
+if [ "$ENABLE_COV" = true ]; then
+ lcov --capture --directory . --output-file coverage.info
+ lcov --remove coverage.info '/usr/*' '*/gtest/*' '*/mocks/*' --output-file filtered.info
+ lcov --extract filtered.info '*/src/hostif*' --output-file tr69hostif_coverage.info
+ lcov --list tr69hostif_coverage.info
+fi
+
diff --git a/src/unittest/stubs/ds/audioOutputPort.hpp b/src/unittest/stubs/ds/audioOutputPort.hpp
index 073740291..2821f7ad7 100644
--- a/src/unittest/stubs/ds/audioOutputPort.hpp
+++ b/src/unittest/stubs/ds/audioOutputPort.hpp
@@ -173,7 +173,7 @@ class AudioOutputPort : public Enumerable {
void setSAD(std::vector sad_list);
void enableARC(dsAudioARCTypes_t type, bool enable);
void enableMS12Config(const dsMS12FEATURE_t feature,const bool enable){}
- dsError_t enableLEConfig(const bool enable);
+ dsError_t enableLEConfig(const bool enable) { return dsERR_NONE; };
bool GetLEConfig();
void setAudioDelay(const uint32_t audioDelayMs);
void setAudioDelayOffset(const uint32_t audioDelayOffsetMs);
diff --git a/src/unittest/stubs/ds/host.hpp b/src/unittest/stubs/ds/host.hpp
index a18c55f71..95ed08b3f 100644
--- a/src/unittest/stubs/ds/host.hpp
+++ b/src/unittest/stubs/ds/host.hpp
@@ -83,7 +83,7 @@ class Host {
AudioOutputPort &getAudioOutputPort(const std::string &name){};
AudioOutputPort &getAudioOutputPort(int id){};
void notifyPowerChange(const int mode);
- float getCPUTemperature();
+ float getCPUTemperature() { return 42.5f; };
uint32_t getVersion(void);
void setVersion(uint32_t versionNumber);
void getHostEDID(std::vector &edid) const;
From d3eda5205f0cb00c7ab8bbcccb70a31a7ce29a45 Mon Sep 17 00:00:00 2001
From: shibu-kv
Date: Tue, 29 Jul 2025 09:02:34 -0700
Subject: [PATCH 03/11] Changelog updates for release 1.2.2
---
CHANGELOG.md | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 98e67ffa2..76809d9ce 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,11 +4,21 @@ 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.2](https://github.com/rdkcentral/tr69hostif/compare/1.2.1...1.2.2)
+
+- RDKEMW-6193 Code Coverage support for tr69hostif [`#211`](https://github.com/rdkcentral/tr69hostif/pull/211)
+- RDKEMW-6328: set AVHijack rfc to false [`#208`](https://github.com/rdkcentral/tr69hostif/pull/208)
+- RDK-58323: Canary firmware updates [`#199`](https://github.com/rdkcentral/tr69hostif/pull/199)
+- Merge tag '1.2.1' into develop [`17d019b`](https://github.com/rdkcentral/tr69hostif/commit/17d019b0bed5e8cc9c1f4fe68520c08fc530ff00)
+
#### [1.2.1](https://github.com/rdkcentral/tr69hostif/compare/1.2.0...1.2.1)
+> 18 July 2025
+
- RDK-58526 : Default IPControl RFC for EU partners [`#203`](https://github.com/rdkcentral/tr69hostif/pull/203)
- RDK-57868 : Default IPControl RFC for EU partners [`#200`](https://github.com/rdkcentral/tr69hostif/pull/200)
- RDK-57867 : Default the IUI layer separation RFC globally for EntOS [`#193`](https://github.com/rdkcentral/tr69hostif/pull/193)
+- 1.2.1 release changelog updates [`fe9e71f`](https://github.com/rdkcentral/tr69hostif/commit/fe9e71f712ffef234215145461d767ae7d1691a4)
- Merge tag '1.2.0' into develop [`9b98df0`](https://github.com/rdkcentral/tr69hostif/commit/9b98df0330008138a47b6f18a4314df6f0a7adc1)
#### [1.2.0](https://github.com/rdkcentral/tr69hostif/compare/1.1.9...1.2.0)
From 5916d051062aa0ba792685d21259342ca4a89a5c Mon Sep 17 00:00:00 2001
From: nmuthu523
Date: Wed, 30 Jul 2025 14:52:25 +0000
Subject: [PATCH 04/11] RDKEMW-4344 : Include the missed RFCs in RDKE.
Reason for change:
Include DebugMode and TR069support RFC's with default valuse as false.
Priority: P1
Test Procedure: Follow the steps provided in description.
Risks: Low
Signed-off-by:Natraj Muthusamy
---
.../parodusClient/waldb/data-model/data-model-generic.xml | 8 ++++++++
.../parodusClient/waldb/data-model/data-model-stb.xml | 8 ++++++++
.../parodusClient/waldb/data-model/data-model-tv.xml | 8 ++++++++
3 files changed, 24 insertions(+)
diff --git a/src/hostif/parodusClient/waldb/data-model/data-model-generic.xml b/src/hostif/parodusClient/waldb/data-model/data-model-generic.xml
index e3c9469fb..e97e68f0e 100755
--- a/src/hostif/parodusClient/waldb/data-model/data-model-generic.xml
+++ b/src/hostif/parodusClient/waldb/data-model/data-model-generic.xml
@@ -342,6 +342,14 @@
+
+
+