Edit

kc3-lang/angle/src/tests/angle_deqp_tests_main.cpp

Branch :

  • Show log

    Commit

  • Author : Shahbaz Youssefi
    Date : 2021-04-08 23:57:04
    Hash : 58eabfd7
    Message : Translator: Validate consistent variable references Some transformations change variable declarations. This validation ensures that all references to said variables are appropriately replaced as well. Bug: angleproject:2733 Change-Id: I6c2873968eeed4cba66e70069f84eb69a1f77074 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2818140 Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org> Reviewed-by: Tim Van Patten <timvp@google.com>

  • src/tests/angle_deqp_tests_main.cpp
  • //
    // 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_deqp_gtest_main:
    //   Entry point for standalone dEQP tests.
    
    #include <gtest/gtest.h>
    
    #include "test_utils/runner/TestSuite.h"
    
    // Defined in angle_deqp_gtest.cpp. Declared here so we don't need to make a header that we import
    // in Chromium.
    namespace angle
    {
    void InitTestHarness(int *argc, char **argv);
    }  // namespace angle
    
    // If we ever move to a text-based expectations format, we should move this list in that file.
    namespace
    {
    const char *kSlowTests[] = {
        "dEQP.KHR_GLES31/core_arrays_of_arrays_ConstructorsAndUnsizedDeclConstructors1"};
    }  // namespace
    
    int main(int argc, char **argv)
    {
    #if defined(ANGLE_PLATFORM_MACOS)
        // By default, we should hook file API functions on macOS to avoid slow Metal shader caching
        // file access.
        angle::InitMetalFileAPIHooking(argc, argv);
    #endif
    
        angle::InitTestHarness(&argc, argv);
        angle::TestSuite testSuite(&argc, argv);
        testSuite.registerSlowTests(kSlowTests, ArraySize(kSlowTests));
        return testSuite.run();
    }