Skip to content

Commit 0c3d0dd

Browse files
Merge branch 'develop' into feature/action-deploy-for/develop
2 parents c945828 + 1ea0522 commit 0c3d0dd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+6482
-7605
lines changed

.github/workflows/L1-tests.yml

Lines changed: 53 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
name: L1-tests
22

33
on:
4-
push:
5-
branches: [ main, develop, 'sprint/**', 'release/**' ]
6-
pull_request:
7-
branches: [ main, develop, 'sprint/**', 'release/**' ]
4+
workflow_call:
5+
inputs:
6+
caller_source:
7+
description: "Specifies the source type (e.g., local or test framework) for the workflow."
8+
required: true
9+
type: string
10+
secrets:
11+
RDKCM_RDKE:
12+
required: true
813

914
env:
1015
BUILD_TYPE: Debug
@@ -66,6 +71,11 @@ jobs:
6671
python-version: '3.x'
6772
- run: pip install jsonref
6873

74+
- name: ACK External Trigger
75+
run: |
76+
echo "Message: External Trigger Received for L1 Tests"
77+
echo "Trigger Source: ${{ inputs.caller_source }}"
78+
6979
- name: Set up CMake
7080
uses: jwlawson/[email protected]
7181
with:
@@ -117,10 +127,19 @@ jobs:
117127
token: ${{ secrets.RDKCM_RDKE }}
118128

119129
- name: Checkout entservices-inputoutput
130+
if: ${{ inputs.caller_source == 'local' }}
120131
uses: actions/checkout@v3
121132
with:
122133
path: entservices-inputoutput
123134

135+
- name: Checkout entservices-inputoutput-testframework
136+
if: ${{ inputs.caller_source == 'testframework' }}
137+
uses: actions/checkout@v3
138+
with:
139+
repository: rdkcentral/entservices-inputoutput
140+
path: entservices-inputoutput
141+
ref: develop
142+
124143
- name: Checkout googletest
125144
if: steps.cache.outputs.cache-hit != 'true'
126145
uses: actions/checkout@v3
@@ -255,6 +274,9 @@ jobs:
255274
rdk/ds/frontPanelIndicator.hpp
256275
rdk/ds/frontPanelConfig.hpp
257276
rdk/ds/frontPanelTextDisplay.hpp
277+
rdk/ds/audioOutputPortType.hpp
278+
rdk/ds/audioOutputPortConfig.hpp
279+
rdk/ds/pixelResolution.hpp
258280
rdk/iarmbus/libIARM.h
259281
rdk/iarmbus/libIBus.h
260282
rdk/iarmbus/libIBusDaemon.h
@@ -271,14 +293,15 @@ jobs:
271293
telemetry_busmessage_sender.h
272294
maintenanceMGR.h
273295
pkg.h
296+
edid-parser.hpp
274297
secure_wrapper.h
275298
wpa_ctrl.h
276299
proc/readproc.h
277300
systemaudioplatform.h
278301
gdialservice.h
279302
gdialservicecommon.h
280303
&&
281-
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 .
304+
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 .
282305
283306
- name: Set clang toolchain
284307
if: ${{ matrix.compiler == 'clang' }}
@@ -288,6 +311,24 @@ jobs:
288311
if: ${{ matrix.compiler == 'gcc' && matrix.coverage == 'with-coverage' && !env.ACT }}
289312
run: echo "TOOLCHAIN_FILE=$GITHUB_WORKSPACE/entservices-testframework/Tests/gcc-with-coverage.cmake" >> $GITHUB_ENV
290313

314+
- name: Build googletest
315+
if: steps.cache.outputs.cache-hit != 'true'
316+
run: >
317+
cmake -G Ninja
318+
-S "$GITHUB_WORKSPACE/googletest"
319+
-B build/googletest
320+
-DCMAKE_INSTALL_PREFIX="$GITHUB_WORKSPACE/install/usr"
321+
-DCMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake"
322+
-DGENERIC_CMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake"
323+
-DBUILD_TYPE=Debug
324+
-DBUILD_GMOCK=ON
325+
-DBUILD_SHARED_LIBS=OFF
326+
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
327+
&&
328+
cmake --build build/googletest -j8
329+
&&
330+
cmake --install build/googletest
331+
291332
- name: Build mocks
292333
run: >
293334
cmake
@@ -317,8 +358,11 @@ jobs:
317358
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/ccec/drivers
318359
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/network
319360
-I $GITHUB_WORKSPACE/entservices-testframework/Tests
361+
-I $GITHUB_WORKSPACE/entservices-inputoutput/helpers
320362
-I $GITHUB_WORKSPACE/Thunder/Source
321363
-I $GITHUB_WORKSPACE/Thunder/Source/core
364+
-I $GITHUB_WORKSPACE/install/usr/include
365+
-I ./usr/include/libdrm
322366
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/devicesettings.h
323367
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/Iarm.h
324368
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/Rfc.h
@@ -350,22 +394,6 @@ jobs:
350394
&&
351395
cmake --install build/mocks
352396
353-
- name: Build googletest
354-
if: steps.cache.outputs.cache-hit != 'true'
355-
run: >
356-
cmake -G Ninja
357-
-S "$GITHUB_WORKSPACE/googletest"
358-
-B build/googletest
359-
-DCMAKE_INSTALL_PREFIX="$GITHUB_WORKSPACE/install/usr"
360-
-DCMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake"
361-
-DGENERIC_CMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake"
362-
-DBUILD_TYPE=Debug
363-
-DBUILD_GMOCK=ON
364-
&&
365-
cmake --build build/googletest -j8
366-
&&
367-
cmake --install build/googletest
368-
369397
- name: Build entservices-inputoutput
370398
run: >
371399
cmake -G Ninja
@@ -433,10 +461,9 @@ jobs:
433461
-DHAS_FRONT_PANEL=ON
434462
-DRDK_SERVICES_L1_TEST=ON
435463
-DPLUGIN_AVINPUT=ON
436-
-DPLUGIN_HDMIINPUT=ON
437464
-DPLUGIN_HDCPPROFILE=ON
438465
-DPLUGIN_HDMICECSOURCE=ON
439-
-DPLUGIN_HDMICECSINK=OFF
466+
-DPLUGIN_HDMICECSINK=ON
440467
-DUSE_THUNDER_R4=ON
441468
-DHIDE_NON_EXTERNAL_SYMBOLS=OFF
442469
&&
@@ -473,6 +500,7 @@ jobs:
473500
-I $GITHUB_WORKSPACE/Thunder/Source/core
474501
-I $GITHUB_WORKSPACE/install/usr/include
475502
-I $GITHUB_WORKSPACE/install/usr/include/WPEFramework
503+
-I ./usr/include/libdrm
476504
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/devicesettings.h
477505
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/Iarm.h
478506
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/Rfc.h
@@ -511,10 +539,9 @@ jobs:
511539
-DCMAKE_BUILD_TYPE=Debug
512540
-DDS_FOUND=ON
513541
-DPLUGIN_AVINPUT=ON
514-
-DPLUGIN_HDMIINPUT=ON
515542
-DPLUGIN_HDCPPROFILE=ON
516543
-DPLUGIN_HDMICECSOURCE=ON
517-
-DPLUGIN_HDMICECSINK=OFF
544+
-DPLUGIN_HDMICECSINK=ON
518545
-DRDK_SERVICES_L1_TEST=ON
519546
-DUSE_THUNDER_R4=ON
520547
-DHIDE_NON_EXTERNAL_SYMBOLS=OFF
@@ -663,7 +690,7 @@ jobs:
663690
if: ${{ !env.ACT }}
664691
uses: actions/upload-artifact@v4
665692
with:
666-
name: artifacts
693+
name: artifacts-L1-inputoutput
667694
path: |
668695
coverage/
669696
valgrind_log

.github/workflows/L2-tests.yml

Lines changed: 52 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
name: L2-tests
22

33
on:
4-
push:
5-
branches: [ main, develop, 'sprint/**', 'release/**' ]
6-
pull_request:
7-
branches: [ main, develop, 'sprint/**', 'release/**' ]
4+
workflow_call:
5+
inputs:
6+
caller_source:
7+
description: "Specifies the source type (e.g., local or test framework) for the workflow."
8+
required: true
9+
type: string
10+
secrets:
11+
RDKCM_RDKE:
12+
required: true
813

914
env:
1015
BUILD_TYPE: Debug
@@ -36,6 +41,11 @@ jobs:
3641
python-version: '3.x'
3742
- run: pip install jsonref
3843

44+
- name: ACK External Trigger
45+
run: |
46+
echo "Message: External Trigger Received for L2 Tests"
47+
echo "Trigger Source: ${{ inputs.caller_source }}"
48+
3949
- name: Set up CMake
4050
uses: jwlawson/[email protected]
4151
with:
@@ -79,10 +89,19 @@ jobs:
7989
ref: R4.4.3
8090

8191
- name: Checkout entservices-inputoutput
92+
if: ${{ inputs.caller_source == 'local' }}
8293
uses: actions/checkout@v3
8394
with:
8495
path: entservices-inputoutput
8596

97+
- name: Checkout entservices-inputoutput-testframework
98+
if: ${{ inputs.caller_source == 'testframework' }}
99+
uses: actions/checkout@v3
100+
with:
101+
repository: rdkcentral/entservices-inputoutput
102+
path: entservices-inputoutput
103+
ref: develop
104+
86105
- name: Checkout entservices-testframework
87106
uses: actions/checkout@v3
88107
with:
@@ -201,6 +220,9 @@ jobs:
201220
rdk/ds/manager.hpp
202221
rdk/ds/dsTypes.h
203222
rdk/ds/dsUtl.h
223+
rdk/ds/audioOutputPortType.hpp
224+
rdk/ds/audioOutputPortConfig.hpp
225+
rdk/ds/pixelResolution.hpp
204226
rdk/iarmbus/libIARM.h
205227
rdk/iarmbus/libIBus.h
206228
rdk/iarmbus/libIBusDaemon.h
@@ -215,6 +237,7 @@ jobs:
215237
systemaudioplatform.h
216238
maintenanceMGR.h
217239
pkg.h
240+
edid-parser.hpp
218241
btmgr.h
219242
tvError.h
220243
tvTypes.h
@@ -230,7 +253,7 @@ jobs:
230253
rdk/ds/VideoDFC.hpp
231254
dsRpc.h
232255
&&
233-
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 .
256+
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 .
234257
235258
- name: Set clang toolchain
236259
if: ${{ matrix.compiler == 'clang' }}
@@ -240,23 +263,6 @@ jobs:
240263
if: ${{ matrix.compiler == 'gcc' && matrix.coverage == 'with-coverage' && !env.ACT }}
241264
run: echo "TOOLCHAIN_FILE=$GITHUB_WORKSPACE/entservices-testframework/Tests/gcc-with-coverage.cmake" >> $GITHUB_ENV
242265

243-
- name: Build mocks
244-
run: >
245-
cmake
246-
-S "$GITHUB_WORKSPACE/entservices-testframework/Tests/mocks"
247-
-B build/mocks
248-
-DBUILD_SHARED_LIBS=ON
249-
-DCMAKE_TOOLCHAIN_FILE="${{ env.TOOLCHAIN_FILE }}"
250-
-DCMAKE_INSTALL_PREFIX="$GITHUB_WORKSPACE/install/usr"
251-
-DCMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake"
252-
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
253-
-DCMAKE_CXX_FLAGS="
254-
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers"
255-
&&
256-
cmake --build build/mocks -j8
257-
&&
258-
cmake --install build/mocks
259-
260266
- name: Build googletest
261267
if: steps.cache.outputs.cache-hit != 'true'
262268
run: >
@@ -268,11 +274,31 @@ jobs:
268274
-DGENERIC_CMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake"
269275
-DBUILD_TYPE=Debug
270276
-DBUILD_GMOCK=ON
277+
-DBUILD_SHARED_LIBS=OFF
278+
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
271279
&&
272280
cmake --build build/googletest -j8
273281
&&
274282
cmake --install build/googletest
275283
284+
- name: Build mocks
285+
run: >
286+
cmake
287+
-S "$GITHUB_WORKSPACE/entservices-testframework/Tests/mocks"
288+
-B build/mocks
289+
-DBUILD_SHARED_LIBS=ON
290+
-DCMAKE_TOOLCHAIN_FILE="${{ env.TOOLCHAIN_FILE }}"
291+
-DCMAKE_INSTALL_PREFIX="$GITHUB_WORKSPACE/install/usr"
292+
-DCMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake"
293+
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
294+
-DCMAKE_CXX_FLAGS="
295+
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers
296+
-I $GITHUB_WORKSPACE/install/usr/include"
297+
&&
298+
cmake --build build/mocks -j8
299+
&&
300+
cmake --install build/mocks
301+
276302
- name: Build entservices-inputoutput
277303
run: >
278304
cmake
@@ -319,26 +345,7 @@ jobs:
319345
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/tvSettingsExtODM.h
320346
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/tvSettingsODM.h
321347
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/tvTypes.h
322-
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/ds/videoOutputPortType.hpp
323-
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/ds/videoOutputPortConfig.hpp
324-
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/ds/videoResolution.hpp
325-
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/ds/sleepMode.hpp
326-
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/ds/frontPanelConfig.hpp
327-
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/ds/frontPanelTextDisplay.hpp
328-
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/ds/audioOutputPortType.hpp
329-
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/ds/frontPanelConfig.hpp
330-
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/ds/frontPanelTextDisplay.hpp
331-
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/ds/manager.hpp
332-
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/ds/audioOutputPortConfig.hpp
333-
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/iarmbus/iarmUtil.h
334-
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/systemaudioplatform.h
335-
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/list.hpp
336-
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/dsDisplay.h
337-
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/ds/AudioStereoMode.hpp
338-
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/ds/VideoDFC.hpp
339-
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/dsRpc.h
340-
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/ds/dsError.h
341-
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/ds/dsUtl.h
348+
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/essos-resmgr.h
342349
-Werror -Wall -Wno-unused-result -Wno-deprecated-declarations -Wno-error=format=
343350
-DUSE_IARMBUS
344351
-DRDK_SERVICE_L2_TEST
@@ -391,9 +398,10 @@ jobs:
391398
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/iarmmgrs-hal
392399
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/systemservices
393400
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/systemservices/proc
394-
-I $GITHUB_WORKSPACE/entservices-deviceanddisplay/helpers
401+
-I $GITHUB_WORKSPACE/entservices-inputoutput/helpers
395402
-I $GITHUB_WORKSPACE/install/usr/include
396403
-I $GITHUB_WORKSPACE/install/usr/include/WPEFramework
404+
-I ./usr/include/libdrm
397405
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/devicesettings.h
398406
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/Iarm.h
399407
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/Rfc.h
@@ -597,7 +605,7 @@ jobs:
597605
if: ${{ !env.ACT }}
598606
uses: actions/upload-artifact@v4
599607
with:
600-
name: artifacts
608+
name: artifacts-L2-inputoutput
601609
path: |
602610
coverage/
603611
valgrind_log

0 commit comments

Comments
 (0)