1 //
2 // Copyright 2015 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 // angle_deqp_gtest_main:
7 // Entry point for standalone dEQP tests.
8
9 #include <gtest/gtest.h>
10
11 #include "test_utils/runner/TestSuite.h"
12
13 // Defined in angle_deqp_gtest.cpp. Declared here so we don't need to make a header that we import
14 // in Chromium.
15 namespace angle
16 {
17 void InitTestHarness(int *argc, char **argv);
18 } // namespace angle
19
20 // If we ever move to a text-based expectations format, we should move this list in that file.
21 namespace
22 {
23 const char *kSlowTests[] = {
24 "dEQP.KHR_GLES31/core_arrays_of_arrays_ConstructorsAndUnsizedDeclConstructors1",
25 "dEQP.GLES31/functional_ssbo_layout_random_all_shared_buffer_36"};
26 } // namespace
27
main(int argc,char ** argv)28 int main(int argc, char **argv)
29 {
30 #if defined(ANGLE_PLATFORM_MACOS)
31 // By default, we should hook file API functions on macOS to avoid slow Metal shader caching
32 // file access.
33 angle::InitMetalFileAPIHooking(argc, argv);
34 #endif
35
36 angle::InitTestHarness(&argc, argv);
37 angle::TestSuite testSuite(&argc, argv);
38 testSuite.registerSlowTests(kSlowTests, ArraySize(kSlowTests));
39 return testSuite.run();
40 }
41