• Home
  • Raw
  • Download

Lines Matching refs:cmdLine

142 bool parseCommandLine (CommandLine& cmdLine, int argc, const char* const* argv)  in parseCommandLine()  argument
177 cmdLine.runMode = RUNMODE_START_SERVER; in parseCommandLine()
178 cmdLine.serverBinOrAddress = opts.getOption<opt::StartServer>(); in parseCommandLine()
182 cmdLine.runMode = RUNMODE_CONNECT; in parseCommandLine()
183 cmdLine.serverBinOrAddress = opts.getOption<opt::Host>(); in parseCommandLine()
188 cmdLine.inFile = opts.getOption<opt::ContinueFile>(); in parseCommandLine()
190 if (cmdLine.inFile.empty()) in parseCommandLine()
197 cmdLine.port = opts.getOption<opt::Port>(); in parseCommandLine()
198 cmdLine.caseListDir = opts.getOption<opt::CaseListDir>(); in parseCommandLine()
199 cmdLine.testset = opts.getOption<opt::TestSet>(); in parseCommandLine()
200 cmdLine.exclude = opts.getOption<opt::ExcludeSet>(); in parseCommandLine()
201 cmdLine.outFile = opts.getOption<opt::TestLogFile>(); in parseCommandLine()
202 cmdLine.infoFile = opts.getOption<opt::InfoLogFile>(); in parseCommandLine()
203 cmdLine.summary = opts.getOption<opt::Summary>(); in parseCommandLine()
204 cmdLine.targetCfg.binaryName = opts.getOption<opt::BinaryName>(); in parseCommandLine()
205 cmdLine.targetCfg.workingDir = opts.getOption<opt::WorkingDir>(); in parseCommandLine()
206 cmdLine.targetCfg.cmdLineArgs = opts.getOption<opt::CmdLineArgs>(); in parseCommandLine()
459 xe::CommLink* createCommLink (const CommandLine& cmdLine) in createCommLink() argument
461 if (cmdLine.runMode == RUNMODE_START_SERVER) in createCommLink()
466 link->start(cmdLine.serverBinOrAddress.c_str(), DE_NULL, cmdLine.port); in createCommLink()
475 else if (cmdLine.runMode == RUNMODE_CONNECT) in createCommLink()
481 address.setHost(cmdLine.serverBinOrAddress.c_str()); in createCommLink()
482 address.setPort(cmdLine.port); in createCommLink()
495 …::Error("Failed to connect to ExecServer at: " + cmdLine.serverBinOrAddress + ":" + de::toString(c… in createCommLink()
578 void runExecutor (const CommandLine& cmdLine) in runExecutor() argument
583 readCaseLists(root, cmdLine.caseListDir.c_str()); in runExecutor()
589 …for (vector<string>::const_iterator filterIter = cmdLine.testset.begin(); filterIter != cmdLine.te… in runExecutor()
596 …for (vector<string>::const_iterator filterIter = cmdLine.exclude.begin(); filterIter != cmdLine.ex… in runExecutor()
604 if (!cmdLine.inFile.empty()) in runExecutor()
605 readLogFile(&batchResult, cmdLine.inFile.c_str()); in runExecutor()
608 de::UniquePtr<xe::CommLink> commLink(createCommLink(cmdLine)); in runExecutor()
610 …xe::BatchExecutor executor(cmdLine.targetCfg, commLink.get(), &root, testSet, &batchResult, &infoL… in runExecutor()
622 if (!cmdLine.outFile.empty()) in runExecutor()
624 xe::writeBatchResultToFile(batchResult, cmdLine.outFile.c_str()); in runExecutor()
625 printf("Test log written to %s\n", cmdLine.outFile.c_str()); in runExecutor()
628 if (!cmdLine.infoFile.empty()) in runExecutor()
630 writeInfoLog(infoLog, cmdLine.infoFile.c_str()); in runExecutor()
631 printf("Info log written to %s\n", cmdLine.infoFile.c_str()); in runExecutor()
634 if (cmdLine.summary) in runExecutor()
640 if (!cmdLine.outFile.empty()) in runExecutor()
642 xe::writeBatchResultToFile(batchResult, cmdLine.outFile.c_str()); in runExecutor()
643 printf("Test log written to %s\n", cmdLine.outFile.c_str()); in runExecutor()
646 if (!cmdLine.infoFile.empty()) in runExecutor()
648 writeInfoLog(infoLog, cmdLine.infoFile.c_str()); in runExecutor()
649 printf("Info log written to %s\n", cmdLine.infoFile.c_str()); in runExecutor()
652 if (cmdLine.summary) in runExecutor()
667 CommandLine cmdLine; in main() local
669 if (!parseCommandLine(cmdLine, argc, argv)) in main()
674 runExecutor(cmdLine); in main()