diff --git a/.github/workflows/test-attach.yml b/.github/workflows/test-attach.yml index 70f37369..ebfdf0c3 100644 --- a/.github/workflows/test-attach.yml +++ b/.github/workflows/test-attach.yml @@ -45,7 +45,7 @@ jobs: ./build/attach/frida_uprobe_attach_impl/bpftime_frida_uprobe_attach_tests - name: Generate frida uprobe attach test coverage run: | - lcov --capture --directory . --output-file coverage-uprobe.info + lcov --capture --directory . --output-file coverage-uprobe.info --gcov-tool $(which gcov-12) lcov --remove coverage.info '/usr/*' --output-file coverage-uprobe.info lcov --list coverage-uprobe.info - name: Upload uprobe coverage @@ -68,7 +68,7 @@ jobs: ./build/attach/syscall_trace_attach_impl/bpftime_syscall_trace_attach_tests - name: Generate syscall trace uprobe attach coverage run: | - lcov --capture --directory . --output-file coverage-syscall-trace.info + lcov --capture --directory . --output-file coverage-syscall-trace.info --gcov-tool $(which gcov-12) lcov --remove coverage-syscall-trace.info '/usr/*' --output-file coverage-syscall-trace.info lcov --list coverage-syscall-trace.info - name: Upload uprobe coverage diff --git a/.github/workflows/test-runtime.yml b/.github/workflows/test-runtime.yml index f6fab15a..309f1623 100644 --- a/.github/workflows/test-runtime.yml +++ b/.github/workflows/test-runtime.yml @@ -39,23 +39,37 @@ jobs: cmake --build build --config Debug --target bpftime_runtime_tests -j$(nproc) - name: Test Runtime run: ./build/runtime/unit-test/bpftime_runtime_tests - - name: upload runtime coverage + - name: Generate runtime coverage run: | - lcov --capture --directory . --output-file coverage.info - lcov --remove coverage.info '/usr/*' --output-file coverage.info - lcov --list coverage.info + lcov --capture --directory . --output-file coverage-runtime.info --gcov-tool $(which gcov-12) + lcov --remove coverage-runtime.info '/usr/*' --output-file coverage-runtime.info + lcov --list coverage-runtime.info + - name: Upload runtime coverage + uses: actions/upload-artifact@v4 + with: + name: coverage-runtime + include-hidden-files: false + path: | + ./coverage-runtime.info + - name: build runtime with mpk enable run: | rm -rf build cmake -Bbuild -DTEST_LCOV=ON -DBPFTIME_LLVM_JIT=YES -DBPFTIME_ENABLE_UNIT_TESTING=YES -DBPFTIME_ENABLE_MPK=YES -DCMAKE_BUILD_TYPE=Debug cmake --build build --config Debug --target bpftime_runtime_tests -j$(nproc) - - name: upload runtime with mpk enable coverage - run: | - lcov --capture --directory . --output-file coverage.info - lcov --remove coverage.info '/usr/*' --output-file coverage.info - lcov --list coverage.info - - - name: test runtime with mpk run: ./build/runtime/unit-test/bpftime_runtime_tests + - name: Generate runtime with mpk enable coverage + run: | + lcov --capture --directory . --output-file coverage-runtime-mpk.info --gcov-tool $(which gcov-12) + lcov --remove coverage-runtime-mpk.info '/usr/*' --output-file coverage-runtime-mpk.info + lcov --list coverage-runtime-mpk.info + - name: Upload runtime-mpk coverage + uses: actions/upload-artifact@v4 + with: + name: coverage-runtime-mpk + include-hidden-files: false + path: | + ./coverage-runtime-mpk.info +