MCPcopy Create free account
hub / github.com/carbonengine/trinity / main

Function main

trinityal/tests/TrinityALTest.cpp:66–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66int main( int argc, char** argv )
67{
68 CCP::SetLogMainThreadId();
69
70 for( int i = 1; i < argc; ++i )
71 {
72 if( strcmp( argv[i], "--interactive" ) == 0 )
73 {
74 g_interactive = true;
75 }
76 else if( strcmp( argv[i], "--screenshots" ) == 0 )
77 {
78 g_makeScreenShots = true;
79 }
80 else if( strcmp( argv[i], "--compare" ) == 0 )
81 {
82 g_compareScreenShots = true;
83 }
84 else if( strcmp( argv[i], "--screenshotdir" ) == 0 )
85 {
86 if( i + 1 >= argc )
87 {
88 printf( "Error parsing arguments: --screenshotdir should be followed by directory path" );
89 return 1;
90 }
91 g_screenshotFolder = argv[++i];
92 g_screenshotFolder += "/" TRINITY_PLATFORM_NAME;
93 }
94 else if( strcmp( argv[i], "--adapterinfo" ) == 0 )
95 {
96 if( i + 1 >= argc )
97 {
98 printf( "Error parsing arguments: --adapterinfo should be followed by adapter index or \"all\"" );
99 return 1;
100 }
101 if( strcmp( argv[i + 1], "all" ) == 0 )
102 {
103 PrintAllAdapterInfo();
104 }
105 else
106 {
107 PrintAdapterInfo( atoi( argv[i + 1] ) );
108 }
109 }
110 }
111 ::testing::InitGoogleTest( &argc, argv );
112 int result = RUN_ALL_TESTS();
113 return result;
114}
115
116#if defined( __ANDROID__ )
117

Callers 1

mainThreadFunction · 0.70

Calls 4

PrintAllAdapterInfoFunction · 0.85
PrintAdapterInfoFunction · 0.85
InitGoogleTestFunction · 0.85
RUN_ALL_TESTSFunction · 0.85

Tested by

no test coverage detected