aboutsummaryrefslogtreecommitdiff
path: root/zencore-test/zencore-test.cpp
blob: cd4ce3e0a89060d75afe7d5509e4032b42f30cf5 (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
// zencore-test.cpp : Defines the entry point for the console application.
//

#include <zencore/logging.h>
#include <zencore/zencore.h>

#if ZEN_WITH_TESTS
#	define DOCTEST_CONFIG_IMPLEMENT
#	include <zencore/testing.h>
#	undef DOCTEST_CONFIG_IMPLEMENT
#endif

int
main([[maybe_unused]] int argc, [[maybe_unused]] char* argv[])
{
#if ZEN_WITH_TESTS
	zen::zencore_forcelinktests();

	zen::logging::InitializeLogging();

	return doctest::Context(argc, argv).run();
#else
	return 0;
#endif
}