Skip to content

Commit 70d3221

Browse files
trupthi1403Truphti
authored andcommitted
RDKEMW-9461: Testing native-build.yml
Reason for change: Added build.sh to test[DONOT MERGE] Priority:P1 Risk:Low Merge tag '1.0.9' into develop Release 1.0.9
2 parents eaf0fe2 + 68f6463 commit 70d3221

File tree

2 files changed

+103
-74
lines changed

2 files changed

+103
-74
lines changed

.github/workflows/jsruntime_L1tests.yml

Lines changed: 91 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ permissions:
44
checks: write
55

66
on:
7+
workflow_dispatch:
78
push:
8-
branches: [develop]
9+
branches: [topic/RDKEMW-9461]
910
pull_request:
10-
branches: [develop]
11-
workflow_dispatch:
11+
branches: [topic/RDKEMW-9461]
1212

1313
env:
1414
AUTOMATICS_UNAME: ${{ secrets.AUTOMATICS_UNAME }}
@@ -19,88 +19,108 @@ jobs:
1919
runs-on: ubuntu-latest
2020

2121
steps:
22-
- name: Checkout source repository
22+
- name: Checkout main source repository (rdkNativeScript)
2323
uses: actions/checkout@v3
2424

25-
- name: Checkout rdkNativeScript_tests repository
25+
- name: Checkout rdkNativeScript_tests repository (externals/build.sh and dependencies)
2626
uses: actions/checkout@v3
2727
with:
2828
repository: rdk-e/rdkNativeScript_tests
29-
ref: topic/RDKEMW-5610
29+
ref: topic/RDKEMW-9461
3030
path: rdkNativeScript_tests
3131
token: ${{ secrets.GH_PAT }}
3232

3333
- name: Install dependencies
3434
run: |
3535
sudo apt-get update && sudo apt-get install -y \
36-
g++ \
37-
cmake \
38-
build-essential \
39-
libcurl4-openssl-dev \
40-
libcjson-dev \
41-
libgtest-dev \
42-
libssl-dev \
43-
zlib1g-dev \
44-
libuv1-dev \
45-
lcov \
46-
libglib2.0-dev
47-
48-
- name: Build Google Test and Google Mock
36+
git cmake gperf ruby-dev libglew-dev libglut-dev \
37+
libglib2.0-dev g++ meson bison libjpeg-dev libpng-dev \
38+
libfreetype6-dev libicu-dev autoconf libtool libxml2-dev \
39+
libcurl4-openssl-dev libexpat1-dev doxygen vim libcjson-dev \
40+
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
41+
libwayland-bin libwayland-dev wayland-protocols \
42+
libreadline-dev net-tools libffi7 libmount1 libpcre3 libselinux1 zlib1g \
43+
libunwind-dev
44+
45+
- name: Install ICU 66 and compatibility libs
4946
run: |
50-
cd /usr/src/googletest
51-
sudo cmake -S . -B build
52-
sudo cmake --build build
53-
sudo cp build/lib/libgmock.a /usr/lib
54-
sudo cp build/lib/libgmock_main.a /usr/lib
55-
sudo cp build/lib/libgtest.a /usr/lib
56-
sudo cp build/lib/libgtest_main.a /usr/lib
57-
58-
- name: Configure and Build L1
47+
sudo apt-get update
48+
wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu66_66.1-2ubuntu2_amd64.deb
49+
sudo dpkg -i libicu66_66.1-2ubuntu2_amd64.deb
50+
wget http://archive.ubuntu.com/ubuntu/pool/main/p/pcre3/libpcre3_8.39-13ubuntu0.22.04.1_amd64.deb
51+
sudo dpkg -i libpcre3_8.39-13ubuntu0.22.04.1_amd64.deb
52+
sudo ldconfig
53+
wget http://archive.ubuntu.com/ubuntu/pool/main/g/glib2.0/libglib2.0-0_2.64.6-1~ubuntu20.04.9_amd64.deb
54+
sudo dpkg -i libglib2.0-0_2.64.6-1~ubuntu20.04.9_amd64.deb
55+
sudo ldconfig
56+
57+
- name: Setup externals folder in main repo
5958
run: |
60-
mkdir -p build_l1
61-
cd build_l1
62-
cmake -DCMAKE_BUILD_TYPE=Debug \
63-
-DRUN_L1=ON \
64-
-DRUN_L2=OFF \
65-
-DENABLE_JSRUNTIME_ESSOS=ON \
66-
-DENABLE_JSRUNTIME_PLAYER=ON \
67-
-DENABLE_AAMP_JSBINDINGS=ON \
68-
-DENABLE_AAMP_JSBINDINGS_DYNAMIC=ON \
69-
-DENABLE_AAMP_JSBINDINGS_STATIC=OFF \
70-
-DJSRUNTIME_ENGINE_NAME=jsc \
71-
-Djsruntime_source=.. ../rdkNativeScript_tests
72-
make -j$(nproc)
73-
74-
- name: Run L1 Tests and Generate JUnit Results
59+
pwd
60+
cp -a rdkNativeScript_tests/externals externals
61+
62+
- name: Make build.sh and scripts executable
7563
run: |
76-
cd build_l1
77-
#ctest -R RunL1Tests --output-on-failure --no-compress-output --output-junit ctest-results.xml
78-
./L1_tests --gtest_output=xml:ctest-results.xml
64+
pwd
65+
chmod +x externals/build.sh
66+
find externals -type f -name "preparedashpc.sh" -exec chmod +x {} \;
67+
find externals -type f -name "copydashheaders.sh" -exec chmod +x {} \;
7968
80-
- name: Publish L1 test results
81-
uses: dorny/test-reporter@v1
82-
with:
83-
name: Unit Test Results
84-
path: build_l1/ctest-results.xml
85-
reporter: java-junit
86-
87-
- name: Generate coverage report
69+
- name: Run build.sh to build externals (from tests repo)
8870
run: |
89-
cd build_l1
90-
lcov --capture --directory . --output-file coverage.info --ignore-errors mismatch --rc geninfo_unexecuted_blocks=1
91-
lcov --remove coverage.info '/usr/*' '*/test/*' '*/tests/*' '*/L1/*' '*/mocks/*' '*/gtest/*' '*/gmock/*' '*/googletest/*' '*/include/*' --output-file coverage.cleaned.info --ignore-errors unused
92-
lcov --extract coverage.cleaned.info '*/src/*' --output-file coverage.final.info
93-
genhtml coverage.final.info --output-directory html_coverage_report
94-
95-
- name: Upload test result file (JUnit XML)
96-
uses: actions/upload-artifact@v4
97-
with:
98-
name: ctest-results-l1-${{ github.run_id }}
99-
path: build_l1/ctest-results.xml
71+
cd externals
72+
./build.sh
10073
101-
- name: Upload coverage report
102-
uses: actions/upload-artifact@v4
103-
with:
104-
name: l1-html-coverage-report
105-
path: build_l1/html_coverage_report
106-
if-no-files-found: warn
74+
- name: Fix JavaScriptCore library symlinks
75+
run: |
76+
cd externals/extlibs/lib
77+
rm -f libJavaScriptCore.so libJavaScriptCore.so.1
78+
ln -s libJavaScriptCore.so.1.0.0 libJavaScriptCore.so.1
79+
ln -s libJavaScriptCore.so.1 libJavaScriptCore.so
80+
81+
rm -f libessos.so libessos.so.0
82+
ln -s libessos.so.0.0.0 libessos.so.0
83+
ln -s libessos.so.0 libessos.so
84+
85+
rm -f libessosrmgr.so libessosrmgr.so.0
86+
ln -s libessosrmgr.so.0.0.0 libessosrmgr.so.0
87+
ln -s libessosrmgr.so.0 libessosrmgr.so
88+
89+
rm -f libuv.so libuv.so.1
90+
ln -s libuv.so.1.0.0 libuv.so.1
91+
ln -s libuv.so.1 libuv.so
92+
93+
- name: Fix symlinks for x86_64-linux-gnu libraries
94+
run: |
95+
cd externals/extlibs/lib/x86_64-linux-gnu
96+
rm -f libglib-2.0.so libglib-2.0.so.0
97+
ln -s libglib-2.0.so.0.6200.4 libglib-2.0.so.0
98+
ln -s libglib-2.0.so.0 libglib-2.0.so
99+
100+
rm -f libgio-2.0.so libgio-2.0.so.0
101+
ln -s libgio-2.0.so.0.6200.4 libgio-2.0.so.0
102+
ln -s libgio-2.0.so.0 libgio-2.0.so
103+
104+
rm -f libgmodule-2.0.so libgmodule-2.0.so.0
105+
ln -s libgmodule-2.0.so.0.6200.4 libgmodule-2.0.so.0
106+
ln -s libgmodule-2.0.so.0 libgmodule-2.0.so
107+
108+
rm -f libgobject-2.0.so libgobject-2.0.so.0
109+
ln -s libgobject-2.0.so.0.6200.4 libgobject-2.0.so.0
110+
ln -s libgobject-2.0.so.0 libgobject-2.0.so
111+
112+
rm -f libgthread-2.0.so libgthread-2.0.so.0
113+
ln -s libgthread-2.0.so.0.6200.4 libgthread-2.0.so.0
114+
ln -s libgthread-2.0.so.0 libgthread-2.0.so
115+
116+
- name: Configure and build main repo (use CMakeLists.txt from @rdkcentral/rdkNativeScript)
117+
run: |
118+
mkdir -p build
119+
cd build
120+
cmake .. \
121+
-DENABLE_JSRUNTIME_ESSOS=ON \
122+
-DJSRUNTIME_ENGINE_NAME=jsc \
123+
-DENABLE_JSRUNTIME_PLAYER=ON \
124+
-DENABLE_AAMP_JSBINDINGS_DYNAMIC=ON \
125+
-DCMAKE_CXX_FLAGS="-I../externals/extlibs/include/rtcore"
126+
cmake --build .

CHANGELOG.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,32 @@ 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.9](https://github.com/rdkcentral/rdkNativeScript/compare/1.0.8...1.0.9)
8+
9+
- RDK-59629 : UserAgent string need to be aligned with browser for diff… [`#74`](https://github.com/rdkcentral/rdkNativeScript/pull/74)
10+
- RDK-59629 : UserAgent string need to be aligned with browser for different agents [`55af0ec`](https://github.com/rdkcentral/rdkNativeScript/commit/55af0ec4471fa402421f3dd29370712e23e452b9)
11+
- Merge tag '1.0.8' into develop [`bad6257`](https://github.com/rdkcentral/rdkNativeScript/commit/bad62579572069c5a3f06bb70c0152022ddc7ce7)
12+
713
#### [1.0.8](https://github.com/rdkcentral/rdkNativeScript/compare/1.0.7...1.0.8)
814

15+
> 8 October 2025
16+
917
- RDKEMW-8952 : Switching between Xumo Fast Channels and Vipa activated… [`#71`](https://github.com/rdkcentral/rdkNativeScript/pull/71)
1018
- RDKEMW-8952 : Switching between Xumo Fast Channels and Vipa activated Channels [`505914d`](https://github.com/rdkcentral/rdkNativeScript/commit/505914dbfa6dbe842c7ec46e169ccca47ca6032b)
19+
- 1.0.8 release changelog updates [`ca57a38`](https://github.com/rdkcentral/rdkNativeScript/commit/ca57a38905f7004614ded25722f1769e0f117ca0)
1120
- Merge tag '1.0.7' into develop [`d367c14`](https://github.com/rdkcentral/rdkNativeScript/commit/d367c14f8efa22be9632ba692ed658321402a0e3)
1221

1322
#### [1.0.7](https://github.com/rdkcentral/rdkNativeScript/compare/1.0.6...1.0.7)
1423

1524
> 30 September 2025
1625
17-
- RDKEMW-8952 : Switching between Xumo Fast Channels and Vipa activated… [`#68`](https://github.com/rdkcentral/rdkNativeScript/pull/68)
26+
- DELIA-68967 : Switching between Xumo Fast Channels and Vipa activated… [`#68`](https://github.com/rdkcentral/rdkNativeScript/pull/68)
1827
- RDKEMW-5610 : L1 test cases for jsruntime [`#66`](https://github.com/rdkcentral/rdkNativeScript/pull/66)
1928
- Deploy fossid_integration_stateless_diffscan_target_repo action [`#67`](https://github.com/rdkcentral/rdkNativeScript/pull/67)
2029
- Deploy cla action [`#40`](https://github.com/rdkcentral/rdkNativeScript/pull/40)
2130
- Update CODEOWNERS [`#63`](https://github.com/rdkcentral/rdkNativeScript/pull/63)
2231
- 1.0.7 release changelog updates [`0f3be4f`](https://github.com/rdkcentral/rdkNativeScript/commit/0f3be4fecad9213a4d86c828e978c29199e5d190)
23-
- RDKEMW-8952 : Switching between Xumo Fast Channels and Vipa activated Channels [`228cf8b`](https://github.com/rdkcentral/rdkNativeScript/commit/228cf8bfdde6d7f7d991805193038b392bc0e89b)
32+
- DELIA-68967 : Switching between Xumo Fast Channels and Vipa activated Channels [`228cf8b`](https://github.com/rdkcentral/rdkNativeScript/commit/228cf8bfdde6d7f7d991805193038b392bc0e89b)
2433
- Merge tag '1.0.6' into develop [`afdf341`](https://github.com/rdkcentral/rdkNativeScript/commit/afdf341c4f81e7019d76f207c7b428dbd0ffc00d)
2534

2635
#### [1.0.6](https://github.com/rdkcentral/rdkNativeScript/compare/1.0.5...1.0.6)
@@ -44,7 +53,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
4453
> 7 September 2025
4554
4655
- RDKEMW-7489: Adding Href support [`#54`](https://github.com/rdkcentral/rdkNativeScript/pull/54)
47-
- RDKEMW-5556: Bug for terminateApplication [`#51`](https://github.com/rdkcentral/rdkNativeScript/pull/51)
56+
- Ticket:RDKEMW-5556: Bug for terminateApplication [`#51`](https://github.com/rdkcentral/rdkNativeScript/pull/51)
4857
- 1.0.4 release changelog updates [`2e56742`](https://github.com/rdkcentral/rdkNativeScript/commit/2e56742d0adda04fe61277fa0782e2b5b2dde19c)
4958
- Merge tag '1.0.3' into develop [`e15828d`](https://github.com/rdkcentral/rdkNativeScript/commit/e15828d5a330b072753e682f5c446b0f9ae14531)
5059

0 commit comments

Comments
 (0)