2022-11-29 18:00:19 +00:00
|
|
|
#include "TestFramework.h"
|
|
|
|
|
2022-12-06 18:02:43 +00:00
|
|
|
#include "CommandLineArgs.h"
|
2023-12-20 16:58:22 +00:00
|
|
|
#include "Logger.h"
|
2022-12-06 18:02:43 +00:00
|
|
|
|
2022-11-29 18:00:19 +00:00
|
|
|
#ifdef _WIN32
|
|
|
|
#include <windows.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow)
|
2022-12-06 18:02:43 +00:00
|
|
|
int main(int argc, char *argv[])
|
2020-06-07 17:11:36 +00:00
|
|
|
{
|
2022-11-29 18:00:19 +00:00
|
|
|
#ifdef _WIN32
|
|
|
|
CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);
|
|
|
|
#endif
|
|
|
|
|
2023-12-18 10:16:31 +00:00
|
|
|
CommandLineArgs args;
|
|
|
|
args.process(argc, argv);
|
2022-12-06 18:02:43 +00:00
|
|
|
|
2023-12-20 16:58:22 +00:00
|
|
|
LOG_INFO("Starting test run.");
|
2023-12-18 10:16:31 +00:00
|
|
|
TestCaseRunner::getInstance().run(args.getUserArgs());
|
2023-12-20 16:58:22 +00:00
|
|
|
LOG_INFO("Finished test run.");
|
2022-11-29 18:00:19 +00:00
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
CoUninitialize();
|
|
|
|
#endif
|
2020-06-07 17:11:36 +00:00
|
|
|
return 0;
|
|
|
|
}
|