From 3939ffed7116cffec6da386e3ad5b52f2ae39dc5 Mon Sep 17 00:00:00 2001 From: Pyry Haulos Date: Tue, 8 Mar 2016 15:55:36 -0800 Subject: [PATCH] Add vkt::addTestGroup() utility to vktTestGroupUtil This is similar to vkt::addFunctionCase(). Change-Id: Iaa3298c56b013c700ca7746cc6907b8bf3544200 --- external/vulkancts/modules/vulkan/vktTestGroupUtil.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/external/vulkancts/modules/vulkan/vktTestGroupUtil.hpp b/external/vulkancts/modules/vulkan/vktTestGroupUtil.hpp index 7a034b7..bb6a1a5 100644 --- a/external/vulkancts/modules/vulkan/vktTestGroupUtil.hpp +++ b/external/vulkancts/modules/vulkan/vktTestGroupUtil.hpp @@ -94,6 +94,24 @@ tcu::TestCaseGroup* createTestGroup (tcu::TestContext& testCtx, return new TestGroupHelper1(testCtx, name, description, createChildren, arg0); } +inline void addTestGroup (tcu::TestCaseGroup* parent, + const std::string& name, + const std::string& description, + TestGroupHelper0::CreateChildrenFunc createChildren) +{ + parent->addChild(createTestGroup(parent->getTestContext(), name, description, createChildren)); +} + +template +void addTestGroup (tcu::TestCaseGroup* parent, + const std::string& name, + const std::string& description, + typename TestGroupHelper1::CreateChildrenFunc createChildren, + Arg0 arg0) +{ + parent->addChild(createTestGroup(parent->getTestContext(), name, description, createChildren, arg0)); +} + } // vkt #endif // _VKTTESTGROUPUTIL_HPP -- 2.7.4