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.
openmonero/tests/CMakeLists.txt

54 lines
1.1 KiB

6 years ago
macro(add_om_test _TEST_NAME)
add_executable(${_TEST_NAME}_tests
${_TEST_NAME}_tests.cpp
5 years ago
JsonTx.cpp)
6 years ago
target_link_libraries(${_TEST_NAME}_tests
5 years ago
PRIVATE
gtest gtest_main
gmock gmock_main
myxmr)
6 years ago
add_test(NAME ${_TEST_NAME}_tests COMMAND ${_TEST_NAME}_tests)
endmacro()
5 years ago
include(CodeCoverage)
APPEND_COVERAGE_COMPILER_FLAGS()
set(COVERAGE_EXCLUDES
'${CMAKE_SOURCE_DIR}/ext/*'
'asio/*'
'${MONERO_SOURCE_DIR}/*'
'${CMAKE_SOURCE_DIR}/tests/*')
resource_dir("res")
6 years ago
add_om_test(mysql)
add_om_test(microcore)
6 years ago
add_om_test(bcstatus)
add_om_test(txsearch)
5 years ago
#SETUP_TARGET_FOR_COVERAGE(
#NAME mysql_cov
#EXECUTABLE mysql_tests)
5 years ago
#SETUP_TARGET_FOR_COVERAGE(
#NAME microcore_cov
#EXECUTABLE microcore_tests)
6 years ago
5 years ago
#SETUP_TARGET_FOR_COVERAGE(
#NAME bcstatus_cov
#EXECUTABLE bcstatus_tests)
5 years ago
#SETUP_TARGET_FOR_COVERAGE(
#NAME txsearch_cov
#EXECUTABLE txsearch_tests)
5 years ago
#add_custom_target(cov
#COMMAND ;
#DEPENDS mysql_cov microcore_cov bcstatus_cov txsearch_cov
#COMMENT "Runs all coverage tests"
#)