1 /*-------------------------------------------------------------------------
2 * drawElements Quality Program OpenGL ES 3.1 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 OpenGL ES 3.1 Test Package
22 *//*--------------------------------------------------------------------*/
24 #include "tes31TestPackage.hpp"
25 #include "tes31InfoTests.hpp"
26 #include "es31fFunctionalTests.hpp"
27 #include "es31sStressTests.hpp"
34 PackageContext::PackageContext (tcu::TestContext& testCtx)
36 , m_caseWrapper (DE_NULL)
40 m_context = new Context(testCtx);
41 m_caseWrapper = new TestCaseWrapper(testCtx, m_context->getRenderContext());
52 PackageContext::~PackageContext (void)
58 TestPackage::TestPackage (tcu::TestContext& testCtx)
59 : tcu::TestPackage (testCtx, "dEQP-GLES31", "dEQP OpenGL ES 3.1 Tests")
60 , m_packageCtx (DE_NULL)
61 , m_archive (testCtx.getRootArchive(), "gles31/")
65 TestPackage::~TestPackage (void)
67 // Destroy children first since destructors may access context.
72 void TestPackage::init (void)
77 m_packageCtx = new PackageContext(m_testCtx);
79 // Add main test groups
80 addChild(new InfoTests (m_packageCtx->getContext()));
81 addChild(new Functional::FunctionalTests (m_packageCtx->getContext()));
82 addChild(new Stress::StressTests (m_packageCtx->getContext()));
87 m_packageCtx = DE_NULL;
93 void TestPackage::deinit (void)
97 m_packageCtx = DE_NULL;