summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-03-12 17:08:50 +0100
committerMaksim Denisov <denisov.maksim@huawei.com>2024-04-15 17:36:56 +0200
commit2443cd6dd71f654b718e456104efab02f8c1a8e8 (patch)
tree3f6918779ffadf34406b191f74228f1be4075b29
parent989cde7dc99e4ce789b1520cd622a8049d6b85f9 (diff)
downloadjustbuild-2443cd6dd71f654b718e456104efab02f8c1a8e8.tar.gz
Initialize file chunker in catch-main
-rw-r--r--test/TARGETS1
-rw-r--r--test/main.cpp4
2 files changed, 5 insertions, 0 deletions
diff --git a/test/TARGETS b/test/TARGETS
index a39b6e92..96448e2d 100644
--- a/test/TARGETS
+++ b/test/TARGETS
@@ -7,6 +7,7 @@
, ["utils", "log_config"]
, ["@", "src", "src/buildtool/file_system", "git_context"]
, ["@", "src", "src/buildtool/storage", "config"]
+ , ["@", "src", "src/buildtool/storage", "file_chunker"]
]
, "stage": ["test"]
}
diff --git a/test/main.cpp b/test/main.cpp
index 7b50aef6..34468666 100644
--- a/test/main.cpp
+++ b/test/main.cpp
@@ -19,6 +19,7 @@
#include "catch2/catch_session.hpp"
#include "src/buildtool/file_system/git_context.hpp"
#include "src/buildtool/storage/config.hpp"
+#include "src/buildtool/storage/file_chunker.hpp"
#include "test/utils/logging/log_config.hpp"
auto main(int argc, char* argv[]) -> int {
@@ -44,5 +45,8 @@ auto main(int argc, char* argv[]) -> int {
return 1;
}
+ // Initialize random content of the file chunker's map.
+ FileChunker::Initialize();
+
return Catch::Session().run(argc, argv);
}