blob: 64df746e4f72046868357f83b28e562ba560ae07 (
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
|
// Copyright Epic Games, Inc. All Rights Reserved.
// zencore-test.cpp : Defines the entry point for the console application.
//
#include <zencore/filesystem.h>
#include <zencore/logging.h>
#include <zencore/zencore.h>
#if ZEN_USE_MIMALLOC
ZEN_THIRD_PARTY_INCLUDES_START
# include <mimalloc-new-delete.h>
ZEN_THIRD_PARTY_INCLUDES_END
#endif
#if ZEN_WITH_TESTS
# define ZEN_TEST_WITH_RUNNER 1
# include <zencore/testing.h>
#endif
int
main([[maybe_unused]] int argc, [[maybe_unused]] char* argv[])
{
#if ZEN_USE_MIMALLOC
mi_version();
#endif
#if ZEN_WITH_TESTS
zen::zencore_forcelinktests();
zen::logging::InitializeLogging();
zen::MaximizeOpenFileCount();
return ZEN_RUN_TESTS(argc, argv);
#else
return 0;
#endif
}
|