1 /*-------------------------------------------------------------------------
2 * drawElements Quality Program OpenGL ES 2.0 Module
3 * -------------------------------------------------
5 * Copyright 2014 The Android Open Source Project
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
21 * \brief drawElements Internal Test Package
22 *//*--------------------------------------------------------------------*/
24 #include "ditTestPackage.hpp"
25 #include "ditBuildInfoTests.hpp"
26 #include "ditDelibsTests.hpp"
27 #include "ditFrameworkTests.hpp"
28 #include "ditImageIOTests.hpp"
29 #include "ditImageCompareTests.hpp"
30 #include "ditTestLogTests.hpp"
31 #include "ditSeedBuilderTests.hpp"
32 #include "ditSRGB8ConversionTest.hpp"
39 class TextureTests : public tcu::TestCaseGroup
42 TextureTests (tcu::TestContext& testCtx)
43 : tcu::TestCaseGroup(testCtx, "texture", "Tests for tcu::Texture and utils.")
49 addChild(createSRGB8ConversionTest(m_testCtx));
53 class DeqpTests : public tcu::TestCaseGroup
56 DeqpTests (tcu::TestContext& testCtx)
57 : tcu::TestCaseGroup(testCtx, "deqp", "dEQP Test Framework Self-tests")
63 addChild(new TestLogTests (m_testCtx));
64 addChild(new ImageIOTests (m_testCtx));
65 addChild(new ImageCompareTests (m_testCtx));
66 addChild(new TextureTests (m_testCtx));
67 addChild(createSeedBuilderTests (m_testCtx));
73 class TestCaseExecutor : public tcu::TestCaseExecutor
76 TestCaseExecutor (void)
80 ~TestCaseExecutor (void)
84 void init (tcu::TestCase* testCase, const std::string&)
89 void deinit (tcu::TestCase* testCase)
94 tcu::TestNode::IterateResult iterate (tcu::TestCase* testCase)
96 return testCase->iterate();
100 TestPackage::TestPackage (tcu::TestContext& testCtx)
101 : tcu::TestPackage(testCtx, "dE-IT", "drawElements Internal Tests")
105 TestPackage::~TestPackage (void)
109 void TestPackage::init (void)
111 addChild(new BuildInfoTests (m_testCtx));
112 addChild(new DelibsTests (m_testCtx));
113 addChild(new FrameworkTests (m_testCtx));
114 addChild(new DeqpTests (m_testCtx));
117 tcu::TestCaseExecutor* TestPackage::createExecutor (void) const
119 return new TestCaseExecutor();