Edit

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

Branch :

  • Show log

    Commit

  • Author : Le Hoang Quyen
    Date : 2020-12-08 01:08:00
    Hash : cb8903b1
    Message : Metal: Ignore OS's internal shader cache when testing. Internal shader cache caused timeout in some dEQP tests. Work-around: ignore the cache by hooking fopen function and return null when the cache related files are accessed. Bug: angleproject:5354 Change-Id: I12ca228540925e67454bf24ce1ba83d703882c87 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2580918 Commit-Queue: Le Hoang Quyen <le.hoang.q@gmail.com> Reviewed-by: Jamie Madill <jmadill@chromium.org> Reviewed-by: Kenneth Russell <kbr@chromium.org>

  • 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
    
    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);
        return testSuite.run();
    }