aboutsummaryrefslogtreecommitdiff
path: root/zenstore-test/zenstore-test.cpp
blob: ebc0806d56dc6c49d80032e1943c5756a947a820 (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
// Copyright Epic Games, Inc. All Rights Reserved.

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

#if ZEN_PLATFORM_LINUX || ZEN_PLATFORM_MAC
#	include <sys/time.h>
#	include <sys/resource.h>
#	include <zencore/except.h>
#endif

#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::zenstore_forcelinktests();

	zen::logging::InitializeLogging();
	zen::MaximizeOpenFileCount();

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