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: 5dfd0b831050299e8a8e1c0fffae861da2fd1ee7
pull/191/head
jinhai 2019-09-07 14:46:07 +08:00
commit ae352dfa23
3 changed files with 6 additions and 1 deletions

View File

@ -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-488 - Improve code format in scheduler
- MS-495 - cmake: integrated knowhere
- MS-505 - Install core unit test
- MS-505 - Install core unit test and add to coverage
## New Feature
- MS-343 - Implement ResourceMgr

View File

@ -95,6 +95,7 @@ ${LCOV_CMD} -r "${FILE_INFO_OUTPUT}" -o "${FILE_INFO_OUTPUT_NEW}" \
"*/boost/*" \
"*/cmake_build/*_ep-prefix/*" \
"src/core/cmake_build*" \
"src/core/thirdparty*" \
# gen html report
${LCOV_GEN_CMD} "${FILE_INFO_OUTPUT_NEW}" --output-directory ${DIR_LCOV_OUTPUT}/

View File

@ -72,6 +72,10 @@ include(ThirdPartyPackagesCore)
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)
if(BUILD_UNIT_TEST STREQUAL "ON")