cmake: Move IPC tests to ipc/test

This commit is contained in:
Hennadii Stepanov
2025-11-04 13:04:10 +00:00
parent 75baff98fc
commit ae2e438b25
4 changed files with 20 additions and 17 deletions

View File

@@ -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)

View File

@@ -1,3 +0,0 @@
Checks:
# See: https://github.com/capnproto/capnproto/pull/2417.
- "-clang-analyzer-security.ArrayBound"

View File

@@ -168,20 +168,7 @@ if(ENABLE_WALLET)
endif()
if(ENABLE_IPC)
target_link_libraries(bitcoin_ipc_test
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)
add_subdirectory(${PROJECT_SOURCE_DIR}/src/ipc/test ipc)
endif()
function(add_boost_test source_file)