Edit

kc3-lang/angle/tests/angle_unittests.gypi

Branch :

  • Show log

    Commit

  • Author : Olli Etuaho
    Date : 2015-02-12 16:02:39
    Hash : 3eab00a0
    Message : Fix constant folding integer modulus Constant folding % used to generate results from division instead of results from modulus. Fix this and introduce a test for this and other integer constant folding, that checks that the right constant values are found in the IntermNode tree. BUG=angle:916 TEST=angle_unittests Change-Id: I75e59b7734eb206378a1b2957af0a5437a90097c Reviewed-on: https://chromium-review.googlesource.com/249691 Reviewed-by: Gregoire Payen de La Garanderie <Gregory.Payen@imgtec.com> Tested-by: Olli Etuaho <oetuaho@nvidia.com> Reviewed-by: Nicolas Capens <capn@chromium.org>

  • tests/angle_unittests.gypi
  • # Copyright (c) 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.
    
    # This .gypi describes all of the sources and dependencies to build a
    # unified "angle_unittests" target, which contains all of ANGLE's
    # tests that don't require a fully functional ANGLE in order to run
    # (compiler tests, preprocessor tests, etc.). It requires a parent
    # target to include this gypi in an executable target containing a
    # gtest harness in a main.cpp.
    
    {
        'variables':
        {
            # This file list will be shared with the GN build.
            'angle_unittests_sources':
            [
                '<(angle_path)/tests/compiler_tests/API_test.cpp',
                '<(angle_path)/tests/compiler_tests/CollectVariables_test.cpp',
                '<(angle_path)/tests/compiler_tests/ConstantFolding_test.cpp',
                '<(angle_path)/tests/compiler_tests/DebugShaderPrecision_test.cpp',
                '<(angle_path)/tests/compiler_tests/ExpressionLimit_test.cpp',
                '<(angle_path)/tests/compiler_tests/ShaderExtension_test.cpp',
                '<(angle_path)/tests/compiler_tests/NV_draw_buffers_test.cpp',
                '<(angle_path)/tests/compiler_tests/ShaderVariable_test.cpp',
                '<(angle_path)/tests/compiler_tests/TypeTracking_test.cpp',
                '<(angle_path)/tests/preprocessor_tests/char_test.cpp',
                '<(angle_path)/tests/preprocessor_tests/comment_test.cpp',
                '<(angle_path)/tests/preprocessor_tests/define_test.cpp',
                '<(angle_path)/tests/preprocessor_tests/error_test.cpp',
                '<(angle_path)/tests/preprocessor_tests/extension_test.cpp',
                '<(angle_path)/tests/preprocessor_tests/identifier_test.cpp',
                '<(angle_path)/tests/preprocessor_tests/if_test.cpp',
                '<(angle_path)/tests/preprocessor_tests/input_test.cpp',
                '<(angle_path)/tests/preprocessor_tests/location_test.cpp',
                '<(angle_path)/tests/preprocessor_tests/MockDiagnostics.h',
                '<(angle_path)/tests/preprocessor_tests/MockDirectiveHandler.h',
                '<(angle_path)/tests/preprocessor_tests/number_test.cpp',
                '<(angle_path)/tests/preprocessor_tests/operator_test.cpp',
                '<(angle_path)/tests/preprocessor_tests/pragma_test.cpp',
                '<(angle_path)/tests/preprocessor_tests/PreprocessorTest.cpp',
                '<(angle_path)/tests/preprocessor_tests/PreprocessorTest.h',
                '<(angle_path)/tests/preprocessor_tests/space_test.cpp',
                '<(angle_path)/tests/preprocessor_tests/token_test.cpp',
                '<(angle_path)/tests/preprocessor_tests/version_test.cpp',
            ],
        },
        'dependencies':
        [
            '<(angle_path)/src/angle.gyp:preprocessor',
            '<(angle_path)/src/angle.gyp:translator_static',
            '<(angle_path)/tests/tests.gyp:angle_test_support',
        ],
        'include_dirs':
        [
            '../include',
            '../src',
            '../src/compiler/preprocessor',
        ],
        'sources':
        [
            '<@(angle_unittests_sources)',
        ],
        'msvs_settings':
        {
            'VCLinkerTool':
            {
                'conditions':
                [
                    ['angle_build_winrt==1',
                    {
                        'AdditionalDependencies':
                        [
                            'runtimeobject.lib',
                        ],
                    }],
                ],
            },
        },
    }