Lines Matching refs:cmdLine
125 static bool parseCommandLine (CommandLine& cmdLine, int argc, const char* const* argv) in parseCommandLine() argument
141 cmdLine.serverBin = opts.getOption<opt::StartServer>(); in parseCommandLine()
142 cmdLine.host = opts.getOption<opt::Host>(); in parseCommandLine()
143 cmdLine.port = opts.getOption<opt::Port>(); in parseCommandLine()
144 cmdLine.caseListDir = opts.getOption<opt::CaseListDir>(); in parseCommandLine()
145 cmdLine.testset = opts.getOption<opt::TestSet>(); in parseCommandLine()
146 cmdLine.exclude = opts.getOption<opt::ExcludeSet>(); in parseCommandLine()
147 cmdLine.inFile = opts.getOption<opt::ContinueFile>(); in parseCommandLine()
148 cmdLine.outFile = opts.getOption<opt::TestLogFile>(); in parseCommandLine()
149 cmdLine.infoFile = opts.getOption<opt::InfoLogFile>(); in parseCommandLine()
150 cmdLine.summary = opts.getOption<opt::Summary>(); in parseCommandLine()
151 cmdLine.targetCfg.binaryName = opts.getOption<opt::BinaryName>(); in parseCommandLine()
152 cmdLine.targetCfg.workingDir = opts.getOption<opt::WorkingDir>(); in parseCommandLine()
153 cmdLine.targetCfg.cmdLineArgs = opts.getOption<opt::CmdLineArgs>(); in parseCommandLine()
401 static xe::CommLink* createCommLink (const CommandLine& cmdLine) in createCommLink() argument
403 if (!cmdLine.serverBin.empty()) in createCommLink()
408 link->start(cmdLine.serverBin.c_str(), DE_NULL, cmdLine.port); in createCommLink()
422 address.setHost(cmdLine.host.c_str()); in createCommLink()
423 address.setPort(cmdLine.port); in createCommLink()
439 static void runExecutor (const CommandLine& cmdLine) in runExecutor() argument
444 readCaseLists(root, cmdLine.caseListDir.c_str()); in runExecutor()
450 …for (vector<string>::const_iterator filterIter = cmdLine.testset.begin(); filterIter != cmdLine.te… in runExecutor()
454 …for (vector<string>::const_iterator filterIter = cmdLine.exclude.begin(); filterIter != cmdLine.ex… in runExecutor()
462 if (!cmdLine.inFile.empty()) in runExecutor()
463 readLogFile(&batchResult, cmdLine.inFile.c_str()); in runExecutor()
466 std::auto_ptr<xe::CommLink> commLink(createCommLink(cmdLine)); in runExecutor()
468 …xe::BatchExecutor executor(cmdLine.targetCfg, commLink.get(), &root, testSet, &batchResult, &infoL… in runExecutor()
473 if (!cmdLine.outFile.empty()) in runExecutor()
475 xe::writeBatchResultToFile(batchResult, cmdLine.outFile.c_str()); in runExecutor()
476 printf("Test log written to %s\n", cmdLine.outFile.c_str()); in runExecutor()
479 if (!cmdLine.infoFile.empty()) in runExecutor()
481 writeInfoLog(infoLog, cmdLine.infoFile.c_str()); in runExecutor()
482 printf("Info log written to %s\n", cmdLine.infoFile.c_str()); in runExecutor()
485 if (cmdLine.summary) in runExecutor()
491 CommandLine cmdLine; in main() local
493 if (!parseCommandLine(cmdLine, argc, argv)) in main()
498 runExecutor(cmdLine); in main()