Changeset View
Changeset View
Standalone View
Standalone View
src/test/CMakeLists.txt
Show All 37 Lines | gen_json_header(JSON_HEADERS | ||||
data/tx_invalid.json | data/tx_invalid.json | ||||
data/tx_valid.json | data/tx_valid.json | ||||
) | ) | ||||
include(TestSuite) | include(TestSuite) | ||||
create_test_suite(bitcoin) | create_test_suite(bitcoin) | ||||
add_dependencies(check check-bitcoin) | add_dependencies(check check-bitcoin) | ||||
if(BUILD_BITCOIN_WALLET) | |||||
set(BITCOIN_WALLET_TEST_FIXTURE | |||||
../wallet/test/wallet_test_fixture.cpp | |||||
) | |||||
set(BITCOIN_WALLET_TESTS | |||||
../wallet/test/accounting_tests.cpp | |||||
../wallet/test/db_tests.cpp | |||||
../wallet/test/coinselector_tests.cpp | |||||
../wallet/test/psbt_wallet_tests.cpp | |||||
../wallet/test/wallet_tests.cpp | |||||
../wallet/test/walletdb_tests.cpp | |||||
../wallet/test/wallet_crypto_tests.cpp | |||||
) | |||||
endif() | |||||
add_boost_unit_tests_to_suite(bitcoin test_bitcoin | add_boost_unit_tests_to_suite(bitcoin test_bitcoin | ||||
jsonutil.cpp | jsonutil.cpp | ||||
scriptflags.cpp | scriptflags.cpp | ||||
sigutil.cpp | sigutil.cpp | ||||
test_bitcoin.cpp | test_bitcoin.cpp | ||||
test_bitcoin_main.cpp | test_bitcoin_main.cpp | ||||
# Tests generated from JSON | # Tests generated from JSON | ||||
${JSON_HEADERS} | ${JSON_HEADERS} | ||||
# Wallet test fixture | |||||
${BITCOIN_WALLET_TEST_FIXTURE} | |||||
TESTS | TESTS | ||||
activation_tests.cpp | activation_tests.cpp | ||||
addrman_tests.cpp | addrman_tests.cpp | ||||
allocator_tests.cpp | allocator_tests.cpp | ||||
amount_tests.cpp | amount_tests.cpp | ||||
arith_uint256_tests.cpp | arith_uint256_tests.cpp | ||||
avalanche_tests.cpp | avalanche_tests.cpp | ||||
base32_tests.cpp | base32_tests.cpp | ||||
▲ Show 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | TESTS | ||||
undo_tests.cpp | undo_tests.cpp | ||||
util_tests.cpp | util_tests.cpp | ||||
validation_block_tests.cpp | validation_block_tests.cpp | ||||
validation_tests.cpp | validation_tests.cpp | ||||
work_comparator_tests.cpp | work_comparator_tests.cpp | ||||
# RPC Tests | # RPC Tests | ||||
../rpc/test/server_tests.cpp | ../rpc/test/server_tests.cpp | ||||
# Wallet tests | |||||
${BITCOIN_WALLET_TESTS} | |||||
) | ) | ||||
target_link_libraries(test_bitcoin rpcclient server) | target_link_libraries(test_bitcoin rpcclient server) | ||||
if(TARGET bitcoinconsensus-shared) | if(TARGET bitcoinconsensus-shared) | ||||
target_link_libraries(test_bitcoin bitcoinconsensus-shared) | target_link_libraries(test_bitcoin bitcoinconsensus-shared) | ||||
else() | else() | ||||
target_link_libraries(test_bitcoin bitcoinconsensus) | target_link_libraries(test_bitcoin bitcoinconsensus) | ||||
endif() | endif() | ||||
if(BUILD_BITCOIN_WALLET) | |||||
target_sources(test_bitcoin | |||||
PRIVATE | |||||
../wallet/test/accounting_tests.cpp | |||||
../wallet/test/db_tests.cpp | |||||
../wallet/test/coinselector_tests.cpp | |||||
../wallet/test/psbt_wallet_tests.cpp | |||||
../wallet/test/wallet_test_fixture.cpp | |||||
../wallet/test/wallet_tests.cpp | |||||
../wallet/test/walletdb_tests.cpp | |||||
../wallet/test/wallet_crypto_tests.cpp | |||||
) | |||||
endif() | |||||
add_executable(test_bitcoin_fuzzy EXCLUDE_FROM_ALL | add_executable(test_bitcoin_fuzzy EXCLUDE_FROM_ALL | ||||
test_bitcoin_fuzzy.cpp | test_bitcoin_fuzzy.cpp | ||||
) | ) | ||||
target_link_libraries(test_bitcoin_fuzzy server) | target_link_libraries(test_bitcoin_fuzzy server) |