fix app_test
This commit is contained in:
parent
749fc2f330
commit
216e97d998
2 changed files with 7 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ target_link_libraries( chain_bench graphene_chain graphene_app graphene_account_
|
|||
|
||||
file(GLOB APP_SOURCES "app/*.cpp")
|
||||
add_executable( app_test ${APP_SOURCES} )
|
||||
target_link_libraries( app_test graphene_app graphene_account_history graphene_bookie graphene_net graphene_chain graphene_egenesis_none fc ${PLATFORM_SPECIFIC_LIBS} )
|
||||
target_link_libraries( app_test graphene_app graphene_account_history graphene_witness graphene_bookie graphene_net graphene_chain graphene_egenesis_none fc ${PLATFORM_SPECIFIC_LIBS} )
|
||||
|
||||
file(GLOB INTENSE_SOURCES "intense/*.cpp")
|
||||
add_executable( intense_test ${INTENSE_SOURCES} ${COMMON_SOURCES} )
|
||||
|
|
|
|||
|
|
@ -29,6 +29,8 @@
|
|||
#include <graphene/utilities/tempdir.hpp>
|
||||
|
||||
#include <graphene/account_history/account_history_plugin.hpp>
|
||||
#include <graphene/witness/witness.hpp>
|
||||
#include <graphene/market_history/market_history_plugin.hpp>
|
||||
|
||||
#include <fc/thread/thread.hpp>
|
||||
#include <fc/smart_ref_impl.hpp>
|
||||
|
|
@ -57,6 +59,8 @@ BOOST_AUTO_TEST_CASE( two_node_network )
|
|||
|
||||
graphene::app::application app1;
|
||||
app1.register_plugin<graphene::account_history::account_history_plugin>();
|
||||
app1.register_plugin<graphene::witness_plugin::witness_plugin>();
|
||||
app1.register_plugin<graphene::market_history::market_history_plugin>();
|
||||
boost::program_options::variables_map cfg;
|
||||
cfg.emplace("p2p-endpoint", boost::program_options::variable_value(string("127.0.0.1:0"), false));
|
||||
app1.initialize(app_dir.path(), cfg);
|
||||
|
|
@ -72,6 +76,8 @@ BOOST_AUTO_TEST_CASE( two_node_network )
|
|||
|
||||
graphene::app::application app2;
|
||||
app2.register_plugin<account_history::account_history_plugin>();
|
||||
app2.register_plugin<graphene::witness_plugin::witness_plugin>();
|
||||
app2.register_plugin<graphene::market_history::market_history_plugin>();
|
||||
cfg2.erase("p2p-endpoint");
|
||||
cfg2.emplace("p2p-endpoint", boost::program_options::variable_value(string("127.0.0.1:0"), false));
|
||||
cfg2.emplace("seed-node", boost::program_options::variable_value(vector<string>{endpoint1}, false));
|
||||
|
|
|
|||
Loading…
Reference in a new issue