| 15 | |
| 16 | |
| 17 | int main(int argc, char* argv[]) |
| 18 | { |
| 19 | // working dir |
| 20 | if (argc > 0) |
| 21 | { |
| 22 | et::core::FileUtil::SetExecutablePath(argv[0]); |
| 23 | } |
| 24 | else |
| 25 | { |
| 26 | std::cerr << "main > Couldn't extract working directory from arguments, exiting!" << std::endl; |
| 27 | return 1; |
| 28 | } |
| 29 | |
| 30 | // root directory for file related tests |
| 31 | if (argc > 1) |
| 32 | { |
| 33 | global::g_UnitTestDir = std::string(argv[1]); |
| 34 | argc = 1; |
| 35 | } |
| 36 | else |
| 37 | { |
| 38 | std::cerr << "main > Couldn't extract test directory from arguments, exiting!" << std::endl; |
| 39 | return 2; |
| 40 | } |
| 41 | |
| 42 | int result = Catch::Session().run(argc, argv); |
| 43 | |
| 44 | return result; |
| 45 | } |
nothing calls this directly
no outgoing calls
no test coverage detected