summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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);
}