summaryrefslogtreecommitdiff
path: root/test/buildtool/execution_engine/executor/executor.test.cpp
diff options
context:
space:
mode:
authorSascha Roloff <sascha.roloff@huawei.com>2022-07-11 19:55:10 +0200
committerSascha Roloff <sascha.roloff@huawei.com>2022-08-05 14:41:31 +0200
commitee6f54124360d8a72b9b545dcc581f3c80d3c8a9 (patch)
tree20ab0e5e0e8132c30da0f99c401750d712fe00d0 /test/buildtool/execution_engine/executor/executor.test.cpp
parent76c17ffa9e079fdd3d2a7159c02a1d9593e11930 (diff)
downloadjustbuild-ee6f54124360d8a72b9b545dcc581f3c80d3c8a9.tar.gz
Modified artifact digest to provide wire digest on demand
Diffstat (limited to 'test/buildtool/execution_engine/executor/executor.test.cpp')
-rwxr-xr-xtest/buildtool/execution_engine/executor/executor.test.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/buildtool/execution_engine/executor/executor.test.cpp b/test/buildtool/execution_engine/executor/executor.test.cpp
index 3e56909e..e055dfd7 100755
--- a/test/buildtool/execution_engine/executor/executor.test.cpp
+++ b/test/buildtool/execution_engine/executor/executor.test.cpp
@@ -63,9 +63,11 @@ class TestResponse : public IExecutionResponse {
// collect files and store them
for (auto const& path : config_.execution.outputs) {
try {
- artifacts.emplace(path,
- Artifact::ObjectInfo{ArtifactDigest{path, 0},
- ObjectType::File});
+ artifacts.emplace(
+ path,
+ Artifact::ObjectInfo{
+ ArtifactDigest{path, 0, /*is_tree=*/false},
+ ObjectType::File});
} catch (...) {
return {};
}
@@ -170,8 +172,8 @@ static void SetupConfig(std::filesystem::path const& ws) {
SetupConfig(ws);
auto const local_cpp_desc = ArtifactDescription{path{"local.cpp"}, ""};
- auto const known_cpp_desc =
- ArtifactDescription{ArtifactDigest{"known.cpp", 0}, ObjectType::File};
+ auto const known_cpp_desc = ArtifactDescription{
+ ArtifactDigest{"known.cpp", 0, /*is_tree=*/false}, ObjectType::File};
auto const test_action_desc = ActionDescription{
{"output1.exe", "output2.exe"},