Home
last modified time | relevance | path

Searched refs:cmdLine (Results 1 – 25 of 116) sorted by relevance

12345

/third_party/vk-gl-cts/framework/delibs/deutil/
DdeCommandLine.c119 deCommandLine* cmdLine = (deCommandLine*)deCalloc(sizeof(deCommandLine)); in deCommandLine_parse() local
121 …if (!cmdLine || !(cmdLine->args = (char**)deCalloc(sizeof(char*)*(size_t)CharPtrArray_getNumElemen… in deCommandLine_parse()
123 deFree(cmdLine); in deCommandLine_parse()
129 cmdLine->numArgs = CharPtrArray_getNumElements(args); in deCommandLine_parse()
130 cmdLine->argBuf = buf; in deCommandLine_parse()
132 for (argNdx = 0; argNdx < cmdLine->numArgs; argNdx++) in deCommandLine_parse()
133 cmdLine->args[argNdx] = CharPtrArray_get(args, argNdx); in deCommandLine_parse()
136 return cmdLine; in deCommandLine_parse()
140 void deCommandLine_destroy (deCommandLine* cmdLine) in deCommandLine_destroy() argument
142 deFree(cmdLine->argBuf); in deCommandLine_destroy()
[all …]
/third_party/vk-gl-cts/framework/delibs/decpp/
DdeCommandLine.cpp355 CommandLine cmdLine; in selfTest() local
356 const bool parseOk = parser.parse(0, DE_NULL, &cmdLine, err); in selfTest()
364 CommandLine cmdLine; in selfTest() local
365 const bool parseOk = parser.parse(DE_LENGTH_OF_ARRAY(args), &args[0], &cmdLine, err); in selfTest()
374 CommandLine cmdLine; in selfTest() local
375 const bool parseOk = parser.parse(DE_LENGTH_OF_ARRAY(args), &args[0], &cmdLine, err); in selfTest()
384 CommandLine cmdLine; in selfTest() local
385 const bool parseOk = parser.parse(DE_LENGTH_OF_ARRAY(args), &args[0], &cmdLine, err); in selfTest()
388 DE_TEST_ASSERT(cmdLine.getArgs().size() == DE_LENGTH_OF_ARRAY(args)); in selfTest()
391 DE_TEST_ASSERT(cmdLine.getArgs()[ndx] == args[ndx]); in selfTest()
[all …]
/third_party/vk-gl-cts/executor/tools/
DxeCommandLineExecutor.cpp142 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()
[all …]
DxeExtractShaderPrograms.cpp77 static void writeShaderProgram (const CommandLine& cmdLine, const std::string& casePath, const xe::… in writeShaderProgram() argument
79 …const string basePath = string(de::FilePath::join(cmdLine.dstPath, casePath).getPath()) + "." + de… in writeShaderProgram()
108 static void extractShaderPrograms (const CommandLine& cmdLine, const std::string& casePath, const x… in extractShaderPrograms() argument
126 …writeShaderProgram(cmdLine, casePath, static_cast<const xe::ri::ShaderProgram&>(curItem), programN… in extractShaderPrograms()
143 ShaderProgramExtractHandler (const CommandLine& cmdLine) in ShaderProgramExtractHandler() argument
144 : m_cmdLine(cmdLine) in ShaderProgramExtractHandler()
183 static void extractShaderProgramsFromLogFile (const CommandLine& cmdLine) in extractShaderProgramsFromLogFile() argument
185 std::ifstream in (cmdLine.filename.c_str(), std::ifstream::binary|std::ifstream::in); in extractShaderProgramsFromLogFile()
186 ShaderProgramExtractHandler resultHandler (cmdLine); in extractShaderProgramsFromLogFile()
192 throw std::runtime_error(string("Failed to open '") + cmdLine.filename + "'"); in extractShaderProgramsFromLogFile()
[all …]
DxeMergeTestLogs.cpp148 static void mergeTestLogs (const CommandLine& cmdLine) in mergeTestLogs() argument
152 …for (vector<string>::const_iterator filename = cmdLine.srcFilenames.begin(); filename != cmdLine.s… in mergeTestLogs()
153 readLogFile(&batchResult, filename->c_str(), cmdLine.flags); in mergeTestLogs()
155 if (!cmdLine.dstFilename.empty()) in mergeTestLogs()
156 xe::writeBatchResultToFile(batchResult, cmdLine.dstFilename.c_str()); in mergeTestLogs()
168 static bool parseCommandLine (CommandLine& cmdLine, int argc, const char* const* argv) in parseCommandLine() argument
175 cmdLine.srcFilenames.push_back(arg); in parseCommandLine()
178 if (!cmdLine.dstFilename.empty()) in parseCommandLine()
180 cmdLine.dstFilename = arg+6; in parseCommandLine()
183 cmdLine.flags &= ~FLAG_USE_LAST_INFO; in parseCommandLine()
[all …]
DxeTestLogCompare.cpp264 static bool runCompare (const CommandLine& cmdLine, std::ostream& dst) in runCompare() argument
270 XE_CHECK(!cmdLine.filenames.empty()); in runCompare()
275 results.resize(cmdLine.filenames.size()); in runCompare()
279 for (int ndx = 0; ndx < (int)cmdLine.filenames.size(); ndx++) in runCompare()
281 …readers.push_back(de::SharedPtr<LogFileReader>(new LogFileReader(results[ndx], cmdLine.filenames[n… in runCompare()
285 for (int ndx = 0; ndx < (int)cmdLine.filenames.size(); ndx++) in runCompare()
290 batchNames.push_back(de::FilePath(cmdLine.filenames[ndx].c_str()).getBaseName()); in runCompare()
302 if (cmdLine.outFormat == OUTPUTFORMAT_CSV) in runCompare()
331 if (cmdLine.outMode == OUTPUTMODE_ALL || !allEqual) in runCompare()
333 if (cmdLine.outFormat == OUTPUTFORMAT_TEXT) in runCompare()
[all …]
DxeExtractValues.cpp221 static void printTaggedValues (const CommandLine& cmdLine, std::ostream& dst) in printTaggedValues() argument
223 BatchResultValues values(cmdLine.tagNames); in printTaggedValues()
225 readLogFile(values, cmdLine.filename.c_str()); in printTaggedValues()
230 if (cmdLine.statusCode) in printTaggedValues()
244 if (cmdLine.statusCode) in printTaggedValues()
260 static bool parseCommandLine (CommandLine& cmdLine, int argc, const char* const* argv) in parseCommandLine() argument
267 cmdLine.statusCode = true; in parseCommandLine()
270 if (cmdLine.filename.empty()) in parseCommandLine()
271 cmdLine.filename = arg; in parseCommandLine()
273 cmdLine.tagNames.push_back(arg); in parseCommandLine()
[all …]
DxeBatchResultToJUnit.cpp56 static void parseCommandLine (CommandLine& cmdLine, int argc, const char* const* argv) in parseCommandLine() argument
61 cmdLine.batchResultFile = argv[argc-2]; in parseCommandLine()
62 cmdLine.outputFile = argv[argc-1]; in parseCommandLine()
158 CommandLine cmdLine; in main() local
161 parseCommandLine(cmdLine, argc, argv); in main()
171 batchResultToJUnitReport(cmdLine.batchResultFile.c_str(), cmdLine.outputFile.c_str()); in main()
DxeBatchResultToXml.cpp88 static bool parseCommandLine (CommandLine& cmdLine, int argc, const char* const* argv) in parseCommandLine() argument
103 cmdLine.outputMode = opts.getOption<opt::OutMode>(); in parseCommandLine()
104 cmdLine.batchResultFile = opts.getArgs()[0]; in parseCommandLine()
105 cmdLine.outputPath = opts.getArgs()[1]; in parseCommandLine()
384 CommandLine cmdLine; in main() local
385 if (!parseCommandLine(cmdLine, argc, argv)) in main()
388 if (cmdLine.outputMode == OUTPUTMODE_SINGLE) in main()
389 batchResultToSingleXmlFile(cmdLine.batchResultFile.c_str(), cmdLine.outputPath.c_str()); in main()
391 batchResultToSeparateXmlFiles(cmdLine.batchResultFile.c_str(), cmdLine.outputPath.c_str()); in main()
/third_party/vk-gl-cts/external/openglcts/modules/runner/
DglcTestRunnerMain.cpp49 static bool parseCommandLine(CommandLine& cmdLine, int argc, const char* const* argv) in parseCommandLine() argument
77 cmdLine.runType = runTypes[ndx].runType; in parseCommandLine()
88 cmdLine.waiverPath = value; in parseCommandLine()
93 cmdLine.dstLogDir = value; in parseCommandLine()
97 cmdLine.flags = glcts::TestRunner::PRINT_SUMMARY; in parseCommandLine()
100 cmdLine.flags = glcts::TestRunner::VERBOSE_ALL; in parseCommandLine()
122 CommandLine cmdLine; in main() local
125 if (!parseCommandLine(cmdLine, argc, argv)) in main()
135 …glcts::TestRunner runner(static_cast<tcu::Platform&>(*platform.get()), archive, cmdLine.waiverPath… in main()
136 cmdLine.dstLogDir.c_str(), cmdLine.runType, cmdLine.flags); in main()
/third_party/vk-gl-cts/framework/opengl/
DgluRenderConfig.cpp143 void parseRenderConfig (RenderConfig* config, const tcu::CommandLine& cmdLine) in parseRenderConfig() argument
145 switch (cmdLine.getSurfaceType()) in parseRenderConfig()
156 config->windowVisibility = parseWindowVisibility(cmdLine); in parseRenderConfig()
158 if (cmdLine.getSurfaceWidth() > 0) in parseRenderConfig()
159 config->width = cmdLine.getSurfaceWidth(); in parseRenderConfig()
161 if (cmdLine.getSurfaceHeight() > 0) in parseRenderConfig()
162 config->height = cmdLine.getSurfaceHeight(); in parseRenderConfig()
164 if (cmdLine.getGLConfigName() != DE_NULL) in parseRenderConfig()
165 parseConfigBitsFromName(config, cmdLine.getGLConfigName()); in parseRenderConfig()
167 if (cmdLine.getGLConfigId() >= 0) in parseRenderConfig()
[all …]
DgluRenderContext.cpp133 RenderContext* createRenderContext (tcu::Platform& platform, const tcu::CommandLine& cmdLine, const… in createRenderContext() argument
136 const char* factoryName = cmdLine.getGLContextType(); in createRenderContext()
163 if (cmdLine.getSurfaceType() == tcu::SURFACETYPE_FBO) in createRenderContext()
167 return new FboRenderContext(*factory, config, cmdLine); in createRenderContext()
170 return factory->createContext(config, cmdLine, sharedContext); in createRenderContext()
173 RenderContext* createDefaultRenderContext (tcu::Platform& platform, const tcu::CommandLine& cmdLine in createDefaultRenderContext() argument
178 if (cmdLine.getGLContextFlags()) in createDefaultRenderContext()
179 ctxFlags = parseContextFlags(cmdLine.getGLContextFlags()); in createDefaultRenderContext()
182 parseRenderConfig(&config, cmdLine); in createDefaultRenderContext()
184 return createRenderContext(platform, cmdLine, config); in createDefaultRenderContext()
/third_party/vk-gl-cts/execserver/tools/
DxsClient.cpp151 Client (const CommandLine& cmdLine);
161 Client::Client (const CommandLine& cmdLine) in Client() argument
162 : m_cmdLine(cmdLine) in Client()
303 CommandLine cmdLine; in runClient() local
306 cmdLine.address.setHost("127.0.0.1"); in runClient()
307 cmdLine.address.setPort(50016); in runClient()
308 cmdLine.dstFileName = "TestResults.qpa"; in runClient()
316 cmdLine.address.setPort(atoi(arg+7)); in runClient()
318 cmdLine.address.setHost(parseString(arg+7).c_str()); in runClient()
320 cmdLine.program = parseString(arg+10); in runClient()
[all …]
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/
DvkDeviceUtil.cpp49 const tcu::CommandLine& cmdLine, in createDefaultInstance() argument
94 const bool hasAppParams = readApplicationParameters(appParams, cmdLine, true); in createDefaultInstance()
96 DE_UNREF(cmdLine); in createDefaultInstance()
139 …nstance (const PlatformInterface& vkPlatform, deUint32 apiVersion, const tcu::CommandLine& cmdLine) in createDefaultInstance() argument
142 …return createDefaultInstance(vkPlatform, apiVersion, vector<string>(), vector<string>(), cmdLine, … in createDefaultInstance()
144 …return createDefaultInstance(vkPlatform, apiVersion, vector<string>(), vector<string>(), cmdLine, … in createDefaultInstance()
148 …x (const InstanceInterface& vkInstance, const VkInstance instance, const tcu::CommandLine& cmdLine) in chooseDeviceIndex() argument
155 const deUint32 deviceIdFromCmdLine = cmdLine.getVKDeviceId(); in chooseDeviceIndex()
179 …e (const InstanceInterface& vkInstance, const VkInstance instance, const tcu::CommandLine& cmdLine) in chooseDevice() argument
186 const size_t deviceId = chooseDeviceIndex(vkInstance, instance, cmdLine); in chooseDevice()
DvkDeviceUtil.hpp43 const tcu::CommandLine& cmdLine);
49 const tcu::CommandLine& cmdLine,
57 const tcu::CommandLine& cmdLine);
61 const tcu::CommandLine& cmdLine);
/third_party/vk-gl-cts/framework/platform/
DtcuMain.cpp49 tcu::CommandLine cmdLine (argc, argv); in main() local
50 tcu::DirArchive archive (cmdLine.getArchiveDir()); in main()
51 tcu::TestLog log (cmdLine.getLogFileName(), cmdLine.getLogFlags()); in main()
53 de::UniquePtr<tcu::App> app (new tcu::App(*platform, archive, log, cmdLine)); in main()
60 if (cmdLine.getRunMode() == tcu::RUNMODE_EXECUTE && in main()
/third_party/vk-gl-cts/framework/platform/ohos/
DvkMain.cpp50 tcu::CommandLine cmdLine (argc, argv); in main() local
51 tcu::DirArchive archive (cmdLine.getArchiveDir()); in main()
52 tcu::TestLog log (cmdLine.getLogFileName(), cmdLine.getLogFlags()); in main()
54 de::UniquePtr<tcu::App> app (new tcu::App(*platform, archive, log, cmdLine)); in main()
61 if (cmdLine.getRunMode() == tcu::RUNMODE_EXECUTE && in main()
Dtestmain.cpp156 tcu::CommandLine cmdLine(argc, argv); in main() local
157 tcu::DirArchive archive(cmdLine.getArchiveDir()); in main()
158 tcu::TestLog log(cmdLine.getLogFileName(), cmdLine.getLogFlags()); in main()
160 de::UniquePtr<tcu::App> app(new tcu::App(*platform, archive, log, cmdLine)); in main()
167 if (cmdLine.getRunMode() == tcu::RUNMODE_EXECUTE && in main()
/third_party/vk-gl-cts/android/package/src/com/drawelements/deqp/testercore/
DRemoteAPI.java67 public boolean start (String testerName, String cmdLine, String caseList) { in start() argument
77 cmdLine = testerName + " " + cmdLine + " --deqp-log-filename=" + m_logFileName; in start()
80 cmdLine = cmdLine + " --deqp-caselist=" + caseList; in start()
82 cmdLine = cmdLine.replaceAll(" ", " "); in start()
83 testIntent.putExtra("cmdLine", cmdLine); in start()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/
DvktBuildPrograms.cpp608 de::cmdline::CommandLine cmdLine; in main() local
614 if (!parser.parse(argc, argv, &cmdLine, std::cerr)) in main()
626 if (cmdLine.hasOption<opt::Cases>()) in main()
629 deqpArgv.push_back(cmdLine.getOption<opt::Cases>().c_str()); in main()
632 if (cmdLine.hasOption<opt::ShaderCacheFilename>()) in main()
635 deqpArgv.push_back(cmdLine.getOption<opt::ShaderCacheFilename>().c_str()); in main()
638 if (cmdLine.hasOption<opt::ShaderCache>()) in main()
641 if (cmdLine.getOption<opt::ShaderCache>()) in main()
647 if (cmdLine.hasOption<opt::ShaderCacheTruncate>()) in main()
650 if (cmdLine.getOption<opt::ShaderCacheTruncate>()) in main()
[all …]
DvktTestCase.cpp180 …eDeviceVersions(const PlatformInterface& vkp, deUint32 apiVersion, const tcu::CommandLine& cmdLine) in determineDeviceVersions() argument
182 Move<VkInstance> preinstance = createDefaultInstance(vkp, apiVersion, cmdLine); in determineDeviceVersions()
194 const vk::VkPhysicalDevice choosenDevice = chooseDevice(preinterface, *preinstance, cmdLine); in determineDeviceVersions()
202 …ersion, const vector<string>& enabledExtensions, const tcu::CommandLine& cmdLine, DebugReportRecor… in createInstance() argument
204 …vkp, deUint32 apiVersion, const vector<string>& enabledExtensions, const tcu::CommandLine& cmdLine) in createInstance()
231 …n, vector<string>(begin(enabledLayers), end(enabledLayers)), nonCoreExtensions, cmdLine, recorder); in createInstance()
233 … apiVersion, vector<string>(begin(enabledLayers), end(enabledLayers)), nonCoreExtensions, cmdLine); in createInstance()
259 const tcu::CommandLine& cmdLine, in createDefaultDevice() argument
272 if (cmdLine.isValidationEnabled()) in createDefaultDevice()
332 if (cmdLine.isSubProcess()) in createDefaultDevice()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/
DvktBuildPrograms.cpp608 de::cmdline::CommandLine cmdLine; in main() local
614 if (!parser.parse(argc, argv, &cmdLine, std::cerr)) in main()
626 if (cmdLine.hasOption<opt::Cases>()) in main()
629 deqpArgv.push_back(cmdLine.getOption<opt::Cases>().c_str()); in main()
632 if (cmdLine.hasOption<opt::ShaderCacheFilename>()) in main()
635 deqpArgv.push_back(cmdLine.getOption<opt::ShaderCacheFilename>().c_str()); in main()
638 if (cmdLine.hasOption<opt::ShaderCache>()) in main()
641 if (cmdLine.getOption<opt::ShaderCache>()) in main()
647 if (cmdLine.hasOption<opt::ShaderCacheTruncate>()) in main()
650 if (cmdLine.getOption<opt::ShaderCacheTruncate>()) in main()
[all …]
DvktTestCase.cpp180 …eDeviceVersions(const PlatformInterface& vkp, deUint32 apiVersion, const tcu::CommandLine& cmdLine) in determineDeviceVersions() argument
182 Move<VkInstance> preinstance = createDefaultInstance(vkp, apiVersion, cmdLine); in determineDeviceVersions()
194 const vk::VkPhysicalDevice choosenDevice = chooseDevice(preinterface, *preinstance, cmdLine); in determineDeviceVersions()
202 …ersion, const vector<string>& enabledExtensions, const tcu::CommandLine& cmdLine, DebugReportRecor… in createInstance() argument
204 …vkp, deUint32 apiVersion, const vector<string>& enabledExtensions, const tcu::CommandLine& cmdLine) in createInstance()
231 …n, vector<string>(begin(enabledLayers), end(enabledLayers)), nonCoreExtensions, cmdLine, recorder); in createInstance()
233 … apiVersion, vector<string>(begin(enabledLayers), end(enabledLayers)), nonCoreExtensions, cmdLine); in createInstance()
259 const tcu::CommandLine& cmdLine, in createDefaultDevice() argument
272 if (cmdLine.isValidationEnabled()) in createDefaultDevice()
332 if (cmdLine.isSubProcess()) in createDefaultDevice()
[all …]
/third_party/vk-gl-cts/external/vulkancts/vkscserver/
Dserver.cpp96 de::cmdline::CommandLine cmdLine; in main() local
103 if (!parser.parse(argc, argv, &cmdLine, std::cerr)) in main()
116 addr.setPort(cmdLine.getOption<opt::Port>()); in main()
130 cmdLine.getOption<opt::PipelineCompilerPath>(), in main()
131 cmdLine.getOption<opt::PipelineCompilerDataDir>(), in main()
132 cmdLine.getOption<opt::PipelineCompilerOutputFile>(), in main()
133 cmdLine.getOption<opt::PipelineCompilerLogFile>(), in main()
134 cmdLine.getOption<opt::PipelineCompilerArgs>() in main()
136 cmdLine.getOption<opt::LogFile>() }; in main()
/third_party/vk-gl-cts/framework/common/
DtcuApp.cpp127 App::App (Platform& platform, Archive& archive, TestLog& log, const CommandLine& cmdLine) in App() argument
136 if (!cmdLine.isSubProcess()) in App()
147 const RunMode runMode = cmdLine.getRunMode(); in App()
150 if (cmdLine.isWatchDogEnabled()) in App()
154 if (cmdLine.isCrashHandlingEnabled()) in App()
158 m_testCtx = new TestContext(m_platform, archive, log, cmdLine, m_watchDog); in App()
169 writeXmlCaselistsToFiles(*m_testRoot, *m_testCtx, cmdLine); in App()
171 writeTxtCaselistsToFiles(*m_testRoot, *m_testCtx, cmdLine); in App()

12345