)
set(DEQP_VK_API_LIBS
+ deqp-vk-common
tcutil
vkutil
)
#include "vktApiTests.hpp"
-#include "deUniquePtr.hpp"
-
+#include "vktTestGroupUtil.hpp"
#include "vktApiSmokeTests.hpp"
#include "vktApiDeviceInitializationTests.hpp"
#include "vktApiObjectManagementTests.hpp"
namespace
{
-tcu::TestCaseGroup* createBufferViewTests (tcu::TestContext& testCtx)
+void createBufferViewTests (tcu::TestCaseGroup* bufferViewTests)
{
- de::MovePtr<tcu::TestCaseGroup> bufferViewTests (new tcu::TestCaseGroup(testCtx, "buffer_view", "BufferView tests"));
+ tcu::TestContext& testCtx = bufferViewTests->getTestContext();
bufferViewTests->addChild(createBufferViewCreateTests (testCtx));
bufferViewTests->addChild(createBufferViewAccessTests (testCtx));
-
- return bufferViewTests.release();
}
-} // anonymous
-
-tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
+void createApiTests (tcu::TestCaseGroup* apiTests)
{
- de::MovePtr<tcu::TestCaseGroup> apiTests (new tcu::TestCaseGroup(testCtx, "api", "API Tests"));
+ tcu::TestContext& testCtx = apiTests->getTestContext();
apiTests->addChild(createSmokeTests (testCtx));
apiTests->addChild(api::createFeatureInfoTests (testCtx));
apiTests->addChild(createDeviceInitializationTests (testCtx));
apiTests->addChild(createObjectManagementTests (testCtx));
apiTests->addChild(createBufferTests (testCtx));
- apiTests->addChild(createBufferViewTests (testCtx));
+ apiTests->addChild(createTestGroup (testCtx, "buffer_view", "BufferView tests", createBufferViewTests));
apiTests->addChild(createCommandBuffersTests (testCtx));
apiTests->addChild(createCopiesAndBlittingTests (testCtx));
+}
+
+} // anonymous
- return apiTests.release();
+tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
+{
+ return createTestGroup(testCtx, "api", "API Tests", createApiTests);
}
} // api
)
set(DEQP_VK_BINDING_MODEL_LIBS
+ deqp-vk-common
tcutil
vkutil
)
#include "vktBindingModelTests.hpp"
#include "vktBindingShaderAccessTests.hpp"
-
-#include "deUniquePtr.hpp"
+#include "vktTestGroupUtil.hpp"
namespace vkt
{
namespace BindingModel
{
-tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
+namespace
+{
+
+void createChildren (tcu::TestCaseGroup* group)
{
- de::MovePtr<tcu::TestCaseGroup> group(new tcu::TestCaseGroup(testCtx, "binding_model", "Resource binding tests"));
+ tcu::TestContext& testCtx = group->getTestContext();
group->addChild(createShaderAccessTests(testCtx));
// \todo [2015-07-30 jarkko] .change_binding.{between_renderpasses, within_pass}
// \todo [2015-07-30 jarkko] .descriptor_set_chain
// \todo [2015-07-30 jarkko] .update_descriptor_set
+}
+
+} // anonymous
- return group.release();
+tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
+{
+ return createTestGroup(testCtx, "binding_model", "Resource binding tests", createChildren);
}
} // BindingModel
)
set(DEQP_VK_COMPUTE_LIBS
+ deqp-vk-common
tcutil
vkutil
)
#include "vktComputeBasicComputeShaderTests.hpp"
#include "vktComputeIndirectComputeDispatchTests.hpp"
#include "vktComputeShaderBuiltinVarTests.hpp"
-#include "deUniquePtr.hpp"
+#include "vktTestGroupUtil.hpp"
namespace vkt
{
namespace compute
{
-tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
+namespace
+{
+
+void createChildren (tcu::TestCaseGroup* computeTests)
{
- de::MovePtr<tcu::TestCaseGroup> computeTests (new tcu::TestCaseGroup(testCtx, "compute", "Compute shader tests"));
+ tcu::TestContext& testCtx = computeTests->getTestContext();
computeTests->addChild(createBasicComputeShaderTests(testCtx));
computeTests->addChild(createIndirectComputeDispatchTests(testCtx));
computeTests->addChild(createComputeShaderBuiltinVarTests(testCtx));
+}
- return computeTests.release();
+} // anonymous
+
+tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
+{
+ return createTestGroup(testCtx, "compute", "Compute shader tests", createChildren);
}
} // compute
)
set(DEQP_VK_DRAW_LIBS
+ deqp-vk-common
tcutil
vkutil
)
#include "vktDrawSimpleTest.hpp"
#include "vktDrawIndexedTest.hpp"
#include "vktDrawIndirectTest.hpp"
-
-#include "deUniquePtr.hpp"
+#include "vktTestGroupUtil.hpp"
namespace vkt
{
namespace Draw
{
-tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
+namespace
+{
+
+void createChildren (tcu::TestCaseGroup* group)
{
- de::MovePtr<tcu::TestCaseGroup> group(new tcu::TestCaseGroup(testCtx, "draw", "Spimple Draw tests"));
+ tcu::TestContext& testCtx = group->getTestContext();
group->addChild(new SimpleDrawTests(testCtx));
group->addChild(new DrawIndexedTests(testCtx));
group->addChild(new IndirectDrawTests(testCtx));
+}
+
+} // anonymous
- return group.release();
+tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
+{
+ return createTestGroup(testCtx, "draw", "Spimple Draw tests", createChildren);
}
} // Draw
)
set(DEQP_VK_DYNAMIC_STATE_LIBS
+ deqp-vk-common
tcutil
vkutil
)
#include "vktDynamicStateCBTests.hpp"
#include "vktDynamicStateDSTests.hpp"
#include "vktDynamicStateGeneralTests.hpp"
-
-#include "deUniquePtr.hpp"
+#include "vktTestGroupUtil.hpp"
namespace vkt
{
namespace DynamicState
{
-tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
+namespace
+{
+
+void createChildren (tcu::TestCaseGroup* group)
{
- de::MovePtr<tcu::TestCaseGroup> group(new tcu::TestCaseGroup(testCtx, "dynamic_state", "Dynamic State Tests"));
+ tcu::TestContext& testCtx = group->getTestContext();
group->addChild(new DynamicStateVPTests(testCtx));
group->addChild(new DynamicStateRSTests(testCtx));
group->addChild(new DynamicStateCBTests(testCtx));
group->addChild(new DynamicStateDSTests(testCtx));
group->addChild(new DynamicStateGeneralTests(testCtx));
+}
+
+} // anonymous
- return group.release();
+tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
+{
+ return createTestGroup(testCtx, "dynamic_state", "Dynamic State Tests", createChildren);
}
} // DynamicState
)
set(DEQP_VK_IMAGE_LIBS
+ deqp-vk-common
tcutil
vkutil
)
#include "vktImageLoadStoreTests.hpp"
#include "vktImageQualifiersTests.hpp"
#include "vktImageSizeTests.hpp"
-#include "deUniquePtr.hpp"
+#include "vktTestGroupUtil.hpp"
namespace vkt
{
namespace image
{
-tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
+namespace
+{
+
+void createChildren (tcu::TestCaseGroup* imageTests)
{
- de::MovePtr<tcu::TestCaseGroup> imageTests (new tcu::TestCaseGroup(testCtx, "image", "Image tests"));
+ tcu::TestContext& testCtx = imageTests->getTestContext();
imageTests->addChild(createImageStoreTests(testCtx));
imageTests->addChild(createImageLoadStoreTests(testCtx));
imageTests->addChild(createImageFormatReinterpretTests(testCtx));
imageTests->addChild(createImageQualifiersTests(testCtx));
imageTests->addChild(createImageSizeTests(testCtx));
+}
- return imageTests.release();
+} // anonymous
+
+tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
+{
+ return createTestGroup(testCtx, "image", "Image tests", createChildren);
}
} // image
)
set(DEQP_VK_MEMORY_LIBS
+ deqp-vk-common
tcutil
vkutil
)
#include "vktMemoryAllocationTests.hpp"
#include "vktMemoryMappingTests.hpp"
#include "vktMemoryPipelineBarrierTests.hpp"
-
-#include "deUniquePtr.hpp"
+#include "vktTestGroupUtil.hpp"
namespace vkt
{
namespace memory
{
-tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
+namespace
+{
+
+void createChildren (tcu::TestCaseGroup* memoryTests)
{
- de::MovePtr<tcu::TestCaseGroup> memoryTests (new tcu::TestCaseGroup(testCtx, "memory", "Memory Tests"));
+ tcu::TestContext& testCtx = memoryTests->getTestContext();
memoryTests->addChild(createAllocationTests (testCtx));
memoryTests->addChild(createMappingTests (testCtx));
memoryTests->addChild(createPipelineBarrierTests (testCtx));
+}
+
+} // anonymous
- return memoryTests.release();
+tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
+{
+ return createTestGroup(testCtx, "memory", "Memory Tests", createChildren);
}
} // memory
)
set(DEQP_VK_PIPELINE_LIBS
+ deqp-vk-common
tcutil
vkutil
referencerenderer
#include "vktPipelineMultisampleTests.hpp"
#include "vktPipelineVertexInputTests.hpp"
#include "vktPipelineTimestampTests.hpp"
-#include "deUniquePtr.hpp"
+#include "vktTestGroupUtil.hpp"
namespace vkt
{
namespace pipeline
{
-tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
+namespace
+{
+
+void createChildren (tcu::TestCaseGroup* pipelineTests)
{
- de::MovePtr<tcu::TestCaseGroup> pipelineTests (new tcu::TestCaseGroup(testCtx, "pipeline", "Pipeline Tests"));
+ tcu::TestContext& testCtx = pipelineTests->getTestContext();
pipelineTests->addChild(createStencilTests (testCtx));
pipelineTests->addChild(createBlendTests (testCtx));
pipelineTests->addChild(createVertexInputTests (testCtx));
pipelineTests->addChild(createInputAssemblyTests(testCtx));
pipelineTests->addChild(createTimestampTests (testCtx));
+}
- return pipelineTests.release();
+} // anonymous
+
+tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
+{
+ return createTestGroup(testCtx, "pipeline", "Pipeline Tests", createChildren);
}
} // pipeline
)
set(DEQP_VK_QUERY_POOL_LIBS
+ deqp-vk-common
tcutil
vkutil
)
*//*!
* \file
* \brief Vulkan Query Pool Tests
- *//*--------------------------------------------------------------------*/\r
-\r
-#include "vktQueryPoolTests.hpp"
+ *//*--------------------------------------------------------------------*/
-#include "deUniquePtr.hpp"
+#include "vktQueryPoolTests.hpp"
+#include "vktTestGroupUtil.hpp"
#include "vktQueryPoolOcclusionTests.hpp"
namespace vkt
namespace QueryPool
{
-tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
+namespace
+{
+
+void createChildren (tcu::TestCaseGroup* queryPoolTests)
{
- de::MovePtr<tcu::TestCaseGroup> queryPoolTests (new tcu::TestCaseGroup(testCtx, "query_pool", "query pool tests"));
+ tcu::TestContext& testCtx = queryPoolTests->getTestContext();
queryPoolTests->addChild(new QueryPoolOcclusionTests(testCtx));
+}
+
+} // anonymous
- return queryPoolTests.release();
+tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
+{
+ return createTestGroup(testCtx, "query_pool", "query pool tests", createChildren);
}
} // QueryPool
)
set(DEQP_VK_SHADEREXECUTOR_LIBS
+ deqp-vk-common
tcutil
vkutil
)
)
set(DEQP_VK_SHADERRENDER_LIBS
+ deqp-vk-common
tcutil
vkutil
)
)
set(DEQP_VK_SPIRV_ASSEMBLY_LIBS
+ deqp-vk-common
tcutil
vkutil
)
#include "vktSpvAsmTests.hpp"
-#include "deUniquePtr.hpp"
-
#include "vktSpvAsmInstructionTests.hpp"
+#include "vktTestGroupUtil.hpp"
namespace vkt
{
namespace SpirVAssembly
{
-tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
+namespace
+{
+
+void createChildren (tcu::TestCaseGroup* spirVAssemblyTests)
{
- de::MovePtr<tcu::TestCaseGroup> spirVAssemblyTests (new tcu::TestCaseGroup(testCtx, "spirv_assembly", "SPIR-V Assembly tests"));
+ tcu::TestContext& testCtx = spirVAssemblyTests->getTestContext();
spirVAssemblyTests->addChild(createInstructionTests(testCtx));
// \todo [2015-09-28 antiagainst] control flow
// \todo [2015-09-28 antiagainst] multiple entry points for the same shader stage
// \todo [2015-09-28 antiagainst] multiple shaders in the same module
+}
+
+} // anonymous
- return spirVAssemblyTests.release();
+tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
+{
+ return createTestGroup(testCtx, "spirv_assembly", "SPIR-V Assembly tests", createChildren);
}
} // SpirVAssembly
)
set(DEQP_VK_SSBO_LIBS
+ deqp-vk-common
tcutil
vkutil
)
)
set(DEQP_VK_UBO_LIBS
+ deqp-vk-common
tcutil
vkutil
)
#include "deUniquePtr.hpp"
+#include "vktTestGroupUtil.hpp"
#include "vktApiTests.hpp"
#include "vktPipelineTests.hpp"
#include "vktBindingModelTests.hpp"
// GLSL shader tests
-tcu::TestCaseGroup* createGlslTests (tcu::TestContext& testCtx)
+void createGlslTests (tcu::TestCaseGroup* glslTests)
{
- de::MovePtr<tcu::TestCaseGroup> glslTests (new tcu::TestCaseGroup(testCtx, "glsl", "GLSL shader execution tests"));
+ tcu::TestContext& testCtx = glslTests->getTestContext();
// ShaderLibrary-based tests
static const struct
// ShaderExecutor-based tests
glslTests->addChild(shaderexecutor::createBuiltinTests (testCtx));
glslTests->addChild(shaderexecutor::createOpaqueTypeIndexingTests (testCtx));
-
- return glslTests.release();
}
// TestPackage
addChild(pipeline::createTests (m_testCtx));
addChild(BindingModel::createTests (m_testCtx));
addChild(SpirVAssembly::createTests (m_testCtx));
- addChild(createGlslTests (m_testCtx));
+ addChild(createTestGroup (m_testCtx, "glsl", "GLSL shader execution tests", createGlslTests));
addChild(createRenderPassTests (m_testCtx));
addChild(memory::createTests (m_testCtx));
addChild(ubo::createTests (m_testCtx));