<commit_before>add_executable(test-core
    accounting_tests.cpp
    alert_tests.cpp
    allocator_tests.cpp
    base32_tests.cpp
    base58_tests.cpp
    base64_tests.cpp
    bignum_tests.cpp
    bloom_tests.cpp
    canonical_tests.cpp
    checkblock_tests.cpp
    Checkpoints_tests.cpp
    compress_tests.cpp
    DoS_tests.cpp
    getarg_tests.cpp
    key_tests.cpp
    miner_tests.cpp
    mruset_tests.cpp
    multisig_tests.cpp
    netbase_tests.cpp
    pmt_tests.cpp
    rpc_tests.cpp
    script_P2SH_tests.cpp
    script_tests.cpp
    scrypt_tests.cpp
    serialize_tests.cpp
    sigopcount_tests.cpp
    test_bitcoin.cpp
    transaction_tests.cpp
    uint160_tests.cpp
    uint256_tests.cpp
    util_tests.cpp
    wallet_tests.cpp
    ../wallet.cpp
)

target_link_libraries(test-core PRIVATE
    core
    Boost::unit_test_framework
)

target_compile_definitions(test-core PRIVATE
    BOOST_TEST_DYN_LINK
)

add_test(NAME test-core COMMAND test-core)<commit_msg>set BOOST_TEST_DYN_LINK only when STATIC_BUILD is OFF<commit_after>add_executable(test-core
    accounting_tests.cpp
    alert_tests.cpp
    allocator_tests.cpp
    base32_tests.cpp
    base58_tests.cpp
    base64_tests.cpp
    bignum_tests.cpp
    bloom_tests.cpp
    canonical_tests.cpp
    checkblock_tests.cpp
    Checkpoints_tests.cpp
    compress_tests.cpp
    DoS_tests.cpp
    getarg_tests.cpp
    key_tests.cpp
    miner_tests.cpp
    mruset_tests.cpp
    multisig_tests.cpp
    netbase_tests.cpp
    pmt_tests.cpp
    rpc_tests.cpp
    script_P2SH_tests.cpp
    script_tests.cpp
    scrypt_tests.cpp
    serialize_tests.cpp
    sigopcount_tests.cpp
    test_bitcoin.cpp
    transaction_tests.cpp
    uint160_tests.cpp
    uint256_tests.cpp
    util_tests.cpp
    wallet_tests.cpp
    ../wallet.cpp
)

target_link_libraries(test-core PRIVATE
    core
    Boost::unit_test_framework
)

target_compile_definitions(test-core PRIVATE
    $<$<NOT:$<BOOL:${STATIC_BUILD}>>:BOOST_TEST_DYN_LINK>
)

add_test(NAME test-core COMMAND test-core)
{'fraction_non_alphanumeric': 0.06119402985074627, 'fraction_numerical': 0.012935323383084577, 'mean_word_length': 3.2159329140461215, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4405053', 'n_tokens_mistral': 755, 'n_tokens_neox': 730, 'n_words': 95}