@@ -2,7 +2,10 @@ name: L2-tests
2
2
3
3
# enable the workflow incase of any plugin/testcase changes
4
4
on :
5
- workflow_dispatch :
5
+ push :
6
+ branches : [ main, develop, 'sprint/**', 'release/**' ]
7
+ pull_request :
8
+ branches : [ main, develop, 'sprint/**', 'release/**' ]
6
9
7
10
env :
8
11
BUILD_TYPE : Debug
89
92
ref : develop
90
93
token : ${{ secrets.RDKCM_RDKE }}
91
94
95
+ - name : Checkout googletest
96
+ if : steps.cache.outputs.cache-hit != 'true'
97
+ uses : actions/checkout@v3
98
+ with :
99
+ repository : google/googletest
100
+ path : googletest
101
+ ref : v1.15.0
102
+
92
103
- name : Apply patches ThunderTools
93
104
run : |
94
105
cd $GITHUB_WORKSPACE/ThunderTools
@@ -248,6 +259,22 @@ jobs:
248
259
&&
249
260
cmake --install build/mocks
250
261
262
+ - name : Build googletest
263
+ if : steps.cache.outputs.cache-hit != 'true'
264
+ run : >
265
+ cmake -G Ninja
266
+ -S "$GITHUB_WORKSPACE/googletest"
267
+ -B build/googletest
268
+ -DCMAKE_INSTALL_PREFIX="$GITHUB_WORKSPACE/install/usr"
269
+ -DCMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake"
270
+ -DGENERIC_CMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake"
271
+ -DBUILD_TYPE=Debug
272
+ -DBUILD_GMOCK=ON
273
+ &&
274
+ cmake --build build/googletest -j8
275
+ &&
276
+ cmake --install build/googletest
277
+
251
278
- name : Build entservices-inputoutput
252
279
run : >
253
280
cmake
@@ -274,6 +301,7 @@ jobs:
274
301
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/iarmmgrs-hal
275
302
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/systemservices
276
303
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/systemservices/proc
304
+ -I $GITHUB_WORKSPACE/install/usr/include
277
305
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/devicesettings.h
278
306
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/Iarm.h
279
307
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/Rfc.h
@@ -365,6 +393,7 @@ jobs:
365
393
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/systemservices
366
394
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/systemservices/proc
367
395
-I $GITHUB_WORKSPACE/entservices-deviceanddisplay/helpers
396
+ -I $GITHUB_WORKSPACE/install/usr/include
368
397
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/devicesettings.h
369
398
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/Iarm.h
370
399
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/Rfc.h
@@ -384,6 +413,7 @@ jobs:
384
413
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/tvSettingsODM.h
385
414
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/tvTypes.h
386
415
-Werror -Wall -Wno-unused-result -Wno-deprecated-declarations -Wno-error=format=
416
+ -Wl,--no-as-needed
387
417
-DUSE_IARMBUS
388
418
-DRDK_SERVICE_L2_TEST
389
419
-DDISABLE_SECURITY_TOKEN
0 commit comments