3 #include <boost/program_options.hpp>
4 #include <testing/gunit.h>
5 #include <test/test_cmn_util.h>
10 namespace opt = boost::program_options;
15 static void GetArgs(
char *test_file,
int argc,
char *argv[]) {
17 opt::options_description desc(
"Options");
18 opt::variables_map vars;
20 (
"help",
"Print help message")
21 (
"test-data", opt::value<string>(),
"Specify test data file");
23 opt::store(opt::parse_command_line(argc, argv, desc), vars);
25 if (vars.count(
"test-data")) {
26 strcpy(test_file, vars[
"test-data"].as<string>().c_str());
35 AgentUtXmlTest test(
"controller/src/vnsw/agent/test-xml/dummy.xml");
37 if (test.
Load() ==
true) {
47 int main(
int argc,
char *argv[]) {
49 client = TestInit(init_file, ksync_init);
50 int ret = RUN_ALL_TESTS();
void ToString(std::string *str)
void AgentUtXmlOperInit(AgentUtXmlTest *test)
static void GetArgs(char *test_file, int argc, char *argv[])
TEST_F(TestDummy, test_1)
void RouterIdDepInit(Agent *agent)