aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore-test/zenstore-test.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2024-03-14 16:33:17 +0100
committerGitHub Enterprise <[email protected]>2024-03-14 16:33:17 +0100
commit45bfc721dd049193abf3b2be2aa7b097466ddbe9 (patch)
treeabb6cf119aa148972aabad730ed384c115177cf1 /src/zenstore-test/zenstore-test.cpp
parentchange code owners for Enterprise github user names (#7) (diff)
downloadzen-45bfc721dd049193abf3b2be2aa7b097466ddbe9.tar.xz
zen-45bfc721dd049193abf3b2be2aa7b097466ddbe9.zip
clean up test linking (#4)
- Improvement: Add zenhttp-test and zenutil-test - Improvement: Moved cachepolicy test to cachepolicy.cpp - Improvement: Renamed cachestore tests from z$ to cachestore - Improvement: Moved test linking so test for a lib is linked by <lib>-test - Improvement: Removed HttpRequestParseRelativeUri in httpstructuredcache.cpp and use the one in cacherequests.h instead
Diffstat (limited to 'src/zenstore-test/zenstore-test.cpp')
-rw-r--r--src/zenstore-test/zenstore-test.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/zenstore-test/zenstore-test.cpp b/src/zenstore-test/zenstore-test.cpp
index c301c04a3..3ad9e620b 100644
--- a/src/zenstore-test/zenstore-test.cpp
+++ b/src/zenstore-test/zenstore-test.cpp
@@ -2,15 +2,12 @@
#include <zencore/filesystem.h>
#include <zencore/logging.h>
-#include <zencore/zencore.h>
-#include <zenstore/cache/structuredcachestore.h>
#include <zenstore/zenstore.h>
-#include <zenutil/zenutil.h>
-#if ZEN_PLATFORM_LINUX || ZEN_PLATFORM_MAC
-# include <sys/time.h>
-# include <sys/resource.h>
-# include <zencore/except.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
@@ -21,10 +18,11 @@
int
main([[maybe_unused]] int argc, [[maybe_unused]] char* argv[])
{
+#if ZEN_USE_MIMALLOC
+ mi_version();
+#endif
#if ZEN_WITH_TESTS
zen::zenstore_forcelinktests();
- zen::zenutil_forcelinktests();
- zen::structured_cachestore_forcelink();
zen::logging::InitializeLogging();
zen::MaximizeOpenFileCount();