diff --git a/src/seeder/test/CMakeLists.txt b/src/seeder/test/CMakeLists.txt --- a/src/seeder/test/CMakeLists.txt +++ b/src/seeder/test/CMakeLists.txt @@ -5,20 +5,19 @@ project(bitcoin-seeder-test) include(TestSuite) -create_test_suite(bitcoin-seeder) -add_dependencies(check check-bitcoin-seeder) - -add_boost_unit_tests_to_suite(bitcoin-seeder test_bitcoin-seeder - translate_support.cpp +create_test_suite(seeder) +add_dependencies(check check-seeder) +add_boost_unit_tests_to_suite(seeder test-seeder TESTS p2p_messaging_tests.cpp parse_name_tests.cpp write_name_tests.cpp ) -target_link_libraries(test_bitcoin-seeder - common - bitcoinconsensus +target_link_libraries(test-seeder seeder + # The seeder has some bizare linking problems makign util necessary here. + util + testutil ) diff --git a/src/seeder/test/translate_support.cpp b/src/seeder/test/translate_support.cpp deleted file mode 100644 --- a/src/seeder/test/translate_support.cpp +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright (c) 2020 The Bitcoin developers -// Distributed under the MIT software license, see the accompanying -// file COPYING or http://www.opensource.org/licenses/mit-license.php. - -/** - * This file exist for the sole purpose of avoiding link error with the - * translate module. For some obscure reason, the seeder tests do not use the - * regular boost test framework and instead had various fixtures dumped into one - * of its test. - */ -#include - -#include - -const std::function G_TRANSLATION_FUN = nullptr;