summaryrefslogtreecommitdiff
path: root/test/buildtool/execution_engine/executor
diff options
context:
space:
mode:
Diffstat (limited to 'test/buildtool/execution_engine/executor')
-rw-r--r--test/buildtool/execution_engine/executor/TARGETS1
-rw-r--r--test/buildtool/execution_engine/executor/executor_api_local.test.cpp31
2 files changed, 22 insertions, 10 deletions
diff --git a/test/buildtool/execution_engine/executor/TARGETS b/test/buildtool/execution_engine/executor/TARGETS
index 1bd82e69..26b4e9a8 100644
--- a/test/buildtool/execution_engine/executor/TARGETS
+++ b/test/buildtool/execution_engine/executor/TARGETS
@@ -45,6 +45,7 @@
[ "executor_api_tests"
, ["@", "src", "src/buildtool/common", "common"]
, ["@", "src", "src/buildtool/common", "config"]
+ , ["@", "src", "src/buildtool/execution_api/local", "config"]
, ["@", "src", "src/buildtool/execution_api/local", "local"]
, ["@", "src", "src/buildtool/execution_api/remote", "config"]
, ["@", "src", "src/buildtool/execution_engine/executor", "executor"]
diff --git a/test/buildtool/execution_engine/executor/executor_api_local.test.cpp b/test/buildtool/execution_engine/executor/executor_api_local.test.cpp
index 5c423dea..d8e9fd96 100644
--- a/test/buildtool/execution_engine/executor/executor_api_local.test.cpp
+++ b/test/buildtool/execution_engine/executor/executor_api_local.test.cpp
@@ -17,6 +17,7 @@
#include "catch2/catch_test_macros.hpp"
#include "src/buildtool/common/repository_config.hpp"
#include "src/buildtool/common/statistics.hpp"
+#include "src/buildtool/execution_api/local/config.hpp"
#include "src/buildtool/execution_api/local/local_api.hpp"
#include "src/buildtool/execution_api/remote/config.hpp"
#include "src/buildtool/execution_engine/executor/executor.hpp"
@@ -33,8 +34,10 @@ TEST_CASE("Executor<LocalApi>: Upload blob", "[executor]") {
RepositoryConfig repo_config{};
TestBlobUpload(&repo_config, [&] {
- return std::make_unique<LocalApi>(
- &storage_config.Get(), &storage, &repo_config);
+ return std::make_unique<LocalApi>(&storage_config.Get(),
+ &storage,
+ &LocalExecutionConfig::Instance(),
+ &repo_config);
});
}
@@ -52,8 +55,10 @@ TEST_CASE("Executor<LocalApi>: Compile hello world", "[executor]") {
&stats,
&progress,
[&] {
- return std::make_unique<LocalApi>(
- &storage_config.Get(), &storage, &repo_config);
+ return std::make_unique<LocalApi>(&storage_config.Get(),
+ &storage,
+ &LocalExecutionConfig::Instance(),
+ &repo_config);
},
&*auth_config);
}
@@ -72,8 +77,10 @@ TEST_CASE("Executor<LocalApi>: Compile greeter", "[executor]") {
&stats,
&progress,
[&] {
- return std::make_unique<LocalApi>(
- &storage_config.Get(), &storage, &repo_config);
+ return std::make_unique<LocalApi>(&storage_config.Get(),
+ &storage,
+ &LocalExecutionConfig::Instance(),
+ &repo_config);
},
&*auth_config);
}
@@ -92,8 +99,10 @@ TEST_CASE("Executor<LocalApi>: Upload and download trees", "[executor]") {
&stats,
&progress,
[&] {
- return std::make_unique<LocalApi>(
- &storage_config.Get(), &storage, &repo_config);
+ return std::make_unique<LocalApi>(&storage_config.Get(),
+ &storage,
+ &LocalExecutionConfig::Instance(),
+ &repo_config);
},
&*auth_config);
}
@@ -112,8 +121,10 @@ TEST_CASE("Executor<LocalApi>: Retrieve output directories", "[executor]") {
&stats,
&progress,
[&] {
- return std::make_unique<LocalApi>(
- &storage_config.Get(), &storage, &repo_config);
+ return std::make_unique<LocalApi>(&storage_config.Get(),
+ &storage,
+ &LocalExecutionConfig::Instance(),
+ &repo_config);
},
&*auth_config);
}