updated tests to keep in-line with plugin changes
This commit is contained in:
parent
32d9175061
commit
cd8d7253cb
2 changed files with 22 additions and 4 deletions
|
|
@ -28,8 +28,12 @@
|
||||||
|
|
||||||
#include <graphene/utilities/tempdir.hpp>
|
#include <graphene/utilities/tempdir.hpp>
|
||||||
|
|
||||||
|
#include <graphene/witness/witness.hpp>
|
||||||
#include <graphene/account_history/account_history_plugin.hpp>
|
#include <graphene/account_history/account_history_plugin.hpp>
|
||||||
|
#include <graphene/bookie/bookie_plugin.hpp>
|
||||||
|
#include <graphene/accounts_list/accounts_list_plugin.hpp>
|
||||||
|
#include <graphene/affiliate_stats/affiliate_stats_plugin.hpp>
|
||||||
|
#include <graphene/market_history/market_history_plugin.hpp>
|
||||||
#include <fc/thread/thread.hpp>
|
#include <fc/thread/thread.hpp>
|
||||||
#include <fc/smart_ref_impl.hpp>
|
#include <fc/smart_ref_impl.hpp>
|
||||||
|
|
||||||
|
|
@ -56,10 +60,15 @@ BOOST_AUTO_TEST_CASE( two_node_network )
|
||||||
BOOST_TEST_MESSAGE( "Creating and initializing app1" );
|
BOOST_TEST_MESSAGE( "Creating and initializing app1" );
|
||||||
|
|
||||||
graphene::app::application app1;
|
graphene::app::application app1;
|
||||||
|
app1.register_plugin<graphene::witness_plugin::witness_plugin>();
|
||||||
app1.register_plugin<graphene::account_history::account_history_plugin>();
|
app1.register_plugin<graphene::account_history::account_history_plugin>();
|
||||||
|
app1.register_plugin<graphene::bookie::bookie_plugin>();
|
||||||
|
app1.register_plugin<graphene::accounts_list::accounts_list_plugin>();
|
||||||
|
app1.register_plugin<graphene::affiliate_stats::affiliate_stats_plugin>();
|
||||||
|
app1.register_plugin<graphene::market_history::market_history_plugin>();
|
||||||
|
|
||||||
boost::program_options::variables_map cfg;
|
boost::program_options::variables_map cfg;
|
||||||
cfg.emplace("p2p-endpoint", boost::program_options::variable_value(string("127.0.0.1:0"), false));
|
cfg.emplace("p2p-endpoint", boost::program_options::variable_value(string("127.0.0.1:0"), false));
|
||||||
cfg.emplace("plugins", boost::program_options::variable_value(string(" "), false));
|
|
||||||
app1.initialize(app_dir.path(), cfg);
|
app1.initialize(app_dir.path(), cfg);
|
||||||
cfg.emplace("genesis-json", boost::program_options::variable_value(create_genesis_file(app_dir), false));
|
cfg.emplace("genesis-json", boost::program_options::variable_value(create_genesis_file(app_dir), false));
|
||||||
|
|
||||||
|
|
@ -72,7 +81,12 @@ BOOST_AUTO_TEST_CASE( two_node_network )
|
||||||
auto cfg2 = cfg;
|
auto cfg2 = cfg;
|
||||||
|
|
||||||
graphene::app::application app2;
|
graphene::app::application app2;
|
||||||
app2.register_plugin<account_history::account_history_plugin>();
|
app2.register_plugin<graphene::witness_plugin::witness_plugin>();
|
||||||
|
app2.register_plugin<graphene::account_history::account_history_plugin>();
|
||||||
|
app2.register_plugin<graphene::bookie::bookie_plugin>();
|
||||||
|
app2.register_plugin<graphene::accounts_list::accounts_list_plugin>();
|
||||||
|
app2.register_plugin<graphene::affiliate_stats::affiliate_stats_plugin>();
|
||||||
|
app2.register_plugin<graphene::market_history::market_history_plugin>();
|
||||||
cfg2.erase("p2p-endpoint");
|
cfg2.erase("p2p-endpoint");
|
||||||
cfg2.emplace("p2p-endpoint", boost::program_options::variable_value(string("127.0.0.1:0"), false));
|
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));
|
cfg2.emplace("seed-node", boost::program_options::variable_value(vector<string>{endpoint1}, false));
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,8 @@
|
||||||
#include <graphene/account_history/account_history_plugin.hpp>
|
#include <graphene/account_history/account_history_plugin.hpp>
|
||||||
#include <graphene/witness/witness.hpp>
|
#include <graphene/witness/witness.hpp>
|
||||||
#include <graphene/market_history/market_history_plugin.hpp>
|
#include <graphene/market_history/market_history_plugin.hpp>
|
||||||
|
#include <graphene/accounts_list/accounts_list_plugin.hpp>
|
||||||
|
#include <graphene/affiliate_stats/affiliate_stats_plugin.hpp>
|
||||||
|
|
||||||
#include <graphene/egenesis/egenesis.hpp>
|
#include <graphene/egenesis/egenesis.hpp>
|
||||||
#include <graphene/wallet/wallet.hpp>
|
#include <graphene/wallet/wallet.hpp>
|
||||||
|
|
@ -128,6 +130,8 @@ std::shared_ptr<graphene::app::application> start_application(fc::temp_directory
|
||||||
app1->register_plugin< graphene::account_history::account_history_plugin>();
|
app1->register_plugin< graphene::account_history::account_history_plugin>();
|
||||||
app1->register_plugin< graphene::market_history::market_history_plugin >();
|
app1->register_plugin< graphene::market_history::market_history_plugin >();
|
||||||
app1->register_plugin< graphene::witness_plugin::witness_plugin >();
|
app1->register_plugin< graphene::witness_plugin::witness_plugin >();
|
||||||
|
app1->register_plugin< graphene::accounts_list::accounts_list_plugin >();
|
||||||
|
app1->register_plugin< graphene::affiliate_stats::affiliate_stats_plugin >();
|
||||||
app1->startup_plugins();
|
app1->startup_plugins();
|
||||||
boost::program_options::variables_map cfg;
|
boost::program_options::variables_map cfg;
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue