diff options
Diffstat (limited to 'src/zenutil-test/zenutil-test.cpp')
| -rw-r--r-- | src/zenutil-test/zenutil-test.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/zenutil-test/zenutil-test.cpp b/src/zenutil-test/zenutil-test.cpp new file mode 100644 index 000000000..f95b7e888 --- /dev/null +++ b/src/zenutil-test/zenutil-test.cpp @@ -0,0 +1,34 @@ +// Copyright Epic Games, Inc. All Rights Reserved. + +#include <zencore/filesystem.h> +#include <zencore/logging.h> +#include <zenutil/zenutil.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::zenutil_forcelinktests(); + + zen::logging::InitializeLogging(); + zen::MaximizeOpenFileCount(); + + return ZEN_RUN_TESTS(argc, argv); +#else + return 0; +#endif +} |