You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.1 KiB
54 lines
1.1 KiB
macro(add_om_test _TEST_NAME)
|
|
|
|
add_executable(${_TEST_NAME}_tests
|
|
${_TEST_NAME}_tests.cpp
|
|
JsonTx.cpp)
|
|
|
|
target_link_libraries(${_TEST_NAME}_tests
|
|
PRIVATE
|
|
gtest gtest_main
|
|
gmock gmock_main
|
|
myxmr)
|
|
|
|
add_test(NAME ${_TEST_NAME}_tests COMMAND ${_TEST_NAME}_tests)
|
|
|
|
endmacro()
|
|
|
|
|
|
include(CodeCoverage)
|
|
APPEND_COVERAGE_COMPILER_FLAGS()
|
|
set(COVERAGE_EXCLUDES
|
|
'${CMAKE_SOURCE_DIR}/ext/*'
|
|
'asio/*'
|
|
'${MONERO_SOURCE_DIR}/*'
|
|
'${CMAKE_SOURCE_DIR}/tests/*')
|
|
|
|
resource_dir("res")
|
|
|
|
add_om_test(mysql)
|
|
add_om_test(microcore)
|
|
add_om_test(bcstatus)
|
|
add_om_test(txsearch)
|
|
|
|
|
|
######################################
|
|
########## CODE COVERAGE #############
|
|
######################################
|
|
|
|
include(CodeCoverage)
|
|
|
|
#APPEND_COVERAGE_COMPILER_FLAGS()
|
|
|
|
set(COVERAGE_LCOV_EXCLUDES
|
|
'../ext/*' '*boost/*' '*c++/*'
|
|
'*/monero/*' '*googletest/*' '*googlemock/*'
|
|
'*restbed/*' '*/mysql++/*' '*tests/*')
|
|
|
|
SETUP_TARGET_FOR_COVERAGE_LCOV(
|
|
NAME coverage
|
|
EXECUTABLE mysql_tests
|
|
microcore_tests
|
|
bcstatus
|
|
txsearch)
|
|
|