diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2023-02-21 16:33:05 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2023-02-22 11:52:39 +0100 |
commit | 2f4a589f869a3667f60499a71eb24c6add533193 (patch) | |
tree | 17902b7cd9bbe40fb8acccfeeb20a76c6b829053 /test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp | |
parent | 1d954d5a1f06e65b8422b32d53d69db9fed2d60b (diff) | |
download | justbuild-2f4a589f869a3667f60499a71eb24c6add533193.tar.gz |
ExecutionApi: Retrieve to correct CAS directly
... by keeping track of each blob being a file or executable
and storing it to the correct local physical CAS directory.
The new flag is merely a hint and only used by the local
execution API. Leaving it out will still correctly transfer
the blob but may cause unnecessary duplicates in file CAS.
Diffstat (limited to 'test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp')
-rw-r--r-- | test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp b/test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp index 1081c952..8b81307b 100644 --- a/test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp +++ b/test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp @@ -33,7 +33,7 @@ TEST_CASE("Bazel internals: CAS Client", "[execution_api]") { auto digest = ArtifactDigest::Create<ObjectType::File>(content); // Valid blob - BazelBlob blob{digest, content}; + BazelBlob blob{digest, content, /*is_exec=*/false}; // Search blob via digest auto digests = cas_client.FindMissingBlobs(instance_name, {digest}); @@ -65,7 +65,7 @@ TEST_CASE("Bazel internals: CAS Client", "[execution_api]") { faulty_digest.set_size_bytes(4); // Faulty blob - BazelBlob faulty_blob{faulty_digest, content}; + BazelBlob faulty_blob{faulty_digest, content, /*is_exec=*/false}; // Search faulty digest CHECK(cas_client.FindMissingBlobs(instance_name, {faulty_digest}) |