MCPcopy Create free account
hub / github.com/Illation/ETEngine / main

Function main

Engine/unit_tests/mainTesting.cpp:17–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16
17int 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected