#include #include #include #include #include #include TestGlobals& TestGlobals::instance() { static TestGlobals kINST; return kINST; } void TestGlobals::parse(int argc, char* argv[]) { namespace po = boost::program_options; // clang-format off po::options_description description("Clio UT options"); description.add_options() ("backend_host", po::value()->default_value(TestGlobals::backendHost), "sets the cassandra/scylladb host for backend tests") ("backend_keyspace", po::value()->default_value(TestGlobals::backendKeyspace), "sets the cassandra/scylladb keyspace for backend tests") ; // clang-format on po::variables_map parsed; po::store(po::command_line_parser(argc, argv).options(description).run(), parsed); po::notify(parsed); backendHost = parsed["backend_host"].as(); backendKeyspace = parsed["backend_keyspace"].as(); }