ditTestPackage.cpp revision 4e3ea87b79b12195e79d28ef6ab2be0a847b5d9a
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"
323c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
333c827367444ee418f129b2c238299f49d3264554Jarkko Poyrynamespace dit
343c827367444ee418f129b2c238299f49d3264554Jarkko Poyry{
353c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
363c827367444ee418f129b2c238299f49d3264554Jarkko Poyryclass DeqpTests : public tcu::TestCaseGroup
373c827367444ee418f129b2c238299f49d3264554Jarkko Poyry{
383c827367444ee418f129b2c238299f49d3264554Jarkko Poyrypublic:
393c827367444ee418f129b2c238299f49d3264554Jarkko Poyry	DeqpTests (tcu::TestContext& testCtx)
403c827367444ee418f129b2c238299f49d3264554Jarkko Poyry		: tcu::TestCaseGroup(testCtx, "deqp", "dEQP Test Framework Self-tests")
413c827367444ee418f129b2c238299f49d3264554Jarkko Poyry	{
423c827367444ee418f129b2c238299f49d3264554Jarkko Poyry	}
433c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
443c827367444ee418f129b2c238299f49d3264554Jarkko Poyry	void init (void)
453c827367444ee418f129b2c238299f49d3264554Jarkko Poyry	{
463c827367444ee418f129b2c238299f49d3264554Jarkko Poyry		addChild(new TestLogTests		(m_testCtx));
473c827367444ee418f129b2c238299f49d3264554Jarkko Poyry		addChild(new ImageIOTests		(m_testCtx));
483c827367444ee418f129b2c238299f49d3264554Jarkko Poyry		addChild(new ImageCompareTests	(m_testCtx));
49f0baefc76087f208e58af77dccaecdbac73e1247Mika Isojärvi		addChild(createSeedBuilderTests	(m_testCtx));
503c827367444ee418f129b2c238299f49d3264554Jarkko Poyry	}
513c827367444ee418f129b2c238299f49d3264554Jarkko Poyry};
523c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
534e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulosclass TestCaseExecutor : public tcu::TestCaseExecutor
544e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos{
554e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulospublic:
564e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	TestCaseExecutor (void)
574e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	{
584e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	}
594e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos
604e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	~TestCaseExecutor (void)
614e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	{
624e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	}
634e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos
644e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	void init (tcu::TestCase* testCase, const std::string&)
654e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	{
664e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos		testCase->init();
674e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	}
684e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos
694e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	void deinit (tcu::TestCase* testCase)
704e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	{
714e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos		testCase->deinit();
724e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	}
734e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos
744e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	tcu::TestNode::IterateResult iterate (tcu::TestCase* testCase)
754e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	{
764e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos		return testCase->iterate();
774e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	}
784e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos};
794e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos
803c827367444ee418f129b2c238299f49d3264554Jarkko PoyryTestPackage::TestPackage (tcu::TestContext& testCtx)
813c827367444ee418f129b2c238299f49d3264554Jarkko Poyry	: tcu::TestPackage	(testCtx, "dE-IT", "drawElements Internal Tests")
823c827367444ee418f129b2c238299f49d3264554Jarkko Poyry	, m_archive			(testCtx.getRootArchive(), "internal/")
833c827367444ee418f129b2c238299f49d3264554Jarkko Poyry{
843c827367444ee418f129b2c238299f49d3264554Jarkko Poyry}
853c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
863c827367444ee418f129b2c238299f49d3264554Jarkko PoyryTestPackage::~TestPackage (void)
873c827367444ee418f129b2c238299f49d3264554Jarkko Poyry{
883c827367444ee418f129b2c238299f49d3264554Jarkko Poyry}
893c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
903c827367444ee418f129b2c238299f49d3264554Jarkko Poyryvoid TestPackage::init (void)
913c827367444ee418f129b2c238299f49d3264554Jarkko Poyry{
923c827367444ee418f129b2c238299f49d3264554Jarkko Poyry	addChild(new BuildInfoTests	(m_testCtx));
933c827367444ee418f129b2c238299f49d3264554Jarkko Poyry	addChild(new DelibsTests	(m_testCtx));
943c827367444ee418f129b2c238299f49d3264554Jarkko Poyry	addChild(new FrameworkTests	(m_testCtx));
953c827367444ee418f129b2c238299f49d3264554Jarkko Poyry	addChild(new DeqpTests		(m_testCtx));
963c827367444ee418f129b2c238299f49d3264554Jarkko Poyry}
973c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
984e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulostcu::TestCaseExecutor* TestPackage::createExecutor (void) const
993c827367444ee418f129b2c238299f49d3264554Jarkko Poyry{
1004e3ea87b79b12195e79d28ef6ab2be0a847b5d9aPyry Haulos	return new TestCaseExecutor();
1013c827367444ee418f129b2c238299f49d3264554Jarkko Poyry}
1023c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
1033c827367444ee418f129b2c238299f49d3264554Jarkko Poyry} // dit
104