cmake: Move IPC tests to ipc/test

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

No files matched your search

+19
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)
File renamed without changes.
-3
View File
@@ -1,3 +0,0 @@
Checks:
# See: https://github.com/capnproto/capnproto/pull/2417.
- "-clang-analyzer-security.ArrayBound"
+1 -14
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)