44
55# Do not use generator expressions in test sources because the
66# SOURCES property is processed to gather test suite macros.
7- add_executable (test_bitcoin
7+ add_executable (test_elements
88 main.cpp
99 addrman_tests.cpp
1010 allocator_tests.cpp
@@ -130,7 +130,7 @@ add_executable(test_bitcoin
130130)
131131
132132include (TargetDataSources )
133- target_json_data_sources (test_bitcoin
133+ target_json_data_sources (test_elements
134134 data/base58_encode_decode.json
135135 data/bip341_wallet_vectors.json
136136 data/blockfilters.json
@@ -141,11 +141,11 @@ target_json_data_sources(test_bitcoin
141141 data/tx_invalid.json
142142 data/tx_valid.json
143143)
144- target_raw_data_sources (test_bitcoin NAMESPACE test ::data
144+ target_raw_data_sources (test_elements NAMESPACE test ::data
145145 data/asmap.raw
146146)
147147
148- target_link_libraries (test_bitcoin
148+ target_link_libraries (test_elements
149149 core_interface
150150 test_util
151151 bitcoin_cli
@@ -169,11 +169,11 @@ if(WITH_MULTIPROCESS)
169169 univalue
170170 )
171171
172- target_sources (test_bitcoin
172+ target_sources (test_elements
173173 PRIVATE
174174 ipc_tests.cpp
175175 )
176- target_link_libraries (test_bitcoin bitcoin_ipc_test bitcoin_ipc )
176+ target_link_libraries (test_elements bitcoin_ipc_test bitcoin_ipc )
177177endif ()
178178
179179function (add_boost_test source_file )
@@ -192,7 +192,7 @@ function(add_boost_test source_file)
192192 )
193193 if (test_suite_name)
194194 add_test (NAME ${test_suite_name}
195- COMMAND test_bitcoin --run_test=${test_suite_name} --catch_system_error=no --log_level=test_suite -- DEBUG_LOG_OUT
195+ COMMAND test_elements --run_test=${test_suite_name} --catch_system_error=no --log_level=test_suite -- DEBUG_LOG_OUT
196196 )
197197 set_property (TEST ${test_suite_name} PROPERTY
198198 SKIP_REGULAR_EXPRESSION "no test cases matching filter"
@@ -201,8 +201,8 @@ function(add_boost_test source_file)
201201endfunction ()
202202
203203function (add_all_test_targets )
204- get_target_property (test_source_dir test_bitcoin SOURCE_DIR)
205- get_target_property (test_sources test_bitcoin SOURCES )
204+ get_target_property (test_source_dir test_elements SOURCE_DIR)
205+ get_target_property (test_sources test_elements SOURCES )
206206 foreach (test_source ${test_sources} )
207207 cmake_path (IS_RELATIVE test_source result )
208208 if (result)
@@ -214,4 +214,4 @@ endfunction()
214214
215215add_all_test_targets ()
216216
217- install_binary_component (test_bitcoin )
217+ install_binary_component (test_elements )
0 commit comments