blob: 5db18504110ff9d4dd013d49a5b3eb2be00fe301 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
// Copyright Epic Games, Inc. All Rights Reserved.
#include <zencore/filesystem.h>
#include <zencore/logging.h>
#include <zencore/trace.h>
#include <zenremotestore/projectstore/remoteprojectstore.h>
#include <zenremotestore/zenremotestore.h>
#include <zencore/memory/newdelete.h>
#if ZEN_WITH_TESTS
# define ZEN_TEST_WITH_RUNNER 1
# include <zencore/testing.h>
# include <zencore/process.h>
#endif
int
main([[maybe_unused]] int argc, [[maybe_unused]] char* argv[])
{
#if ZEN_PLATFORM_WINDOWS
setlocale(LC_ALL, "en_us.UTF8");
#endif // ZEN_PLATFORM_WINDOWS
#if ZEN_WITH_TESTS
zen::zenremotestore_forcelinktests();
# if ZEN_PLATFORM_LINUX
zen::IgnoreChildSignals();
# endif
# if ZEN_WITH_TRACE
zen::TraceInit("zenstore-test");
zen::TraceOptions TraceCommandlineOptions;
if (GetTraceOptionsFromCommandline(TraceCommandlineOptions))
{
TraceConfigure(TraceCommandlineOptions);
}
# endif // ZEN_WITH_TRACE
zen::logging::InitializeLogging();
zen::MaximizeOpenFileCount();
return ZEN_RUN_TESTS(argc, argv);
#else
return 0;
#endif
}
|