summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-07-16 10:26:10 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-07-16 16:24:43 +0200
commit0d65f1285899230497fa50efdaf4387092c08d61 (patch)
tree234a6d8fe81cae61571a39b6000de4d37ea87b82 /test
parenta3786528073b679285988e7ce7852509ba042dc4 (diff)
downloadjustbuild-0d65f1285899230497fa50efdaf4387092c08d61.tar.gz
Set compatibility in tests
Diffstat (limited to 'test')
-rw-r--r--test/TARGETS1
-rw-r--r--test/main.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/test/TARGETS b/test/TARGETS
index 5c529e4c..b96c461e 100644
--- a/test/TARGETS
+++ b/test/TARGETS
@@ -41,6 +41,7 @@
, ["@", "src", "src/buildtool/file_system", "git_context"]
, ["@", "src", "src/buildtool/storage", "config"]
, ["@", "src", "src/buildtool/storage", "file_chunker"]
+ , ["utils", "test_env"]
]
, "stage": ["test"]
}
diff --git a/test/main.cpp b/test/main.cpp
index e2758638..f73045dc 100644
--- a/test/main.cpp
+++ b/test/main.cpp
@@ -20,9 +20,11 @@
#include "src/buildtool/file_system/git_context.hpp"
#include "src/buildtool/storage/file_chunker.hpp"
#include "test/utils/logging/log_config.hpp"
+#include "test/utils/test_env.hpp"
auto main(int argc, char* argv[]) -> int {
ConfigureLogging();
+ ReadCompatibilityFromEnv();
/**
* The current implementation of libgit2 uses pthread_key_t incorrectly