diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt index 2fd836e63f1b66..937e7b8d13c946 100644 --- a/src/test/CMakeLists.txt +++ b/src/test/CMakeLists.txt @@ -14,6 +14,22 @@ generate_header_from_json(data/tx_invalid.json) generate_header_from_json(data/tx_valid.json) generate_header_from_raw(data/asmap.raw) +add_executable(test_bitcoin_consensus + main.cpp + consensus_api_tests.cpp + ../script/bitcoinconsensus.cpp + ../support/cleanse.cpp +) + +target_link_libraries(test_bitcoin_consensus + PRIVATE + core + bitcoin_consensus_sources + bitcoin_crypto_sources + test_util + secp256k1 +) + add_executable(test_bitcoin main.cpp $ @@ -143,7 +159,6 @@ target_link_libraries(test_bitcoin bitcoin_cli bitcoin_node minisketch - $ Boost::headers ) diff --git a/src/test/consensus_api_tests.cpp b/src/test/consensus_api_tests.cpp new file mode 100644 index 00000000000000..f7741253e76e8f --- /dev/null +++ b/src/test/consensus_api_tests.cpp @@ -0,0 +1,226 @@ +// Copyright (c) 2011-2022 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#include +#include