Skip to content

Commit

Permalink
Merge branch 'latest' into net
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
  • Loading branch information
matttbe committed Sep 25, 2024
2 parents f489eee + ecda58d commit 71e9b7e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ TESTS_SUMMARY=
CONCLUSION=
KMEMLEAK=
LCOV_FILE=
LCOV_TXT=
LCOV_HTML=

EXIT_STATUS=0
Expand Down Expand Up @@ -262,6 +263,7 @@ setup_env() { local mode net=()
CONCLUSION="${RESULTS_DIR}/conclusion.txt"
KMEMLEAK="${RESULTS_DIR}/kmemleak.txt"
LCOV_FILE="${RESULTS_DIR}/kernel.lcov"
LCOV_TXT="${RESULTS_DIR}/coverage.txt"
LCOV_HTML="${RESULTS_DIR}/lcov"

KVERSION=$(make -C "${KERNEL_SRC}" -s kernelversion) ## 5.17.0 or 5.17.0-rc8
Expand Down Expand Up @@ -1051,9 +1053,11 @@ kmemleak_scan() {
gcov_extract() {
if [ -d /sys/kernel/debug/gcov ]; then
log_section_start "GCOV capture"
lcov --capture --keep-going --rc geninfo_unexecuted_blocks=1 \
--function-coverage --branch-coverage \
-b "${VIRTME_BUILD_DIR}" -j "${INPUT_CPUS}" -o "${LCOV_FILE}"
log_section_end
fi
}
Expand Down Expand Up @@ -1509,6 +1513,10 @@ analyze() {
EXIT_STATUS=1
fi

if [ -s "${LCOV_FILE}" ]; then
lcov --branch-coverage --summary "${LCOV_FILE}" > "${LCOV_TXT}" || true
fi

echo -ne "${COLOR_RESET}"

if [ "${EXIT_STATUS}" = "1" ]; then
Expand Down

0 comments on commit 71e9b7e

Please sign in to comment.