From 7f775e0b5d29a9ca8eebac7aa4563282ce4706f9 Mon Sep 17 00:00:00 2001 From: taoxudonghaha Date: Fri, 18 Dec 2020 14:26:04 +0800 Subject: [PATCH] llt --- build.sh | 6 ++++-- cmake/FindModule.cmake | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 02cbf442..71a733d1 100644 --- a/build.sh +++ b/build.sh @@ -228,8 +228,10 @@ if [[ "X$ENABLE_GE_UT" = "Xon" || "X$ENABLE_GE_COV" = "Xon" ]]; then cd ${BASEPATH} rm -rf ${BASEPATH}/cov mkdir ${BASEPATH}/cov - gcovr -r ./ --exclude 'third_party' --exclude 'build' --exclude 'output' --exclude 'tests' --exclude 'inc' --print-summary --html --html-details -d -o cov/index.html -# fi + lcov -c -d build/tests/ut/ge -d build/tests/ut/common/graph/ -o cov/tmp.info + lcov --remove cov/tmp.info '*/output/*' '*/build/opensrc/*' '*/build/proto/*' '*/third_party/*' '*/tests/*' '/usr/local/*' -o cov/coverage.info + cd ${BASEPATH}/cov + genhtml coverage.info fi # generate output package in tar form, including ut/st libraries/executables diff --git a/cmake/FindModule.cmake b/cmake/FindModule.cmake index d0c85da2..e7d408b6 100644 --- a/cmake/FindModule.cmake +++ b/cmake/FindModule.cmake @@ -8,7 +8,7 @@ function(find_module module name path) return() endif() add_library(${module} INTERFACE) - find_library(${module}_LIBRARY_DIR NAMES ${name} NAMES_PER_DIR PATHS ${path} + find_library(${module}_LIBRARY_DIR NAMES ${name} PATHS ${path} PATH_SUFFIXES lib )