Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ Thumbs.db
.humanize
.codex
.codex_tmp
coverage/html_report/
1 change: 1 addition & 0 deletions cmake/external.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function(ExternalProject repourl tag destination)
-DCMAKE_CXX_STANDARD=17
PREFIX "${destination}"
INSTALL_DIR "${destination}"
UPDATE_COMMAND ""
INSTALL_COMMAND "${CMAKE_COMMAND}" --install "<BINARY_DIR>" --prefix
"${destination}")
endfunction()
6 changes: 3 additions & 3 deletions coverage/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
set -xe

ROOT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}")/../" && pwd )"
BUILD_PATH=${2:-$ROOT_PATH/../build}
OUTOUT_DIR=${BASH_SOURCE[0]}
BUILD_PATH=${2:-$ROOT_PATH/build}
OUTOUT_DIR=$ROOT_PATH/coverage
echo $BUILD_PATH
function lcov_init(){
# install lcov
Expand All @@ -37,7 +37,7 @@ function lcov_init(){
function gen_cpp_covinfo(){
# run paddle coverage
cd $BUILD_PATH
lcov --capture -d ${OUTOUT_DIR} -o coverage.info --rc branch_coverage=0 --ignore-errors inconsistent --ignore-errors source
lcov --capture -d ${BUILD_PATH} -o coverage.info --rc branch_coverage=0 --ignore-errors inconsistent,source,mismatch,gcov
}

gen_cpp_covinfo
Expand Down
Loading