Browse Source

llt

pull/649/head
taoxudonghaha 5 years ago
parent
commit
7f775e0b5d
2 changed files with 5 additions and 3 deletions
  1. +4
    -2
      build.sh
  2. +1
    -1
      cmake/FindModule.cmake

+ 4
- 2
build.sh View File

@@ -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


+ 1
- 1
cmake/FindModule.cmake View File

@@ -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
)



Loading…
Cancel
Save