Edit

kc3-lang/angle/src/tests/angle_perftests.gypi

Branch :

  • Show log

    Commit

  • Author : Geoff Lang
    Date : 2015-06-09 15:16:31
    Hash : dd323e95
    Message : Only run tests that the current hardware can support. For each config, determine if a context can be created at test instantiation time. This allows skipping of ES3 tests when the hardware does not support ES3. Updated the perf_tests to use the EGLPlatformParameters struct so that they can be filtered in the same way. Change-Id: If664604b057cec4005eb4b63bebd83cd4964b7b2 Reviewed-on: https://chromium-review.googlesource.com/276460 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Tested-by: Geoff Lang <geofflang@chromium.org>

  • src/tests/angle_perftests.gypi
  • # Copyright 2015 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_perftests.gypi:
    #
    # This .gypi describes all of the sources and dependencies to build a
    # unified "angle_perftests" target, which contains all of ANGLE's
    # performance tests (buffer updates, texture updates, draw calls, etc)
    # It requires a parent target to include this gypi in an executable
    # target containing a gtest harness in a main.cpp.
    
    {
        'variables':
        {
            'angle_perf_tests_sources':
            [
                '<(angle_path)/src/tests/perf_tests/ANGLEPerfTest.cpp',
                '<(angle_path)/src/tests/perf_tests/ANGLEPerfTest.h',
                '<(angle_path)/src/tests/perf_tests/BufferSubData.cpp',
                '<(angle_path)/src/tests/perf_tests/DrawCallPerf.cpp',
                '<(angle_path)/src/tests/perf_tests/EGLInitializePerf.cpp',
                '<(angle_path)/src/tests/perf_tests/IndexConversionPerf.cpp',
                '<(angle_path)/src/tests/perf_tests/PointSprites.cpp',
                '<(angle_path)/src/tests/perf_tests/TexSubImage.cpp',
                '<(angle_path)/src/tests/perf_tests/third_party/perf/perf_test.cc',
                '<(angle_path)/src/tests/perf_tests/third_party/perf/perf_test.h',
                '<(angle_path)/src/tests/test_utils/angle_test_configs.cpp',
                '<(angle_path)/src/tests/test_utils/angle_test_configs.h',
                '<(angle_path)/src/tests/test_utils/angle_test_instantiate.cpp',
                '<(angle_path)/src/tests/test_utils/angle_test_instantiate.h',
            ],
            'angle_perf_tests_win_sources':
            [
                '<(angle_path)/src/tests/perf_tests/IndexDataManagerTest.cpp',
            ]
        },
        'dependencies':
        [
            '<(angle_path)/src/angle.gyp:angle_common',
            '<(angle_path)/src/angle.gyp:libANGLE', # for unit testing
            '<(angle_path)/src/angle.gyp:libGLESv2',
            '<(angle_path)/src/angle.gyp:libEGL',
            '<(angle_path)/src/tests/tests.gyp:angle_test_support',
            '<(angle_path)/util/util.gyp:angle_util',
        ],
        'include_dirs':
        [
            '<(angle_path)/include',
            '<(angle_path)/src/tests'
        ],
        'sources':
        [
            '<@(angle_perf_tests_sources)',
        ],
        'conditions':
        [
            ['OS=="win"',
            {
                'sources':
                [
                    '<@(angle_perf_tests_win_sources)',
                ],
            }],
        ]
    }