13c827367444ee418f129b2c238299f49d3264554Jarkko Poyry/*-------------------------------------------------------------------------
23c827367444ee418f129b2c238299f49d3264554Jarkko Poyry * drawElements Quality Program OpenGL ES 2.0 Module
33c827367444ee418f129b2c238299f49d3264554Jarkko Poyry * -------------------------------------------------
43c827367444ee418f129b2c238299f49d3264554Jarkko Poyry *
53c827367444ee418f129b2c238299f49d3264554Jarkko Poyry * Copyright 2014 The Android Open Source Project
63c827367444ee418f129b2c238299f49d3264554Jarkko Poyry *
73c827367444ee418f129b2c238299f49d3264554Jarkko Poyry * Licensed under the Apache License, Version 2.0 (the "License");
83c827367444ee418f129b2c238299f49d3264554Jarkko Poyry * you may not use this file except in compliance with the License.
93c827367444ee418f129b2c238299f49d3264554Jarkko Poyry * You may obtain a copy of the License at
103c827367444ee418f129b2c238299f49d3264554Jarkko Poyry *
113c827367444ee418f129b2c238299f49d3264554Jarkko Poyry *      http://www.apache.org/licenses/LICENSE-2.0
123c827367444ee418f129b2c238299f49d3264554Jarkko Poyry *
133c827367444ee418f129b2c238299f49d3264554Jarkko Poyry * Unless required by applicable law or agreed to in writing, software
143c827367444ee418f129b2c238299f49d3264554Jarkko Poyry * distributed under the License is distributed on an "AS IS" BASIS,
153c827367444ee418f129b2c238299f49d3264554Jarkko Poyry * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
163c827367444ee418f129b2c238299f49d3264554Jarkko Poyry * See the License for the specific language governing permissions and
173c827367444ee418f129b2c238299f49d3264554Jarkko Poyry * limitations under the License.
183c827367444ee418f129b2c238299f49d3264554Jarkko Poyry *
193c827367444ee418f129b2c238299f49d3264554Jarkko Poyry *//*!
203c827367444ee418f129b2c238299f49d3264554Jarkko Poyry * \file
213c827367444ee418f129b2c238299f49d3264554Jarkko Poyry * \brief drawElements Internal Test Package
223c827367444ee418f129b2c238299f49d3264554Jarkko Poyry *//*--------------------------------------------------------------------*/
233c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
243c827367444ee418f129b2c238299f49d3264554Jarkko Poyry#include "ditTestPackage.hpp"
253c827367444ee418f129b2c238299f49d3264554Jarkko Poyry#include "ditBuildInfoTests.hpp"
263c827367444ee418f129b2c238299f49d3264554Jarkko Poyry#include "ditDelibsTests.hpp"
273c827367444ee418f129b2c238299f49d3264554Jarkko Poyry#include "ditFrameworkTests.hpp"
283c827367444ee418f129b2c238299f49d3264554Jarkko Poyry#include "ditImageIOTests.hpp"
293c827367444ee418f129b2c238299f49d3264554Jarkko Poyry#include "ditImageCompareTests.hpp"
303c827367444ee418f129b2c238299f49d3264554Jarkko Poyry#include "ditTestLogTests.hpp"
31f0baefc76087f208e58af77dccaecdbac73e1247Mika Isojärvi#include "ditSeedBuilderTests.hpp"
32a99421e9ede7fac9c1ea832038e2b6dfe4231845Mika Isojärvi#include "ditSRGB8ConversionTest.hpp"
333c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
343c827367444ee418f129b2c238299f49d3264554Jarkko Poyrynamespace dit
353c827367444ee418f129b2c238299f49d3264554Jarkko Poyry{
36a99421e9ede7fac9c1ea832038e2b6dfe4231845Mika Isojärvinamespace
37a99421e9ede7fac9c1ea832038e2b6dfe4231845Mika Isojärvi{
38a99421e9ede7fac9c1ea832038e2b6dfe4231845Mika Isojärvi
39a99421e9ede7fac9c1ea832038e2b6dfe4231845Mika Isojärviclass TextureTests : public tcu::TestCaseGroup
40a99421e9ede7fac9c1ea832038e2b6dfe4231845Mika Isojärvi{
41a99421e9ede7fac9c1ea832038e2b6dfe4231845Mika Isojärvipublic:
42a99421e9ede7fac9c1ea832038e2b6dfe4231845Mika Isojärvi	TextureTests (tcu::TestContext& testCtx)
43a99421e9ede7fac9c1ea832038e2b6dfe4231845Mika Isojärvi		: tcu::TestCaseGroup(testCtx, "texture", "Tests for tcu::Texture and utils.")
44a99421e9ede7fac9c1ea832038e2b6dfe4231845Mika Isojärvi	{
45a99421e9ede7fac9c1ea832038e2b6dfe4231845Mika Isojärvi	}
46a99421e9ede7fac9c1ea832038e2b6dfe4231845Mika Isojärvi
47a99421e9ede7fac9c1ea832038e2b6dfe4231845Mika Isojärvi	void init (void)
48a99421e9ede7fac9c1ea832038e2b6dfe4231845Mika Isojärvi	{
49a99421e9ede7fac9c1ea832038e2b6dfe4231845Mika Isojärvi		addChild(createSRGB8ConversionTest(m_testCtx));
50a99421e9ede7fac9c1ea832038e2b6dfe4231845Mika Isojärvi	}
51a99421e9ede7fac9c1ea832038e2b6dfe4231845Mika Isojärvi};
523c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
533c827367444ee418f129b2c238299f49d3264554Jarkko Poyryclass DeqpTests : public tcu::TestCaseGroup
543c827367444ee418f129b2c238299f49d3264554Jarkko Poyry{
553c827367444ee418f129b2c238299f49d3264554Jarkko Poyrypublic:
563c827367444ee418f129b2c238299f49d3264554Jarkko Poyry	DeqpTests (tcu::TestContext& testCtx)
573c827367444ee418f129b2c238299f49d3264554Jarkko Poyry		: tcu::TestCaseGroup(testCtx, "deqp", "dEQP Test Framework Self-tests")
583c827367444ee418f129b2c238299f49d3264554Jarkko Poyry	{
593c827367444ee418f129b2c238299f49d3264554Jarkko Poyry	}
603c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
613c827367444ee418f129b2c238299f49d3264554Jarkko Poyry	void init (void)
623c827367444ee418f129b2c238299f49d3264554Jarkko Poyry	{
633c827367444ee418f129b2c238299f49d3264554Jarkko Poyry		addChild(new TestLogTests		(m_testCtx));
643c827367444ee418f129b2c238299f49d3264554Jarkko Poyry		addChild(new ImageIOTests		(m_testCtx));
653c827367444ee418f129b2c238299f49d3264554Jarkko Poyry		addChild(new ImageCompareTests	(m_testCtx));
66a99421e9ede7fac9c1ea832038e2b6dfe4231845Mika Isojärvi		addChild(new TextureTests		(m_testCtx));
67f0baefc76087f208e58af77dccaecdbac73e1247Mika Isojärvi		addChild(createSeedBuilderTests	(m_testCtx));
683c827367444ee418f129b2c238299f49d3264554Jarkko Poyry	}
693c827367444ee418f129b2c238299f49d3264554Jarkko Poyry};
703c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
71a99421e9ede7fac9c1ea832038e2b6dfe4231845Mika Isojärvi} // anonymous
72a99421e9ede7fac9c1ea832038e2b6dfe4231845Mika Isojärvi
734e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulosclass TestCaseExecutor : public tcu::TestCaseExecutor
744e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos{
754e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulospublic:
764e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	TestCaseExecutor (void)
774e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	{
784e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	}
794e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos
804e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	~TestCaseExecutor (void)
814e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	{
824e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	}
834e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos
844e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	void init (tcu::TestCase* testCase, const std::string&)
854e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	{
864e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos		testCase->init();
874e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	}
884e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos
894e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	void deinit (tcu::TestCase* testCase)
904e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	{
914e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos		testCase->deinit();
924e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	}
934e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos
944e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	tcu::TestNode::IterateResult iterate (tcu::TestCase* testCase)
954e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	{
964e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos		return testCase->iterate();
974e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	}
984e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos};
994e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos
1003c827367444ee418f129b2c238299f49d3264554Jarkko PoyryTestPackage::TestPackage (tcu::TestContext& testCtx)
1016d6be649c4db52223b281263ce2589868d8b2948Pyry Haulos	: tcu::TestPackage(testCtx, "dE-IT", "drawElements Internal Tests")
1023c827367444ee418f129b2c238299f49d3264554Jarkko Poyry{
1033c827367444ee418f129b2c238299f49d3264554Jarkko Poyry}
1043c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
1053c827367444ee418f129b2c238299f49d3264554Jarkko PoyryTestPackage::~TestPackage (void)
1063c827367444ee418f129b2c238299f49d3264554Jarkko Poyry{
1073c827367444ee418f129b2c238299f49d3264554Jarkko Poyry}
1083c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
1093c827367444ee418f129b2c238299f49d3264554Jarkko Poyryvoid TestPackage::init (void)
1103c827367444ee418f129b2c238299f49d3264554Jarkko Poyry{
1113c827367444ee418f129b2c238299f49d3264554Jarkko Poyry	addChild(new BuildInfoTests	(m_testCtx));
1123c827367444ee418f129b2c238299f49d3264554Jarkko Poyry	addChild(new DelibsTests	(m_testCtx));
1133c827367444ee418f129b2c238299f49d3264554Jarkko Poyry	addChild(new FrameworkTests	(m_testCtx));
1143c827367444ee418f129b2c238299f49d3264554Jarkko Poyry	addChild(new DeqpTests		(m_testCtx));
1153c827367444ee418f129b2c238299f49d3264554Jarkko Poyry}
1163c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
1174e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulostcu::TestCaseExecutor* TestPackage::createExecutor (void) const
1183c827367444ee418f129b2c238299f49d3264554Jarkko Poyry{
1194e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	return new TestCaseExecutor();
1203c827367444ee418f129b2c238299f49d3264554Jarkko Poyry}
1213c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
1223c827367444ee418f129b2c238299f49d3264554Jarkko Poyry} // dit
123