Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
38 changes: 35 additions & 3 deletions .github/workflows/L1-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: L1-tests

on:
push:
branches: [ main, develop, 'sprint/**', 'release/**', 'topic/RDK*' ]
branches: [ main, develop, 'sprint/**', 'release/**' ]
pull_request:
branches: [ main, develop, 'sprint/**', 'release/**', 'topic/RDK*' ]
branches: [ main, develop, 'sprint/**', 'release/**' ]

env:
BUILD_TYPE: Debug
Expand Down Expand Up @@ -121,6 +121,14 @@ jobs:
with:
path: entservices-inputoutput

- name: Checkout googletest
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/checkout@v3
with:
repository: google/googletest
path: googletest
ref: v1.15.0

- name: Apply patches ThunderTools
run: |
cd $GITHUB_WORKSPACE/ThunderTools
Expand Down Expand Up @@ -342,6 +350,22 @@ jobs:
&&
cmake --install build/mocks

- name: Build googletest
if: steps.cache.outputs.cache-hit != 'true'
run: >
cmake -G Ninja
-S "$GITHUB_WORKSPACE/googletest"
-B build/googletest
-DCMAKE_INSTALL_PREFIX="$GITHUB_WORKSPACE/install/usr"
-DCMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake"
-DGENERIC_CMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake"
-DBUILD_TYPE=Debug
-DBUILD_GMOCK=ON
&&
cmake --build build/googletest -j8
&&
cmake --install build/googletest

- name: Build entservices-inputoutput
run: >
cmake -G Ninja
Expand All @@ -368,6 +392,8 @@ jobs:
-I $GITHUB_WORKSPACE/entservices-testframework/Tests
-I $GITHUB_WORKSPACE/Thunder/Source
-I $GITHUB_WORKSPACE/Thunder/Source/core
-I $GITHUB_WORKSPACE/install/usr/include
-I $GITHUB_WORKSPACE/install/usr/include/WPEFramework
-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 Down Expand Up @@ -406,6 +432,8 @@ jobs:
-DDS_FOUND=ON
-DHAS_FRONT_PANEL=ON
-DRDK_SERVICES_L1_TEST=ON
-DPLUGIN_AVINPUT=ON
-DPLUGIN_HDMIINPUT=ON
-DPLUGIN_HDCPPROFILE=ON
-DPLUGIN_HDMICECSOURCE=ON
-DPLUGIN_HDMICECSINK=ON
Expand Down Expand Up @@ -443,6 +471,8 @@ jobs:
-I $GITHUB_WORKSPACE/entservices-testframework/Tests
-I $GITHUB_WORKSPACE/Thunder/Source
-I $GITHUB_WORKSPACE/Thunder/Source/core
-I $GITHUB_WORKSPACE/install/usr/include
-I $GITHUB_WORKSPACE/install/usr/include/WPEFramework
-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 @@ -459,7 +489,7 @@ jobs:
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/thunder/Communicator.h
--coverage
-Wall -Wno-unused-result -Wno-deprecated-declarations -Wno-error=format=
-Wl,-wrap,system -Wl,-wrap,popen -Wl,-wrap,syslog
-Wl,-wrap,system -Wl,-wrap,popen -Wl,-wrap,syslog -Wl,--no-as-needed
-DENABLE_TELEMETRY_LOGGING
-DUSE_IARMBUS
-DENABLE_SYSTEM_GET_STORE_DEMO_LINK
Expand All @@ -480,6 +510,8 @@ jobs:
-DCMAKE_DISABLE_FIND_PACKAGE_CEC=ON
-DCMAKE_BUILD_TYPE=Debug
-DDS_FOUND=ON
-DPLUGIN_AVINPUT=ON
-DPLUGIN_HDMIINPUT=ON
-DPLUGIN_HDCPPROFILE=ON
-DPLUGIN_HDMICECSOURCE=ON
-DPLUGIN_HDMICECSINK=ON
Expand Down
36 changes: 33 additions & 3 deletions .github/workflows/L2-tests.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: L2-tests

#enable the workflow incase of any plugin/testcase changes
#Add "Tests/L2Tests" subdirectory in CMakeLists.txt, when enabling L2Tests
on:
workflow_dispatch:
push:
branches: [ main, develop, 'sprint/**', 'release/**' ]
pull_request:
branches: [ main, develop, 'sprint/**', 'release/**' ]

env:
BUILD_TYPE: Debug
Expand Down Expand Up @@ -90,6 +91,14 @@ jobs:
ref: develop
token: ${{ secrets.RDKCM_RDKE }}

- name: Checkout googletest
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/checkout@v3
with:
repository: google/googletest
path: googletest
ref: v1.15.0

- name: Apply patches ThunderTools
run: |
cd $GITHUB_WORKSPACE/ThunderTools
Expand Down Expand Up @@ -248,6 +257,22 @@ jobs:
&&
cmake --install build/mocks

- name: Build googletest
if: steps.cache.outputs.cache-hit != 'true'
run: >
cmake -G Ninja
-S "$GITHUB_WORKSPACE/googletest"
-B build/googletest
-DCMAKE_INSTALL_PREFIX="$GITHUB_WORKSPACE/install/usr"
-DCMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake"
-DGENERIC_CMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake"
-DBUILD_TYPE=Debug
-DBUILD_GMOCK=ON
&&
cmake --build build/googletest -j8
&&
cmake --install build/googletest

- name: Build entservices-inputoutput
run: >
cmake
Expand All @@ -274,6 +299,8 @@ jobs:
-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/install/usr/include
-I $GITHUB_WORKSPACE/install/usr/include/WPEFramework
-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 Down Expand Up @@ -365,6 +392,8 @@ jobs:
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/systemservices
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/systemservices/proc
-I $GITHUB_WORKSPACE/entservices-deviceanddisplay/helpers
-I $GITHUB_WORKSPACE/install/usr/include
-I $GITHUB_WORKSPACE/install/usr/include/WPEFramework
-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 @@ -384,6 +413,7 @@ jobs:
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/tvSettingsODM.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/tvTypes.h
-Werror -Wall -Wno-unused-result -Wno-deprecated-declarations -Wno-error=format=
-Wl,--no-as-needed
-DUSE_IARMBUS
-DRDK_SERVICE_L2_TEST
-DDISABLE_SECURITY_TOKEN
Expand Down
Loading
Loading