Hash :
cfffc138
Author :
Date :
2019-05-16T11:35:01
Add KHR-GLES dEQP tests. This reorganizes the dEQP build targets to allow for better reuse with the new KHR test set. It also adds a single new test target called "angle_deqp_khr_tests" that houses all the new test sets. The new test targets can be compiled now but cannot yet be executed. That new functionality will follow in a subsequent CL. Along with test expectations and integration. Uses a new template type in the build to conslidate GN customization. Adds the GLES 2.0 and 3.0 tests for now. We can follow up with additional work for the GLES 3.1+ tests. Also adds test expectations. Bug: angleproject:3353 Change-Id: Ib0673e97f679c8aa46e27dfa616845a2014a75fe Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1604070 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
//
// Copyright 2019 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// glcTestPackageEntry_override.cpp:
// Overrides for dEQP's OpenGL Conformance Test Package Entry Points.
//
#include "glcConfigPackage.hpp"
#include "es2cTestPackage.hpp"
#include "tes2TestPackage.hpp"
#include "es3cTestPackage.hpp"
#include "tes3TestPackage.hpp"
#include "es31cTestPackage.hpp"
#include "esextcTestPackage.hpp"
#include "tes31TestPackage.hpp"
#include "es32cTestPackage.hpp"
#include "gl3cTestPackages.hpp"
#include "gl4cTestPackages.hpp"
#include "glcNoDefaultContextPackage.hpp"
namespace glcts
{
// static tcu::TestPackage* createConfigPackage(tcu::TestContext& testCtx)
// {
// return new glcts::ConfigPackage(testCtx, "CTS-Configs");
// }
static tcu::TestPackage *createES2Package(tcu::TestContext &testCtx)
{
return new es2cts::TestPackage(testCtx, "KHR-GLES2");
}
static tcu::TestPackage *createES30Package(tcu::TestContext &testCtx)
{
return new es3cts::ES30TestPackage(testCtx, "KHR-GLES3");
}
static tcu::TestPackage *createES31Package(tcu::TestContext &testCtx)
{
return new es31cts::ES31TestPackage(testCtx, "KHR-GLES31");
}
static tcu::TestPackage *createESEXTPackage(tcu::TestContext &testCtx)
{
return new esextcts::ESEXTTestPackage(testCtx, "KHR-GLESEXT");
}
static tcu::TestPackage *createES32Package(tcu::TestContext &testCtx)
{
return new es32cts::ES32TestPackage(testCtx, "KHR-GLES32");
}
// static tcu::TestPackage* createNoDefaultCustomContextPackage(tcu::TestContext& testCtx)
// {
// return new glcts::NoDefaultContextPackage(testCtx, "KHR-NoContext");
// }
// static tcu::TestPackage* createGL30Package(tcu::TestContext& testCtx)
// {
// return new gl3cts::GL30TestPackage(testCtx, "KHR-GL30");
// }
// static tcu::TestPackage* createGL31Package(tcu::TestContext& testCtx)
// {
// return new gl3cts::GL31TestPackage(testCtx, "KHR-GL31");
// }
// static tcu::TestPackage* createGL32Package(tcu::TestContext& testCtx)
// {
// return new gl3cts::GL32TestPackage(testCtx, "KHR-GL32");
// }
// static tcu::TestPackage* createGL33Package(tcu::TestContext& testCtx)
// {
// return new gl3cts::GL33TestPackage(testCtx, "KHR-GL33");
// }
// static tcu::TestPackage* createGL40Package(tcu::TestContext& testCtx)
// {
// return new gl4cts::GL40TestPackage(testCtx, "KHR-GL40");
// }
// static tcu::TestPackage* createGL41Package(tcu::TestContext& testCtx)
// {
// return new gl4cts::GL41TestPackage(testCtx, "KHR-GL41");
// }
// static tcu::TestPackage* createGL42Package(tcu::TestContext& testCtx)
// {
// return new gl4cts::GL42TestPackage(testCtx, "KHR-GL42");
// }
// static tcu::TestPackage* createGL43Package(tcu::TestContext& testCtx)
// {
// return new gl4cts::GL43TestPackage(testCtx, "KHR-GL43");
// }
// static tcu::TestPackage* createGL44Package(tcu::TestContext& testCtx)
// {
// return new gl4cts::GL44TestPackage(testCtx, "KHR-GL44");
// }
// static tcu::TestPackage* createGL45Package(tcu::TestContext& testCtx)
// {
// return new gl4cts::GL45TestPackage(testCtx, "KHR-GL45");
// }
// static tcu::TestPackage* createGL46Package(tcu::TestContext& testCtx)
// {
// return new gl4cts::GL46TestPackage(testCtx, "KHR-GL46");
// }
void registerPackages(void)
{
tcu::TestPackageRegistry *registry = tcu::TestPackageRegistry::getSingleton();
// registry->registerPackage("CTS-Configs", createConfigPackage);
registry->registerPackage("KHR-GLES2", createES2Package);
registry->registerPackage("KHR-GLES3", createES30Package);
registry->registerPackage("KHR-GLES31", createES31Package);
registry->registerPackage("KHR-GLESEXT", createESEXTPackage);
registry->registerPackage("KHR-GLES32", createES32Package);
// registry->registerPackage("KHR-NoContext", createNoDefaultCustomContextPackage);
// registry->registerPackage("KHR-GL30", createGL30Package);
// registry->registerPackage("KHR-GL31", createGL31Package);
// registry->registerPackage("KHR-GL32", createGL32Package);
// registry->registerPackage("KHR-GL33", createGL33Package);
// registry->registerPackage("KHR-GL40", createGL40Package);
// registry->registerPackage("KHR-GL41", createGL41Package);
// registry->registerPackage("KHR-GL42", createGL42Package);
// registry->registerPackage("KHR-GL43", createGL43Package);
// registry->registerPackage("KHR-GL44", createGL44Package);
// registry->registerPackage("KHR-GL45", createGL45Package);
// registry->registerPackage("KHR-GL46", createGL46Package);
}
} // namespace glcts
class RegisterCTSPackages
{
public:
RegisterCTSPackages(void) { glcts::registerPackages(); }
};
RegisterCTSPackages g_registerCTS;