diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-08 15:24:57 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-16 17:51:12 +0200 |
commit | 57b7ec186b740b94df030e2f064c28148dd30749 (patch) | |
tree | ddd445ceddf4b2d16c2749db04463354a691f3a9 /test/buildtool/build_engine | |
parent | 24c900225902337feee7a8cc4399fdffdecd945f (diff) | |
download | justbuild-57b7ec186b740b94df030e2f064c28148dd30749.tar.gz |
Pass RemoteExecutionConfig instance to ApiBundle
...and store it as a const ref for subsequent use wherever the apis
are already passed.
Diffstat (limited to 'test/buildtool/build_engine')
-rw-r--r-- | test/buildtool/build_engine/target_map/target_map.test.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/buildtool/build_engine/target_map/target_map.test.cpp b/test/buildtool/build_engine/target_map/target_map.test.cpp index 18236837..5ec27e97 100644 --- a/test/buildtool/build_engine/target_map/target_map.test.cpp +++ b/test/buildtool/build_engine/target_map/target_map.test.cpp @@ -113,7 +113,7 @@ TEST_CASE("simple targets", "[target_map]") { &local_exec_config, /*repo_config=*/nullptr, &auth, - RemoteExecutionConfig::RemoteAddress()}; + &RemoteExecutionConfig::Instance()}; auto serve = ServeApi::Create(*serve_config, &storage, &apis); AnalyseContext ctx{.repo_config = &repo_config, .storage = &storage, @@ -564,7 +564,7 @@ TEST_CASE("configuration deduplication", "[target_map]") { &local_exec_config, /*repo_config=*/nullptr, &auth, - RemoteExecutionConfig::RemoteAddress()}; + &RemoteExecutionConfig::Instance()}; auto serve = ServeApi::Create(*serve_config, &storage, &apis); AnalyseContext ctx{.repo_config = &repo_config, .storage = &storage, @@ -660,7 +660,7 @@ TEST_CASE("generator functions in string arguments", "[target_map]") { &local_exec_config, /*repo_config=*/nullptr, &auth, - RemoteExecutionConfig::RemoteAddress()}; + &RemoteExecutionConfig::Instance()}; auto serve = ServeApi::Create(*serve_config, &storage, &apis); AnalyseContext ctx{.repo_config = &repo_config, .storage = &storage, @@ -768,7 +768,7 @@ TEST_CASE("built-in rules", "[target_map]") { &local_exec_config, /*repo_config=*/nullptr, &auth, - RemoteExecutionConfig::RemoteAddress()}; + &RemoteExecutionConfig::Instance()}; auto serve = ServeApi::Create(*serve_config, &storage, &apis); AnalyseContext ctx{.repo_config = &repo_config, .storage = &storage, @@ -986,7 +986,7 @@ TEST_CASE("target reference", "[target_map]") { &local_exec_config, /*repo_config=*/nullptr, &auth, - RemoteExecutionConfig::RemoteAddress()}; + &RemoteExecutionConfig::Instance()}; auto serve = ServeApi::Create(*serve_config, &storage, &apis); AnalyseContext ctx{.repo_config = &repo_config, .storage = &storage, @@ -1137,7 +1137,7 @@ TEST_CASE("trees", "[target_map]") { &local_exec_config, /*repo_config=*/nullptr, &auth, - RemoteExecutionConfig::RemoteAddress()}; + &RemoteExecutionConfig::Instance()}; auto serve = ServeApi::Create(*serve_config, &storage, &apis); AnalyseContext ctx{.repo_config = &repo_config, .storage = &storage, @@ -1252,7 +1252,7 @@ TEST_CASE("RESULT error reporting", "[target_map]") { &local_exec_config, /*repo_config=*/nullptr, &auth, - RemoteExecutionConfig::RemoteAddress()}; + &RemoteExecutionConfig::Instance()}; auto serve = ServeApi::Create(*serve_config, &storage, &apis); AnalyseContext ctx{.repo_config = &repo_config, .storage = &storage, @@ -1426,7 +1426,7 @@ TEST_CASE("wrong arguments", "[target_map]") { &local_exec_config, /*repo_config=*/nullptr, &auth, - RemoteExecutionConfig::RemoteAddress()}; + &RemoteExecutionConfig::Instance()}; auto serve = ServeApi::Create(*serve_config, &storage, &apis); AnalyseContext ctx{.repo_config = &repo_config, .storage = &storage, |