aboutsummaryrefslogtreecommitdiff
path: root/src/zencore-test/zencore-test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zencore-test/zencore-test.cpp')
-rw-r--r--src/zencore-test/zencore-test.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/zencore-test/zencore-test.cpp b/src/zencore-test/zencore-test.cpp
new file mode 100644
index 000000000..53413fb25
--- /dev/null
+++ b/src/zencore-test/zencore-test.cpp
@@ -0,0 +1,26 @@
+// Copyright Epic Games, Inc. All Rights Reserved.
+
+// zencore-test.cpp : Defines the entry point for the console application.
+//
+
+#include <zencore/logging.h>
+#include <zencore/zencore.h>
+
+#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_WITH_TESTS
+ zen::zencore_forcelinktests();
+
+ zen::logging::InitializeLogging();
+
+ return ZEN_RUN_TESTS(argc, argv);
+#else
+ return 0;
+#endif
+}