From a690c344aed0d085fa34edc1e526748dababf7cb Mon Sep 17 00:00:00 2001 From: "Zone.N" Date: Sun, 16 Jun 2024 14:39:34 +0800 Subject: [PATCH] test(ut): add cpu.hpp test Signed-off-by: Zone.N --- .github/workflows/workflow.yml | 1 + cmake/functions.cmake | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 82d5b619e..fbde85bbc 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -37,6 +37,7 @@ jobs: cmake --preset=build_x86_64 cmake --build build_x86_64 --target boot cmake --build build_x86_64 --target kernel + cmake --build build_x86_64 --target unit-test cmake --build build_x86_64 --target coverage - name: riscv64 diff --git a/cmake/functions.cmake b/cmake/functions.cmake index 6e6b4f5d8..4a54f9733 100644 --- a/cmake/functions.cmake +++ b/cmake/functions.cmake @@ -83,7 +83,8 @@ function(add_coverage_target) -b ${ARG_SOURCE_DIR} --no-external ${EXCLUDES} - --rc lcov_branch_coverage=1 + --rc branch_coverage=1 + --ignore-errors mismatch COMMAND ${GENHTML_EXE} ${COVERAGE_OUTPUT_DIR}/coverage.info -o ${COVERAGE_OUTPUT_DIR}