@@ -121,6 +121,14 @@ jobs:
121
121
with :
122
122
path : entservices-inputoutput
123
123
124
+ - name : Checkout googletest
125
+ if : steps.cache.outputs.cache-hit != 'true'
126
+ uses : actions/checkout@v3
127
+ with :
128
+ repository : google/googletest
129
+ path : googletest
130
+ ref : v1.15.0
131
+
124
132
- name : Apply patches ThunderTools
125
133
run : |
126
134
cd $GITHUB_WORKSPACE/ThunderTools
@@ -343,6 +351,22 @@ jobs:
343
351
&&
344
352
cmake --install build/mocks
345
353
354
+ - name : Build googletest
355
+ if : steps.cache.outputs.cache-hit != 'true'
356
+ run : >
357
+ cmake -G Ninja
358
+ -S "$GITHUB_WORKSPACE/googletest"
359
+ -B build/googletest
360
+ -DCMAKE_INSTALL_PREFIX="$GITHUB_WORKSPACE/install/usr"
361
+ -DCMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake"
362
+ -DGENERIC_CMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake"
363
+ -DBUILD_TYPE=Debug
364
+ -DBUILD_GMOCK=ON
365
+ &&
366
+ cmake --build build/googletest -j8
367
+ &&
368
+ cmake --install build/googletest
369
+
346
370
- name : Build entservices-inputoutput
347
371
run : >
348
372
cmake -G Ninja
@@ -369,6 +393,8 @@ jobs:
369
393
-I $GITHUB_WORKSPACE/entservices-testframework/Tests
370
394
-I $GITHUB_WORKSPACE/Thunder/Source
371
395
-I $GITHUB_WORKSPACE/Thunder/Source/core
396
+ -I $GITHUB_WORKSPACE/install/usr/include
397
+ -I $GITHUB_WORKSPACE/install/usr/include/WPEFramework
372
398
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/devicesettings.h
373
399
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/Iarm.h
374
400
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/Rfc.h
@@ -444,6 +470,8 @@ jobs:
444
470
-I $GITHUB_WORKSPACE/entservices-testframework/Tests
445
471
-I $GITHUB_WORKSPACE/Thunder/Source
446
472
-I $GITHUB_WORKSPACE/Thunder/Source/core
473
+ -I $GITHUB_WORKSPACE/install/usr/include
474
+ -I $GITHUB_WORKSPACE/install/usr/include/WPEFramework
447
475
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/devicesettings.h
448
476
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/Iarm.h
449
477
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/Rfc.h
@@ -460,7 +488,7 @@ jobs:
460
488
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/thunder/Communicator.h
461
489
--coverage
462
490
-Wall -Wno-unused-result -Wno-deprecated-declarations -Wno-error=format=
463
- -Wl,-wrap,system -Wl,-wrap,popen -Wl,-wrap,syslog
491
+ -Wl,-wrap,system -Wl,-wrap,popen -Wl,-wrap,syslog -Wl,--no-as-needed
464
492
-DENABLE_TELEMETRY_LOGGING
465
493
-DUSE_IARMBUS
466
494
-DENABLE_SYSTEM_GET_STORE_DEMO_LINK
0 commit comments