Commit 9cb9583e by Corentin Wallez

Move end2end and standalone tests to gl_tests and egl_tests

Also introduce a test_utils directory that contains helpers used for all types of tests. BUG=angleproject:892 Change-Id: I9e1bff895020ffd3a109162283971a290a1098bd Reviewed-on: https://chromium-review.googlesource.com/270198Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Tested-by: 's avatarCorentin Wallez <cwallez@chromium.org>
parent 1137a2a6
...@@ -14,50 +14,50 @@ ...@@ -14,50 +14,50 @@
# This file list will be shared with the GN build. # This file list will be shared with the GN build.
'angle_end2end_tests_sources': 'angle_end2end_tests_sources':
[ [
'<(angle_path)/src/tests/end2end_tests/ANGLETest.cpp', '<(angle_path)/src/tests/gl_tests/BlendMinMaxTest.cpp',
'<(angle_path)/src/tests/end2end_tests/ANGLETest.h', '<(angle_path)/src/tests/gl_tests/BlitFramebufferANGLETest.cpp',
'<(angle_path)/src/tests/end2end_tests/BlendMinMaxTest.cpp', '<(angle_path)/src/tests/gl_tests/BufferDataTest.cpp',
'<(angle_path)/src/tests/end2end_tests/BlitFramebufferANGLETest.cpp', '<(angle_path)/src/tests/gl_tests/ClearTest.cpp',
'<(angle_path)/src/tests/end2end_tests/BufferDataTest.cpp', '<(angle_path)/src/tests/gl_tests/CompressedTextureTest.cpp',
'<(angle_path)/src/tests/end2end_tests/ClearTest.cpp', '<(angle_path)/src/tests/gl_tests/CubeMapTextureTest.cpp',
'<(angle_path)/src/tests/end2end_tests/CompressedTextureTest.cpp', '<(angle_path)/src/tests/gl_tests/DepthStencilFormatsTest.cpp',
'<(angle_path)/src/tests/end2end_tests/CubeMapTextureTest.cpp', '<(angle_path)/src/tests/gl_tests/DrawBuffersTest.cpp',
'<(angle_path)/src/tests/end2end_tests/DepthStencilFormatsTest.cpp', '<(angle_path)/src/tests/gl_tests/FenceSyncTests.cpp',
'<(angle_path)/src/tests/end2end_tests/DrawBuffersTest.cpp', '<(angle_path)/src/tests/gl_tests/FramebufferFormatsTest.cpp',
'<(angle_path)/src/tests/end2end_tests/FenceSyncTests.cpp', '<(angle_path)/src/tests/gl_tests/FramebufferRenderMipmapTest.cpp',
'<(angle_path)/src/tests/end2end_tests/FramebufferFormatsTest.cpp', '<(angle_path)/src/tests/gl_tests/GLSLTest.cpp',
'<(angle_path)/src/tests/end2end_tests/FramebufferRenderMipmapTest.cpp', '<(angle_path)/src/tests/gl_tests/IncompleteTextureTest.cpp',
'<(angle_path)/src/tests/end2end_tests/GLSLTest.cpp', '<(angle_path)/src/tests/gl_tests/IndexedPointsTest.cpp',
'<(angle_path)/src/tests/end2end_tests/IncompleteTextureTest.cpp', '<(angle_path)/src/tests/gl_tests/InstancingTest.cpp',
'<(angle_path)/src/tests/end2end_tests/IndexedPointsTest.cpp', '<(angle_path)/src/tests/gl_tests/LineLoopTest.cpp',
'<(angle_path)/src/tests/end2end_tests/InstancingTest.cpp', '<(angle_path)/src/tests/gl_tests/MaxTextureSizeTest.cpp',
'<(angle_path)/src/tests/end2end_tests/LineLoopTest.cpp', '<(angle_path)/src/tests/gl_tests/MipmapTest.cpp',
'<(angle_path)/src/tests/end2end_tests/MaxTextureSizeTest.cpp', '<(angle_path)/src/tests/gl_tests/media/pixel.inl',
'<(angle_path)/src/tests/end2end_tests/MipmapTest.cpp', '<(angle_path)/src/tests/gl_tests/OcclusionQueriesTest.cpp',
'<(angle_path)/src/tests/end2end_tests/media/pixel.inl', '<(angle_path)/src/tests/gl_tests/PBOExtensionTest.cpp',
'<(angle_path)/src/tests/end2end_tests/OcclusionQueriesTest.cpp', '<(angle_path)/src/tests/gl_tests/PbufferTest.cpp',
'<(angle_path)/src/tests/end2end_tests/PBOExtensionTest.cpp', '<(angle_path)/src/tests/gl_tests/PointSpritesTest.cpp',
'<(angle_path)/src/tests/end2end_tests/PbufferTest.cpp', '<(angle_path)/src/tests/gl_tests/ProgramBinaryTest.cpp',
'<(angle_path)/src/tests/end2end_tests/PointSpritesTest.cpp', '<(angle_path)/src/tests/gl_tests/QueryDisplayAttribTest.cpp',
'<(angle_path)/src/tests/end2end_tests/ProgramBinaryTest.cpp', '<(angle_path)/src/tests/gl_tests/ReadPixelsTest.cpp',
'<(angle_path)/src/tests/end2end_tests/QueryDisplayAttribTest.cpp', '<(angle_path)/src/tests/gl_tests/RendererTest.cpp',
'<(angle_path)/src/tests/end2end_tests/ReadPixelsTest.cpp', '<(angle_path)/src/tests/gl_tests/SimpleOperationTest.cpp',
'<(angle_path)/src/tests/end2end_tests/RendererTest.cpp', '<(angle_path)/src/tests/gl_tests/SRGBTextureTest.cpp',
'<(angle_path)/src/tests/end2end_tests/SimpleOperationTest.cpp', '<(angle_path)/src/tests/gl_tests/SwizzleTest.cpp',
'<(angle_path)/src/tests/end2end_tests/SRGBTextureTest.cpp', '<(angle_path)/src/tests/gl_tests/TextureTest.cpp',
'<(angle_path)/src/tests/end2end_tests/SwizzleTest.cpp', '<(angle_path)/src/tests/gl_tests/TransformFeedbackTest.cpp',
'<(angle_path)/src/tests/end2end_tests/TextureTest.cpp', '<(angle_path)/src/tests/gl_tests/UniformBufferTest.cpp',
'<(angle_path)/src/tests/end2end_tests/TransformFeedbackTest.cpp', '<(angle_path)/src/tests/gl_tests/UniformTest.cpp',
'<(angle_path)/src/tests/end2end_tests/UniformBufferTest.cpp', '<(angle_path)/src/tests/gl_tests/UnpackAlignmentTest.cpp',
'<(angle_path)/src/tests/end2end_tests/UniformTest.cpp', '<(angle_path)/src/tests/gl_tests/UnpackRowLength.cpp',
'<(angle_path)/src/tests/end2end_tests/UnpackAlignmentTest.cpp', '<(angle_path)/src/tests/gl_tests/VertexAttributeTest.cpp',
'<(angle_path)/src/tests/end2end_tests/UnpackRowLength.cpp', '<(angle_path)/src/tests/gl_tests/ViewportTest.cpp',
'<(angle_path)/src/tests/end2end_tests/VertexAttributeTest.cpp', '<(angle_path)/src/tests/egl_tests/EGLQueryContextTest.cpp',
'<(angle_path)/src/tests/end2end_tests/ViewportTest.cpp', '<(angle_path)/src/tests/egl_tests/EGLSurfaceTest.cpp',
'<(angle_path)/src/tests/end2end_tests/angle_test_configs.h', '<(angle_path)/src/tests/egl_tests/EGLThreadTest.cpp',
'<(angle_path)/src/tests/standalone_tests/EGLQueryContextTest.cpp', '<(angle_path)/src/tests/test_utils/ANGLETest.cpp',
'<(angle_path)/src/tests/standalone_tests/EGLSurfaceTest.cpp', '<(angle_path)/src/tests/test_utils/ANGLETest.h',
'<(angle_path)/src/tests/standalone_tests/EGLThreadTest.cpp', '<(angle_path)/src/tests/test_utils/angle_test_configs.h',
], ],
}, },
'dependencies': 'dependencies':
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
'include_dirs': 'include_dirs':
[ [
'<(angle_path)/include', '<(angle_path)/include',
'end2end_tests', '<(angle_path)/src/tests'
], ],
'sources': 'sources':
[ [
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// //
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
int main(int argc, char** argv) int main(int argc, char** argv)
{ {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// Tests pertaining to egl::Surface. // Tests pertaining to egl::Surface.
// //
#include <ANGLETest.h> #include <test_utils/ANGLETest.h>
#include <EGL/egl.h> #include <EGL/egl.h>
#include <EGL/eglext.h> #include <EGL/eglext.h>
#include <GLES2/gl2.h> #include <GLES2/gl2.h>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
using namespace angle; using namespace angle;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
using namespace angle; using namespace angle;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
#include <cstdint> #include <cstdint>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
using namespace angle; using namespace angle;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
#include "media/pixel.inl" #include "media/pixel.inl"
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
using namespace angle; using namespace angle;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
using namespace angle; using namespace angle;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
using namespace angle; using namespace angle;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
using namespace angle; using namespace angle;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
using namespace angle; using namespace angle;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
using namespace angle; using namespace angle;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
#include "libANGLE/Context.h" #include "libANGLE/Context.h"
#include "libANGLE/Program.h" #include "libANGLE/Program.h"
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
#include <vector> #include <vector>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
#include <array> #include <array>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
using namespace angle; using namespace angle;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
using namespace angle; using namespace angle;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
using namespace angle; using namespace angle;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
using namespace angle; using namespace angle;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
// Needed for Sleep() // Needed for Sleep()
#include <Windows.h> #include <Windows.h>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
using namespace angle; using namespace angle;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
using namespace angle; using namespace angle;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
// Some of the pointsprite tests below were ported from Khronos WebGL // Some of the pointsprite tests below were ported from Khronos WebGL
// conformance test suite. // conformance test suite.
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
using namespace angle; using namespace angle;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
#include <memory> #include <memory>
#include <stdint.h> #include <stdint.h>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#define ANGLE_ENABLE_D3D11 #define ANGLE_ENABLE_D3D11
#endif #endif
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
#include "com_utils.h" #include "com_utils.h"
using namespace angle; using namespace angle;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
using namespace angle; using namespace angle;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
// If one of these tests fails, then it is likely that some of the other tests are being configured incorrectly. // If one of these tests fails, then it is likely that some of the other tests are being configured incorrectly.
// For example, they might be using the D3D11 renderer when the test is meant to be using the D3D9 renderer. // For example, they might be using the D3D11 renderer when the test is meant to be using the D3D9 renderer.
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
using namespace angle; using namespace angle;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
using namespace angle; using namespace angle;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
// SimpleOperationTest: // SimpleOperationTest:
// Basic GL commands such as linking a program, initializing a buffer, etc. // Basic GL commands such as linking a program, initializing a buffer, etc.
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
#include <vector> #include <vector>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
#include <vector> #include <vector>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
using namespace angle; using namespace angle;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
using namespace angle; using namespace angle;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
using namespace angle; using namespace angle;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
using namespace angle; using namespace angle;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
#include <array> #include <array>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
#include <array> #include <array>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
using namespace angle; using namespace angle;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "ANGLETest.h" #include "test_utils/ANGLETest.h"
using namespace angle; using namespace angle;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment