Skip to content

Commit

Permalink
scripts: Add lcov as coverage tool in run_ut script
Browse files Browse the repository at this point in the history
Twister starts use gcov tool by default.
Switch back to lcov

Signed-off-by: Tomasz Tyzenhauz <[email protected]>
  • Loading branch information
totyz authored and RobertGalatNordic committed May 6, 2024
1 parent 2f8856f commit ac663c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ci/run_ut.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function run_ut ()
echo "[INFO]: Run unit tests not executed"
return 0
fi
run_twister --platform native_posix --platform unit_testing --coverage --enable-ubsan --enable-lsan --enable-asan -T $(get_testcase_root $(realpath ${SIDEWALK_SDK_DIR}/tests/unit_tests))
run_twister --platform native_posix --platform unit_testing --coverage --coverage-tool lcov --enable-ubsan --enable-lsan --enable-asan -T $(get_testcase_root $(realpath ${SIDEWALK_SDK_DIR}/tests/unit_tests))
status=$?
echo "[INFO]: Remove files from coverage that are not under test and regenerate html report"
lcov -q --remove "${CURRENT_DIR}/twister-out/coverage.info" "${LCOV_EXCLUDE[@]}" -o "${CURRENT_DIR}/twister-out/new_coverage.info"
Expand Down

0 comments on commit ac663c2

Please sign in to comment.