diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-08 15:56:38 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-22 17:01:13 +0200 |
commit | 57388e7624c71762e6aac30f16809c467f96ca58 (patch) | |
tree | 9a865c096ee11e450939404cfa53cb70098910b1 /test/buildtool/graph_traverser | |
parent | f58946aeabb30363f41e3eb189f6bbfcea4009dd (diff) | |
download | justbuild-57388e7624c71762e6aac30f16809c467f96ca58.tar.gz |
Store HashFunction in StorageConfig
Diffstat (limited to 'test/buildtool/graph_traverser')
-rw-r--r-- | test/buildtool/graph_traverser/TARGETS | 1 | ||||
-rw-r--r-- | test/buildtool/graph_traverser/graph_traverser_remote.test.cpp | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/test/buildtool/graph_traverser/TARGETS b/test/buildtool/graph_traverser/TARGETS index 4b1a531f..0ed5533f 100644 --- a/test/buildtool/graph_traverser/TARGETS +++ b/test/buildtool/graph_traverser/TARGETS @@ -52,6 +52,7 @@ , ["utils", "test_remote_config"] , ["@", "src", "src/buildtool/storage", "storage"] , ["@", "src", "src/buildtool/storage", "config"] + , ["@", "src", "src/buildtool/crypto", "hash_function"] ] , "stage": ["test", "buildtool", "graph_traverser"] } diff --git a/test/buildtool/graph_traverser/graph_traverser_remote.test.cpp b/test/buildtool/graph_traverser/graph_traverser_remote.test.cpp index 504b96a1..fa8202ce 100644 --- a/test/buildtool/graph_traverser/graph_traverser_remote.test.cpp +++ b/test/buildtool/graph_traverser/graph_traverser_remote.test.cpp @@ -13,6 +13,7 @@ // limitations under the License. #include "catch2/catch_test_macros.hpp" +#include "src/buildtool/crypto/hash_function.hpp" #include "src/buildtool/execution_api/remote/config.hpp" #include "src/buildtool/storage/config.hpp" #include "src/buildtool/storage/storage.hpp" @@ -33,6 +34,9 @@ StorageConfig::Builder builder; auto config = builder.SetBuildRoot(cache_dir) + .SetHashType(Compatibility::IsCompatible() + ? HashFunction::JustHash::Compatible + : HashFunction::JustHash::Native) .SetRemoteExecutionArgs(remote_config.remote_address, remote_config.platform_properties, remote_config.dispatch) |