@@ -278,6 +278,8 @@ jobs:
278
278
-DCMAKE_INSTALL_PREFIX="$GITHUB_WORKSPACE/install/usr"
279
279
-DCMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake"
280
280
-DCMAKE_CXX_FLAGS="
281
+ -fprofile-arcs
282
+ -ftest-coverage
281
283
-DEXCEPTIONS_ENABLE=ON
282
284
-DUSE_THUNDER_R4=ON
283
285
-DTHUNDER_VERSION=4
@@ -346,6 +348,8 @@ jobs:
346
348
-DCMAKE_INSTALL_PREFIX="$GITHUB_WORKSPACE/install/usr"
347
349
-DCMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake"
348
350
-DCMAKE_CXX_FLAGS="
351
+ -fprofile-arcs
352
+ -ftest-coverage
349
353
-DEXCEPTIONS_ENABLE=ON
350
354
-DUSE_THUNDER_R4=ON
351
355
-DTHUNDER_VERSION=4
@@ -496,17 +500,17 @@ jobs:
496
500
run : >
497
501
PATH=$GITHUB_WORKSPACE/install/usr/bin:${PATH}
498
502
LD_LIBRARY_PATH=$GITHUB_WORKSPACE/install/usr/lib:$GITHUB_WORKSPACE/install/usr/lib/wpeframework/plugins:${LD_LIBRARY_PATH}
499
- GTEST_OUTPUT="json:$(pwd)/entservices-testframeworkL1TestResults .json"
503
+ GTEST_OUTPUT="json:$(pwd)/rdkL1TestResults .json"
500
504
RdkServicesL1Test &&
501
- cp -rf $(pwd)/entservices-testframeworkL1TestResults .json $GITHUB_WORKSPACE/entservices-testframeworkL1TestResultsWithoutValgrind .json &&
502
- rm -rf $(pwd)/entservices-testframeworkL1TestResults .json
505
+ cp -rf $(pwd)/rdkL1TestResults .json $GITHUB_WORKSPACE/rdkL1TestResultsWithoutValgrind .json &&
506
+ rm -rf $(pwd)/rdkL1TestResults .json
503
507
504
508
- name : Run unit tests with valgrind
505
509
if : ${{ !env.ACT }}
506
510
run : >
507
511
PATH=$GITHUB_WORKSPACE/install/usr/bin:${PATH}
508
512
LD_LIBRARY_PATH=$GITHUB_WORKSPACE/install/usr/lib:$GITHUB_WORKSPACE/install/usr/lib/wpeframework/plugins:${LD_LIBRARY_PATH}
509
- GTEST_OUTPUT="json:$(pwd)/entservices-testframeworkL1TestResults .json"
513
+ GTEST_OUTPUT="json:$(pwd)/rdkL1TestResults .json"
510
514
valgrind
511
515
--tool=memcheck
512
516
--log-file=valgrind_log
@@ -515,8 +519,8 @@ jobs:
515
519
--track-fds=yes
516
520
--fair-sched=try
517
521
RdkServicesL1Test &&
518
- cp -rf $(pwd)/entservices-testframeworkL1TestResults .json $GITHUB_WORKSPACE/entservices-testframeworkL1TestResultsWithValgrind .json &&
519
- rm -rf $(pwd)/entservices-testframeworkL1TestResults .json
522
+ cp -rf $(pwd)/rdkL1TestResults .json $GITHUB_WORKSPACE/rdkL1TestResultsWithValgrind .json &&
523
+ rm -rf $(pwd)/rdkL1TestResults .json
520
524
521
525
- name : Generate coverage
522
526
if : ${{ matrix.coverage == 'with-coverage' && !env.ACT }}
@@ -525,21 +529,22 @@ jobs:
525
529
&&
526
530
lcov -c
527
531
-o coverage.info
528
- -d build/entservices-testframework
532
+ -d build/entservices-inputoutput
529
533
&&
530
534
lcov
531
535
-r coverage.info
532
536
'/usr/include/*'
533
- '*/build/entservices-testframework /_deps/*'
537
+ '*/build/entservices-inputoutput /_deps/*'
534
538
'*/install/usr/include/*'
535
539
'*/Tests/headers/*'
536
540
'*/Tests/mocks/*'
537
541
'*/Tests/L1Tests/tests/*'
542
+ '*/Thunder/*'
538
543
-o filtered_coverage.info
539
544
&&
540
545
genhtml
541
546
-o coverage
542
- -t "entservices-testframework coverage"
547
+ -t "entservices-inputoutput coverage"
543
548
filtered_coverage.info
544
549
545
550
- name : Upload artifacts
@@ -550,12 +555,7 @@ jobs:
550
555
path : |
551
556
coverage/
552
557
valgrind_log
553
- entservices-testframeworkL1TestResultsWithoutValgrind .json
554
- entservices-testframeworkL1TestResultsWithValgrind .json
558
+ rdkL1TestResultsWithoutValgrind .json
559
+ rdkL1TestResultsWithValgrind .json
555
560
if-no-files-found : warn
556
561
557
- - name : Coping results to /tmp/Gtest_Report/
558
- if : ${{ !env.ACT }}
559
- run : >
560
- mkdir -p /tmp/Gtest_Report/ &&
561
- cp -r valgrind_log entservices-testframeworkL1TestResultsWithoutValgrind.json entservices-testframeworkL1TestResultsWithValgrind.json coverage /tmp/Gtest_Report/
0 commit comments