cmake: Move IPC tests to ipc/test
This commit is contained in:
4 files changed
+20
-17
No files matched your search
@@ -0,0 +1,19 @@
|
|||||||
|
# Copyright (c) 2023-present The Bitcoin Core developers
|
||||||
|
# Distributed under the MIT software license, see the accompanying
|
||||||
|
# file COPYING or https://opensource.org/license/mit/.
|
||||||
|
|
||||||
|
target_link_libraries(bitcoin_ipc_test
|
||||||
|
PRIVATE
|
||||||
|
core_interface
|
||||||
|
univalue
|
||||||
|
Boost::headers
|
||||||
|
)
|
||||||
|
|
||||||
|
# Do not use generator expressions in test sources because the
|
||||||
|
# SOURCES property is processed to gather test suite macros.
|
||||||
|
target_sources(test_bitcoin
|
||||||
|
PRIVATE
|
||||||
|
ipc_tests.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_libraries(test_bitcoin bitcoin_ipc_test bitcoin_ipc)
|
||||||
File renamed without changes.
@@ -1,3 +0,0 @@
|
|||||||
Checks:
|
|
||||||
# See: https://github.com/capnproto/capnproto/pull/2417.
|
|
||||||
- "-clang-analyzer-security.ArrayBound"
|
|
||||||
+1
-14
@@ -168,20 +168,7 @@ if(ENABLE_WALLET)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ENABLE_IPC)
|
if(ENABLE_IPC)
|
||||||
target_link_libraries(bitcoin_ipc_test
|
add_subdirectory(${PROJECT_SOURCE_DIR}/src/ipc/test ipc)
|
||||||
PRIVATE
|
|
||||||
core_interface
|
|
||||||
univalue
|
|
||||||
Boost::headers
|
|
||||||
)
|
|
||||||
|
|
||||||
target_sources(test_bitcoin
|
|
||||||
PRIVATE
|
|
||||||
ipc_tests.cpp
|
|
||||||
)
|
|
||||||
target_link_libraries(test_bitcoin bitcoin_ipc_test bitcoin_ipc)
|
|
||||||
|
|
||||||
configure_file(.clang-tidy.in .clang-tidy USE_SOURCE_PERMISSIONS COPYONLY)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
function(add_boost_test source_file)
|
function(add_boost_test source_file)
|
||||||
|
|||||||
Reference in new issue
Block a user