mirror of https://github.com/milvus-io/milvus.git
Merge branch 'branch-0.4.0' into 'branch-0.4.0'
MS-505: Install core unit test and add to coverage See merge request megasearch/milvus!506 Former-commit-id: 5dfd0b831050299e8a8e1c0fffae861da2fd1ee7pull/191/head
commit
ae352dfa23
|
@ -92,7 +92,7 @@ Please mark all change in change log and use the ticket from JIRA.
|
||||||
- MS-487 - Define metric type in CreateTable
|
- MS-487 - Define metric type in CreateTable
|
||||||
- MS-488 - Improve code format in scheduler
|
- MS-488 - Improve code format in scheduler
|
||||||
- MS-495 - cmake: integrated knowhere
|
- MS-495 - cmake: integrated knowhere
|
||||||
- MS-505 - Install core unit test
|
- MS-505 - Install core unit test and add to coverage
|
||||||
|
|
||||||
## New Feature
|
## New Feature
|
||||||
- MS-343 - Implement ResourceMgr
|
- MS-343 - Implement ResourceMgr
|
||||||
|
|
|
@ -95,6 +95,7 @@ ${LCOV_CMD} -r "${FILE_INFO_OUTPUT}" -o "${FILE_INFO_OUTPUT_NEW}" \
|
||||||
"*/boost/*" \
|
"*/boost/*" \
|
||||||
"*/cmake_build/*_ep-prefix/*" \
|
"*/cmake_build/*_ep-prefix/*" \
|
||||||
"src/core/cmake_build*" \
|
"src/core/cmake_build*" \
|
||||||
|
"src/core/thirdparty*" \
|
||||||
|
|
||||||
# gen html report
|
# gen html report
|
||||||
${LCOV_GEN_CMD} "${FILE_INFO_OUTPUT_NEW}" --output-directory ${DIR_LCOV_OUTPUT}/
|
${LCOV_GEN_CMD} "${FILE_INFO_OUTPUT_NEW}" --output-directory ${DIR_LCOV_OUTPUT}/
|
|
@ -72,6 +72,10 @@ include(ThirdPartyPackagesCore)
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|
||||||
|
if (BUILD_COVERAGE STREQUAL "ON")
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")
|
||||||
|
endif()
|
||||||
|
|
||||||
set(CORE_INCLUDE_DIRS ${CORE_INCLUDE_DIRS} PARENT_SCOPE)
|
set(CORE_INCLUDE_DIRS ${CORE_INCLUDE_DIRS} PARENT_SCOPE)
|
||||||
|
|
||||||
if(BUILD_UNIT_TEST STREQUAL "ON")
|
if(BUILD_UNIT_TEST STREQUAL "ON")
|
||||||
|
|
Loading…
Reference in New Issue