• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 2013 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 
7 #include "gtest/gtest.h"
8 #include "test_utils/runner/TestSuite.h"
9 
10 void ANGLEProcessTestArgs(int *argc, char *argv[]);
11 
12 // Register* functions handle setting up special tests that need complex parameterization.
13 // GoogleTest relies heavily on static initialization to register test functions. This can
14 // cause all sorts of issues if the right variables aren't initialized in the right order.
15 // This register function needs to be called explicitly after static initialization and
16 // before the test launcher starts. This is a safer and generally better way to initialize
17 // tests. It's also more similar to how the dEQP Test harness works. In the future we should
18 // likely specialize more register functions more like dEQP instead of relying on static init.
19 void RegisterContextCompatibilityTests();
20 
main(int argc,char ** argv)21 int main(int argc, char **argv)
22 {
23     angle::TestSuite testSuite(&argc, argv);
24     ANGLEProcessTestArgs(&argc, argv);
25     RegisterContextCompatibilityTests();
26     return testSuite.run();
27 }
28