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 
33 namespace dit
34 {
35 
36 class DeqpTests : public tcu::TestCaseGroup
37 {
38 public:
DeqpTests(tcu::TestContext & testCtx)39 	DeqpTests (tcu::TestContext& testCtx)
40 		: tcu::TestCaseGroup(testCtx, "deqp", "dEQP Test Framework Self-tests")
41 	{
42 	}
43 
init(void)44 	void init (void)
45 	{
46 		addChild(new TestLogTests		(m_testCtx));
47 		addChild(new ImageIOTests		(m_testCtx));
48 		addChild(new ImageCompareTests	(m_testCtx));
49 		addChild(createSeedBuilderTests	(m_testCtx));
50 	}
51 };
52 
53 class TestCaseExecutor : public tcu::TestCaseExecutor
54 {
55 public:
TestCaseExecutor(void)56 	TestCaseExecutor (void)
57 	{
58 	}
59 
~TestCaseExecutor(void)60 	~TestCaseExecutor (void)
61 	{
62 	}
63 
init(tcu::TestCase * testCase,const std::string &)64 	void init (tcu::TestCase* testCase, const std::string&)
65 	{
66 		testCase->init();
67 	}
68 
deinit(tcu::TestCase * testCase)69 	void deinit (tcu::TestCase* testCase)
70 	{
71 		testCase->deinit();
72 	}
73 
iterate(tcu::TestCase * testCase)74 	tcu::TestNode::IterateResult iterate (tcu::TestCase* testCase)
75 	{
76 		return testCase->iterate();
77 	}
78 };
79 
TestPackage(tcu::TestContext & testCtx)80 TestPackage::TestPackage (tcu::TestContext& testCtx)
81 	: tcu::TestPackage(testCtx, "dE-IT", "drawElements Internal Tests")
82 {
83 }
84 
~TestPackage(void)85 TestPackage::~TestPackage (void)
86 {
87 }
88 
init(void)89 void TestPackage::init (void)
90 {
91 	addChild(new BuildInfoTests	(m_testCtx));
92 	addChild(new DelibsTests	(m_testCtx));
93 	addChild(new FrameworkTests	(m_testCtx));
94 	addChild(new DeqpTests		(m_testCtx));
95 }
96 
createExecutor(void) const97 tcu::TestCaseExecutor* TestPackage::createExecutor (void) const
98 {
99 	return new TestCaseExecutor();
100 }
101 
102 } // dit
103