Lines Matching defs:testCtx

160 												TestCaseExecutor			(tcu::TestContext& testCtx);
168 void deinitTestPackage (tcu::TestContext& testCtx) override;
171 void reportDurations (tcu::TestContext& testCtx, const std::string& packageName, const deInt64& duration, const std::map<std::string, deUint64>& groupsDurationTime) override;
177 void runTestsInSubprocess (tcu::TestContext& testCtx);
213 static MovePtr<vk::Library> createLibrary (tcu::TestContext& testCtx)
216 return MovePtr<vk::Library>(testCtx.getPlatform().getVulkanPlatform().createLibrary(vk::Platform::LIBRARY_TYPE_VULKAN, testCtx.getCommandLine().getVkLibraryPath()));
218 return MovePtr<vk::Library>(testCtx.getPlatform().getVulkanPlatform().createLibrary(testCtx.getCommandLine().getVkLibraryPath()));
242 TestCaseExecutor::TestCaseExecutor (tcu::TestContext& testCtx)
243 : m_prebuiltBinRegistry (testCtx.getArchive(), "vulkan/prebuilt")
244 , m_library (createLibrary(testCtx))
245 , m_renderDoc (testCtx.getCommandLine().isRenderDocEnabled()
249 , m_resourceInterface (new vk::ResourceInterfaceVKSC(testCtx))
251 , m_resourceInterface (new vk::ResourceInterfaceStandard(testCtx))
259 std::vector<int> caseFraction = testCtx.getCommandLine().getCaseFraction();
273 if (testCtx.getCommandLine().isSubProcess())
285 if (!testCtx.getCommandLine().isSubProcess() && !std::string(testCtx.getCommandLine().getSubprocessConfigFile()).empty())
287 std::ifstream iFile(testCtx.getCommandLine().getSubprocessConfigFile(), std::ios::in);
289 TCU_THROW(InternalError, (std::string("Missing config file defining number of tests: ") + testCtx.getCommandLine().getSubprocessConfigFile()).c_str());
319 if (!std::string(testCtx.getCommandLine().getServerAddress()).empty())
322 vksc_server::OpenRemoteStandardOutput(testCtx.getCommandLine().getServerAddress());
327 m_context = MovePtr<Context>(new Context(testCtx, m_library->getPlatformInterface(), m_progCollection, m_resourceInterface));
333 testCtx.getCommandLine().getInitialCmdLine());
334 m_waiverMechanism.setup(testCtx.getCommandLine().getWaiverFileName(),
341 if (!std::string(testCtx.getCommandLine().getServerAddress()).empty())
344 request.fileName = testCtx.getCommandLine().getLogFileName();
361 testCtx.getLog().writeSessionInfo(sessionInfo.get());
370 if (!testCtx.getCommandLine().isSubProcess())
647 void TestCaseExecutor::deinitTestPackage (tcu::TestContext& testCtx)
650 if (!testCtx.getCommandLine().isSubProcess())
654 runTestsInSubprocess(testCtx);
672 DE_UNREF(testCtx);
696 void TestCaseExecutor::reportDurations(tcu::TestContext& testCtx, const std::string& packageName, const deInt64& duration, const std::map<std::string, deUint64>& groupsDurationTime)
701 request.fileName = testCtx.getCommandLine().getLogFileName();
724 DE_UNREF(testCtx);
744 void TestCaseExecutor::runTestsInSubprocess (tcu::TestContext& testCtx)
747 if (testCtx.getCommandLine().isSubProcess())
753 std::vector<int> caseFraction = testCtx.getCommandLine().getCaseFraction();
759 if (!std::string(testCtx.getCommandLine().getPipelineCompilerPath()).empty())
770 if (!std::string(testCtx.getCommandLine().getPipelineCompilerPath()).empty())
789 std::string appName = testCtx.getCommandLine().getApplicationName();
796 if (!std::string(testCtx.getCommandLine().getPipelineCompilerPath()).empty())
798 newCmdLine += " --deqp-pipeline-compiler=" + std::string(testCtx.getCommandLine().getPipelineCompilerPath());
800 if (!std::string(testCtx.getCommandLine().getPipelineCompilerDataDir()).empty())
801 newCmdLine += " --deqp-pipeline-dir=" + std::string(testCtx.getCommandLine().getPipelineCompilerDataDir());
805 if (!std::string(testCtx.getCommandLine().getPipelineCompilerArgs()).empty())
806 newCmdLine += " --deqp-pipeline-args=\"" + std::string( testCtx.getCommandLine().getPipelineCompilerArgs() ) + "\"";
812 std::string originalCmdLine = testCtx.getCommandLine().getInitialCmdLine();
950 if (!std::string(testCtx.getCommandLine().getServerAddress()).empty())
954 request.fileName = testCtx.getCommandLine().getLogFileName();
963 testCtx.getLog().supressLogging(false);
964 testCtx.getLog().writeRaw(subQpaCopy.c_str());
968 testCtx.getLog().supressLogging(true);
971 testCtx.getLog().supressLogging(true);
998 DE_UNREF(testCtx);
1017 tcu::TestContext& testCtx = glslTests->getTestContext();
1037 glslTests->addChild(createShaderLibraryGroup(testCtx,
1049 de::MovePtr<tcu::TestCaseGroup> glsl440Tests = de::MovePtr<tcu::TestCaseGroup>(new tcu::TestCaseGroup(testCtx, "440"));
1052 glsl440Tests->addChild(createShaderLibraryGroup(testCtx,
1059 glslTests->addChild(sr::createDerivateTests (testCtx));
1060 glslTests->addChild(sr::createDiscardTests (testCtx));
1062 glslTests->addChild(sr::createDemoteTests (testCtx));
1064 glslTests->addChild(sr::createIndexingTests (testCtx));
1065 glslTests->addChild(sr::createShaderInvarianceTests (testCtx));
1066 glslTests->addChild(sr::createLimitTests (testCtx));
1067 glslTests->addChild(sr::createLoopTests (testCtx));
1068 glslTests->addChild(sr::createMatrixTests (testCtx));
1069 glslTests->addChild(sr::createOperatorTests (testCtx));
1070 glslTests->addChild(sr::createReturnTests (testCtx));
1071 glslTests->addChild(sr::createStructTests (testCtx));
1072 glslTests->addChild(sr::createSwitchTests (testCtx));
1073 glslTests->addChild(sr::createTextureFunctionTests (testCtx));
1074 glslTests->addChild(sr::createTextureGatherTests (testCtx));
1075 glslTests->addChild(sr::createBuiltinVarTests (testCtx));
1078 glslTests->addChild(shaderexecutor::createBuiltinTests (testCtx));
1079 glslTests->addChild(shaderexecutor::createOpaqueTypeIndexingTests (testCtx));
1080 glslTests->addChild(shaderexecutor::createAtomicOperationTests (testCtx));
1081 glslTests->addChild(shaderexecutor::createShaderClockTests (testCtx));
1085 glslTests->addChild(cts_amber::createCombinedOperationsGroup (testCtx));
1086 glslTests->addChild(cts_amber::createCrashTestGroup (testCtx));
1092 BaseTestPackage::BaseTestPackage (tcu::TestContext& testCtx, const char* name)
1093 : tcu::TestPackage(testCtx, name, "")
1103 TestPackage::TestPackage (tcu::TestContext& testCtx)
1104 : BaseTestPackage(testCtx, "dEQP-VK")
1112 ExperimentalTestPackage::ExperimentalTestPackage (tcu::TestContext& testCtx)
1113 : BaseTestPackage(testCtx, "dEQP-VK-experimental")
1125 TestPackageSC::TestPackageSC (tcu::TestContext& testCtx)
1126 : BaseTestPackage(testCtx, "dEQP-VKSC")
1141 tcu::TestCaseGroup* createGlslTests (tcu::TestContext& testCtx, const std::string& name)
1143 return createTestGroup(testCtx, name, createGlslTests);