SpiecsEngine
 
Loading...
Searching...
No Matches

◆ main()

int main ( int argc,
char ** argv )

The Entry of SpicesTest.

Init GoogleMock.

Execute all unit tests.

Init GoogleMock.

Execute all unit tests.

Definition at line 76 of file main.cpp.

77{
78 try
79 {
80 SPICESTEST_PROFILE_BEGIN_SESSION("SpicesTestInstruments", "SpiceslProfile-SpicesTest.json");
81
85 testing::InitGoogleMock(&argc, argv);
86
90 const int result = RUN_ALL_TESTS();
91
93 }
94 catch (const std::exception& ex)
95 {
96 std::cout << ex.what() << std::endl;
97 return EXIT_FAILURE;
98 }
99
100 return EXIT_SUCCESS;
101}
#define SPICESTEST_PROFILE_END_SESSION()
#define SPICESTEST_PROFILE_BEGIN_SESSION(name, filepath)