Hash :
46ff02f8
Author :
Date :
2023-05-18T13:52:29
Capture/Replay: Initial setup for angle_capture_tests Implements the first part (FrameCapture) of the proposal go/frame-capture-and-interpreter-testing Adds a basic test (CapturedTest) with a few frames. This test gets captured by capture_tests.py into a temporary directory and the resulting files are diff'ed with the files under expected/ A diff fails the test. When capture changes, the workflow would be to run the command indicated by the error message in the test which will overwrite the files with new ones so that they can be added to the CL. Example test failure on capture change: https://chromium-swarm.appspot.com/task?id=62b5f4034527c610 when testing https://crrev.com/c/4598046/3 Tests in CI: https://screenshot.googleplex.com/77o8vZVuj8AbFRj Also adds a "angle_capture_tests_trace" lib with the trace just to test that this capture also builds, the lib is not currently loaded by anything. Bug: b/286067106 Change-Id: I7d5f6eed088d84f9e3eb8a72b24b1d92515fff38 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4545408 Reviewed-by: Cody Northrop <cnorthrop@google.com> Commit-Queue: Roman Lavrov <romanl@google.com> 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 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232
# Copyright 2014 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.
angle_end2end_tests_sources = [
"capture_tests/CapturedTest.cpp",
"egl_tests/EGLAndroidFrameBufferTargetTest.cpp",
"egl_tests/EGLBackwardsCompatibleContextTest.cpp",
"egl_tests/EGLBlobCacheTest.cpp",
"egl_tests/EGLBufferAgeTest.cpp",
"egl_tests/EGLChooseConfigTest.cpp",
"egl_tests/EGLContextASANTest.cpp",
"egl_tests/EGLContextCompatibilityTest.cpp",
"egl_tests/EGLContextSharingTest.cpp",
"egl_tests/EGLCreateContextAttribsTest.cpp",
"egl_tests/EGLDebugTest.cpp",
"egl_tests/EGLDisplaySelectionTest.cpp",
"egl_tests/EGLDisplayTest.cpp",
"egl_tests/EGLLockSurface3Test.cpp",
"egl_tests/EGLMultiContextTest.cpp",
"egl_tests/EGLNoConfigContextTest.cpp",
"egl_tests/EGLPreRotationTest.cpp",
"egl_tests/EGLPrintEGLinfoTest.cpp",
"egl_tests/EGLProgramCacheControlTest.cpp",
"egl_tests/EGLProtectedContentTest.cpp",
"egl_tests/EGLQueryContextTest.cpp",
"egl_tests/EGLReadinessCheckTest.cpp",
"egl_tests/EGLRecordableTest.cpp",
"egl_tests/EGLRobustnessTest.cpp",
"egl_tests/EGLSurfaceTest.cpp",
"egl_tests/EGLSurfacelessContextTest.cpp",
"egl_tests/EGLSyncTest.cpp",
"gl_tests/ActiveTextureCacheTest.cpp",
"gl_tests/AtomicCounterBufferTest.cpp",
"gl_tests/AttributeLayoutTest.cpp",
"gl_tests/BPTCCompressedTextureTest.cpp",
"gl_tests/BindGeneratesResourceTest.cpp",
"gl_tests/BindUniformLocationTest.cpp",
"gl_tests/BlendFuncExtendedTest.cpp",
"gl_tests/BlendIntegerTest.cpp",
"gl_tests/BlendMinMaxTest.cpp",
"gl_tests/BlendPackedTest.cpp",
"gl_tests/BlitFramebufferANGLETest.cpp",
"gl_tests/BufferDataTest.cpp",
"gl_tests/BuiltinVariableTest.cpp",
"gl_tests/ClearTest.cpp",
"gl_tests/ClientArraysTest.cpp",
"gl_tests/ClipControlTest.cpp",
"gl_tests/ClipDistanceTest.cpp",
"gl_tests/ColorMaskTest.cpp",
"gl_tests/CompressedTextureFormatsTest.cpp",
"gl_tests/ComputeShaderTest.cpp",
"gl_tests/ContextLostTest.cpp",
"gl_tests/ContextNoErrorTest.cpp",
"gl_tests/CopyCompressedTextureTest.cpp",
"gl_tests/CopyTexImageTest.cpp",
"gl_tests/CopyTexture3DTest.cpp",
"gl_tests/CopyTextureTest.cpp",
"gl_tests/CubeMapTextureTest.cpp",
"gl_tests/DXT1CompressedTextureTest.cpp",
"gl_tests/DXTSRGBCompressedTextureTest.cpp",
"gl_tests/DebugMarkerTest.cpp",
"gl_tests/DebugTest.cpp",
"gl_tests/DepthStencilFormatsTest.cpp",
"gl_tests/DepthStencilTest.cpp",
"gl_tests/DepthWriteTest.cpp",
"gl_tests/DesktopGLSLTest.cpp",
"gl_tests/DifferentStencilMasksTest.cpp",
"gl_tests/DiscardFramebufferEXTTest.cpp",
"gl_tests/DrawBaseVertexBaseInstanceTest.cpp",
"gl_tests/DrawBaseVertexVariantsTest.cpp",
"gl_tests/DrawBuffersTest.cpp",
"gl_tests/DrawElementsTest.cpp",
"gl_tests/DrawRangeElementsTest.cpp",
"gl_tests/EGLImageMECFriendlyTest.cpp",
"gl_tests/ETCTextureTest.cpp",
"gl_tests/ExternalBufferTest.cpp",
"gl_tests/ExternalWrapTest.cpp",
"gl_tests/FenceSyncTests.cpp",
"gl_tests/FloatingPointSurfaceTest.cpp",
"gl_tests/FragDepthTest.cpp",
"gl_tests/FramebufferFetchTest.cpp",
"gl_tests/FramebufferMixedSamplesTest.cpp",
"gl_tests/FramebufferMultiviewTest.cpp",
"gl_tests/FramebufferRenderMipmapTest.cpp",
"gl_tests/FramebufferTest.cpp",
"gl_tests/GLSLTest.cpp",
"gl_tests/GeometryShaderTest.cpp",
"gl_tests/GetImageTest.cpp",
"gl_tests/GetTexLevelParameterTest.cpp",
"gl_tests/ImageTest.cpp",
"gl_tests/IncompleteTextureTest.cpp",
"gl_tests/IndexBufferOffsetTest.cpp",
"gl_tests/IndexedPointsTest.cpp",
"gl_tests/InstancingTest.cpp",
"gl_tests/KTXCompressedTextureTest.cpp",
"gl_tests/LineLoopTest.cpp",
"gl_tests/LinkAndRelinkTest.cpp",
"gl_tests/MatrixTest.cpp",
"gl_tests/MaxTextureSizeTest.cpp",
"gl_tests/MemoryBarrierTest.cpp",
"gl_tests/MemoryObjectTest.cpp",
"gl_tests/MemorySizeTest.cpp",
"gl_tests/MipmapTest.cpp",
"gl_tests/MultiDrawTest.cpp",
"gl_tests/MultisampleCompatibilityTest.cpp",
"gl_tests/MultisampleTest.cpp",
"gl_tests/MultisampledRenderToTextureTest.cpp",
"gl_tests/MultithreadingTest.cpp",
"gl_tests/MultiviewDrawTest.cpp",
"gl_tests/ObjectAllocationTest.cpp",
"gl_tests/OcclusionQueriesTest.cpp",
"gl_tests/PBOExtensionTest.cpp",
"gl_tests/PackUnpackTest.cpp",
"gl_tests/ParallelShaderCompileTest.cpp",
"gl_tests/PbufferTest.cpp",
"gl_tests/PixelLocalStorageTest.cpp",
"gl_tests/PixmapTest.cpp",
"gl_tests/PointSpritesTest.cpp",
"gl_tests/PolygonModeTest.cpp",
"gl_tests/PolygonOffsetClampTest.cpp",
"gl_tests/ProgramBinaryTest.cpp",
"gl_tests/ProgramInterfaceTest.cpp",
"gl_tests/ProgramParameterTest.cpp",
"gl_tests/ProgramPipelineTest.cpp",
"gl_tests/ProvokingVertexTest.cpp",
"gl_tests/QueryObjectValidation.cpp",
"gl_tests/ReadOnlyFeedbackLoopTest.cpp",
"gl_tests/ReadPixelsTest.cpp",
"gl_tests/RenderbufferMultisampleTest.cpp",
"gl_tests/RendererTest.cpp",
"gl_tests/RequestExtensionTest.cpp",
"gl_tests/RobustBufferAccessBehaviorTest.cpp",
"gl_tests/RobustClientMemoryTest.cpp",
"gl_tests/RobustFragmentShaderOutputTest.cpp",
"gl_tests/RobustResourceInitTest.cpp",
"gl_tests/S3TCTextureSizesTest.cpp",
"gl_tests/SRGBFramebufferTest.cpp",
"gl_tests/SRGBTextureTest.cpp",
"gl_tests/SampleVariablesTest.cpp",
"gl_tests/SamplersTest.cpp",
"gl_tests/SemaphoreTest.cpp",
"gl_tests/ShaderAlgorithmTest.cpp",
"gl_tests/ShaderBinaryTest.cpp",
"gl_tests/ShaderInterpTest.cpp",
"gl_tests/ShaderMultisampleInterpolation.cpp",
"gl_tests/ShaderNonConstGlobalInitializerTest.cpp",
"gl_tests/ShaderStorageBufferTest.cpp",
"gl_tests/ShadingRateQcomTest.cpp",
"gl_tests/SimpleOperationTest.cpp",
"gl_tests/SixteenBppTextureTest.cpp",
"gl_tests/StateChangeTest.cpp",
"gl_tests/SwizzleTest.cpp",
"gl_tests/SyncQueriesTest.cpp",
"gl_tests/TextureExternalUpdateTest.cpp",
"gl_tests/TextureFilteringHintTest.cpp",
"gl_tests/TextureMultisampleTest.cpp",
"gl_tests/TextureRectangleTest.cpp",
"gl_tests/TextureTest.cpp",
"gl_tests/TextureUploadFormatTest.cpp",
"gl_tests/TimerQueriesTest.cpp",
"gl_tests/TransformFeedbackTest.cpp",
"gl_tests/UniformBufferTest.cpp",
"gl_tests/UniformTest.cpp",
"gl_tests/UnpackAlignmentTest.cpp",
"gl_tests/UnpackRowLength.cpp",
"gl_tests/VertexAttributeTest.cpp",
"gl_tests/ViewportTest.cpp",
"gl_tests/VulkanPerformanceCounterTest.cpp",
"gl_tests/WEBGLVideoTextureTest.cpp",
"gl_tests/WebGLCompatibilityTest.cpp",
"gl_tests/WebGLCompressedTextureAvailabilityTest.cpp",
"gl_tests/WebGLFramebufferTest.cpp",
"gl_tests/WebGLReadOutsideFramebufferTest.cpp",
"gl_tests/gles1/AlphaFuncTest.cpp",
"gl_tests/gles1/BGRATextureTest.cpp",
"gl_tests/gles1/BasicDrawTest.cpp",
"gl_tests/gles1/BootAnimationTest.cpp",
"gl_tests/gles1/ClientActiveTextureTest.cpp",
"gl_tests/gles1/ClientStateEnable.cpp",
"gl_tests/gles1/ClipPlaneTest.cpp",
"gl_tests/gles1/ColorMaterialTest.cpp",
"gl_tests/gles1/CurrentColorTest.cpp",
"gl_tests/gles1/CurrentNormalTest.cpp",
"gl_tests/gles1/CurrentTextureCoordsTest.cpp",
"gl_tests/gles1/DrawTextureTest.cpp",
"gl_tests/gles1/FogTest.cpp",
"gl_tests/gles1/FramebufferObjectTest.cpp",
"gl_tests/gles1/LightsTest.cpp",
"gl_tests/gles1/MaterialsTest.cpp",
"gl_tests/gles1/MatrixBuiltinsTest.cpp",
"gl_tests/gles1/MatrixLoadTest.cpp",
"gl_tests/gles1/MatrixModeTest.cpp",
"gl_tests/gles1/MatrixMultTest.cpp",
"gl_tests/gles1/MatrixStackTest.cpp",
"gl_tests/gles1/PalettedTextureTest.cpp",
"gl_tests/gles1/PointParameterTest.cpp",
"gl_tests/gles1/PointSpriteTest.cpp",
"gl_tests/gles1/ShadeModelTest.cpp",
"gl_tests/gles1/TextureEnvTest.cpp",
"gl_tests/gles1/TextureParameterTest.cpp",
"gl_tests/gles1/TextureTargetEnableTest.cpp",
"gl_tests/gles1/VertexPointerTest.cpp",
"gl_tests/media/pixel.inc",
"test_expectations/GPUTestExpectationsTest.cpp",
"test_utils/ANGLETest.cpp",
"test_utils/ANGLETest.h",
"test_utils/MultiviewTest.cpp",
"test_utils/MultiviewTest.h",
"test_utils/system_info_util.cpp",
"test_utils/system_info_util.h",
]
angle_end2end_tests_ios_sources =
[ "egl_tests/EGLIOSurfaceClientBufferTest.cpp" ]
angle_end2end_tests_mac_sources = [
"egl_tests/EGLDeviceCGLTest.cpp",
"egl_tests/EGLIOSurfaceClientBufferTest.cpp",
"egl_tests/EGLPowerPreferenceTest.cpp",
"egl_tests/EGLSurfaceTestMac.mm",
"egl_tests/EGLSyncTestMetalSharedEvent.mm",
"egl_tests/EGLWaitUntilWorkScheduledTest.cpp",
"gl_tests/ImageTestMetal.mm",
]
angle_end2end_tests_win_sources = [
"egl_tests/EGLDeviceTest.cpp",
"egl_tests/EGLDisplayLuidTest.cpp",
"egl_tests/EGLPresentPathD3D11Test.cpp",
"egl_tests/EGLStreamTest.cpp",
"egl_tests/EGLSyncControlTest.cpp",
"egl_tests/media/yuvtest.inl",
"gl_tests/D3DImageFormatConversionTest.cpp",
]