• Home
  • Raw
  • Download

Lines Matching refs:cmdLine

141 bool parseCommandLine (CommandLine& cmdLine, int argc, const char* const* argv)  in parseCommandLine()  argument
176 cmdLine.runMode = RUNMODE_START_SERVER; in parseCommandLine()
177 cmdLine.serverBinOrAddress = opts.getOption<opt::StartServer>(); in parseCommandLine()
181 cmdLine.runMode = RUNMODE_CONNECT; in parseCommandLine()
182 cmdLine.serverBinOrAddress = opts.getOption<opt::Host>(); in parseCommandLine()
187 cmdLine.inFile = opts.getOption<opt::ContinueFile>(); in parseCommandLine()
189 if (cmdLine.inFile.empty()) in parseCommandLine()
196 cmdLine.port = opts.getOption<opt::Port>(); in parseCommandLine()
197 cmdLine.caseListDir = opts.getOption<opt::CaseListDir>(); in parseCommandLine()
198 cmdLine.testset = opts.getOption<opt::TestSet>(); in parseCommandLine()
199 cmdLine.exclude = opts.getOption<opt::ExcludeSet>(); in parseCommandLine()
200 cmdLine.outFile = opts.getOption<opt::TestLogFile>(); in parseCommandLine()
201 cmdLine.infoFile = opts.getOption<opt::InfoLogFile>(); in parseCommandLine()
202 cmdLine.summary = opts.getOption<opt::Summary>(); in parseCommandLine()
203 cmdLine.targetCfg.binaryName = opts.getOption<opt::BinaryName>(); in parseCommandLine()
204 cmdLine.targetCfg.workingDir = opts.getOption<opt::WorkingDir>(); in parseCommandLine()
205 cmdLine.targetCfg.cmdLineArgs = opts.getOption<opt::CmdLineArgs>(); in parseCommandLine()
458 xe::CommLink* createCommLink (const CommandLine& cmdLine) in createCommLink() argument
460 if (cmdLine.runMode == RUNMODE_START_SERVER) in createCommLink()
465 link->start(cmdLine.serverBinOrAddress.c_str(), DE_NULL, cmdLine.port); in createCommLink()
474 else if (cmdLine.runMode == RUNMODE_CONNECT) in createCommLink()
480 address.setHost(cmdLine.serverBinOrAddress.c_str()); in createCommLink()
481 address.setPort(cmdLine.port); in createCommLink()
494 …::Error("Failed to connect to ExecServer at: " + cmdLine.serverBinOrAddress + ":" + de::toString(c… in createCommLink()
577 void runExecutor (const CommandLine& cmdLine) in runExecutor() argument
582 readCaseLists(root, cmdLine.caseListDir.c_str()); in runExecutor()
588 …for (vector<string>::const_iterator filterIter = cmdLine.testset.begin(); filterIter != cmdLine.te… in runExecutor()
595 …for (vector<string>::const_iterator filterIter = cmdLine.exclude.begin(); filterIter != cmdLine.ex… in runExecutor()
603 if (!cmdLine.inFile.empty()) in runExecutor()
604 readLogFile(&batchResult, cmdLine.inFile.c_str()); in runExecutor()
607 std::auto_ptr<xe::CommLink> commLink(createCommLink(cmdLine)); in runExecutor()
609 …xe::BatchExecutor executor(cmdLine.targetCfg, commLink.get(), &root, testSet, &batchResult, &infoL… in runExecutor()
621 if (!cmdLine.outFile.empty()) in runExecutor()
623 xe::writeBatchResultToFile(batchResult, cmdLine.outFile.c_str()); in runExecutor()
624 printf("Test log written to %s\n", cmdLine.outFile.c_str()); in runExecutor()
627 if (!cmdLine.infoFile.empty()) in runExecutor()
629 writeInfoLog(infoLog, cmdLine.infoFile.c_str()); in runExecutor()
630 printf("Info log written to %s\n", cmdLine.infoFile.c_str()); in runExecutor()
633 if (cmdLine.summary) in runExecutor()
639 if (!cmdLine.outFile.empty()) in runExecutor()
641 xe::writeBatchResultToFile(batchResult, cmdLine.outFile.c_str()); in runExecutor()
642 printf("Test log written to %s\n", cmdLine.outFile.c_str()); in runExecutor()
645 if (!cmdLine.infoFile.empty()) in runExecutor()
647 writeInfoLog(infoLog, cmdLine.infoFile.c_str()); in runExecutor()
648 printf("Info log written to %s\n", cmdLine.infoFile.c_str()); in runExecutor()
651 if (cmdLine.summary) in runExecutor()
666 CommandLine cmdLine; in main() local
668 if (!parseCommandLine(cmdLine, argc, argv)) in main()
673 runExecutor(cmdLine); in main()