@@ -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
@@ -330,7 +332,7 @@ jobs:
330
332
-DDS_FOUND=ON
331
333
-DHAS_FRONT_PANEL=ON
332
334
-DRDK_SERVICES_L1_TEST=ON
333
- -DPLUGIN_HDCPPROFILE=ON
335
+ -DPLUGIN_HDCPPROFILE=OFF
334
336
-DUSE_THUNDER_R4=ON
335
337
-DHIDE_NON_EXTERNAL_SYMBOLS=OFF
336
338
&&
@@ -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
@@ -398,7 +402,7 @@ jobs:
398
402
-DCMAKE_DISABLE_FIND_PACKAGE_RBus=ON
399
403
-DCMAKE_BUILD_TYPE=Debug
400
404
-DDS_FOUND=ON
401
- -DPLUGIN_HDCPPROFILE=ON
405
+ -DPLUGIN_HDCPPROFILE=OFF
402
406
-DRDK_SERVICES_L1_TEST=ON
403
407
-DUSE_THUNDER_R4=ON
404
408
-DHIDE_NON_EXTERNAL_SYMBOLS=OFF
@@ -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,47 +519,43 @@ 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
- - name : Generate coverage
522
- if : ${{ matrix.coverage == 'with-coverage' && !env.ACT }}
523
- run : >
524
- cp $GITHUB_WORKSPACE/entservices-testframework/Tests/L1Tests/.lcovrc_l1 ~/.lcovrc
525
- &&
526
- lcov -c
527
- -o coverage.info
528
- -d build/entservices-testframework
529
- &&
530
- lcov
531
- -r coverage.info
532
- '/usr/include/*'
533
- '*/build/entservices-testframework/_deps/*'
534
- '*/install/usr/include/*'
535
- '*/Tests/headers/*'
536
- '*/Tests/mocks/*'
537
- '*/Tests/L1Tests/tests/*'
538
- -o filtered_coverage.info
539
- &&
540
- genhtml
541
- -o coverage
542
- -t "entservices-testframework coverage"
543
- filtered_coverage.info
525
+ # - name: Generate coverage
526
+ # if: ${{ matrix.coverage == 'with-coverage' && !env.ACT }}
527
+ # run: >
528
+ # cp $GITHUB_WORKSPACE/entservices-testframework/Tests/L1Tests/.lcovrc_l1 ~/.lcovrc
529
+ # &&
530
+ # lcov -c
531
+ # -o coverage.info
532
+ # -d build/entservices-inputoutput
533
+ # &&
534
+ # lcov
535
+ # -r coverage.info
536
+ # '/usr/include/*'
537
+ # '*/build/entservices-inputoutput/_deps/*'
538
+ # '*/install/usr/include/*'
539
+ # '*/Tests/headers/*'
540
+ # '*/Tests/mocks/*'
541
+ # '*/Tests/L1Tests/tests/*'
542
+ # '*/Thunder/*'
543
+ # -o filtered_coverage.info
544
+ # &&
545
+ # genhtml
546
+ # -o coverage
547
+ # -t "entservices-inputoutput coverage"
548
+ # filtered_coverage.info
544
549
545
- - name : Upload artifacts
546
- if : ${{ !env.ACT }}
547
- uses : actions/upload-artifact@v4
548
- with :
549
- name : artifacts
550
- path : |
551
- coverage/
552
- valgrind_log
553
- entservices-testframeworkL1TestResultsWithoutValgrind .json
554
- entservices-testframeworkL1TestResultsWithValgrind .json
555
- if-no-files-found : warn
550
+ # - name: Upload artifacts
551
+ # if: ${{ !env.ACT }}
552
+ # uses: actions/upload-artifact@v4
553
+ # with:
554
+ # name: artifacts
555
+ # path: |
556
+ # coverage/
557
+ # valgrind_log
558
+ # rdkL1TestResultsWithoutValgrind .json
559
+ # rdkL1TestResultsWithValgrind .json
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