xref: /aosp_15_r20/external/deqp/modules/internal/ditTestPackage.cpp (revision 35238bce31c2a825756842865a792f8cf7f89930)
1 /*-------------------------------------------------------------------------
2  * drawElements Quality Program OpenGL ES 2.0 Module
3  * -------------------------------------------------
4  *
5  * Copyright 2014 The Android Open Source Project
6  *
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
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  *//*!
20  * \file
21  * \brief drawElements Internal Test Package
22  *//*--------------------------------------------------------------------*/
23 
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"
33 
34 namespace dit
35 {
36 namespace
37 {
38 
39 class TextureTests : public tcu::TestCaseGroup
40 {
41 public:
TextureTests(tcu::TestContext & testCtx)42     TextureTests(tcu::TestContext &testCtx)
43         : tcu::TestCaseGroup(testCtx, "texture", "Tests for tcu::Texture and utils.")
44     {
45     }
46 
init(void)47     void init(void)
48     {
49         addChild(createSRGB8ConversionTest(m_testCtx));
50     }
51 };
52 
53 class DeqpTests : public tcu::TestCaseGroup
54 {
55 public:
DeqpTests(tcu::TestContext & testCtx)56     DeqpTests(tcu::TestContext &testCtx) : tcu::TestCaseGroup(testCtx, "deqp", "dEQP Test Framework Self-tests")
57     {
58     }
59 
init(void)60     void init(void)
61     {
62         addChild(new TestLogTests(m_testCtx));
63         addChild(new ImageIOTests(m_testCtx));
64         addChild(new ImageCompareTests(m_testCtx));
65         addChild(new TextureTests(m_testCtx));
66         addChild(createSeedBuilderTests(m_testCtx));
67     }
68 };
69 
70 } // namespace
71 
72 class TestCaseExecutor : public tcu::TestCaseExecutor
73 {
74 public:
TestCaseExecutor(void)75     TestCaseExecutor(void)
76     {
77     }
78 
~TestCaseExecutor(void)79     ~TestCaseExecutor(void)
80     {
81     }
82 
init(tcu::TestCase * testCase,const std::string &)83     void init(tcu::TestCase *testCase, const std::string &)
84     {
85         testCase->init();
86     }
87 
deinit(tcu::TestCase * testCase)88     void deinit(tcu::TestCase *testCase)
89     {
90         testCase->deinit();
91     }
92 
iterate(tcu::TestCase * testCase)93     tcu::TestNode::IterateResult iterate(tcu::TestCase *testCase)
94     {
95         return testCase->iterate();
96     }
97 };
98 
TestPackage(tcu::TestContext & testCtx)99 TestPackage::TestPackage(tcu::TestContext &testCtx) : tcu::TestPackage(testCtx, "dE-IT", "drawElements Internal Tests")
100 {
101 }
102 
~TestPackage(void)103 TestPackage::~TestPackage(void)
104 {
105 }
106 
init(void)107 void TestPackage::init(void)
108 {
109     addChild(new BuildInfoTests(m_testCtx));
110     addChild(new DelibsTests(m_testCtx));
111     addChild(new FrameworkTests(m_testCtx));
112     addChild(new DeqpTests(m_testCtx));
113 }
114 
createExecutor(void) const115 tcu::TestCaseExecutor *TestPackage::createExecutor(void) const
116 {
117     return new TestCaseExecutor();
118 }
119 
120 } // namespace dit
121