diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-04-04 16:34:29 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-04-08 15:19:50 +0200 |
commit | e047c360dcc5cbdc01ee19a1b755bb70d883e41c (patch) | |
tree | 446072ded32f88c1e77d047d27f9fbde6e1825be /test/buildtool/storage | |
parent | 65fc11ff28e6dd29a95391b6700a02d277b539c6 (diff) | |
download | justbuild-e047c360dcc5cbdc01ee19a1b755bb70d883e41c.tar.gz |
test: Add missing includes and fix deps
Diffstat (limited to 'test/buildtool/storage')
-rw-r--r-- | test/buildtool/storage/TARGETS | 7 | ||||
-rw-r--r-- | test/buildtool/storage/large_object_cas.test.cpp | 2 | ||||
-rw-r--r-- | test/buildtool/storage/local_ac.test.cpp | 3 | ||||
-rw-r--r-- | test/buildtool/storage/local_cas.test.cpp | 5 |
4 files changed, 16 insertions, 1 deletions
diff --git a/test/buildtool/storage/TARGETS b/test/buildtool/storage/TARGETS index 9374bf58..13fc6e22 100644 --- a/test/buildtool/storage/TARGETS +++ b/test/buildtool/storage/TARGETS @@ -17,6 +17,9 @@ [ ["@", "catch2", "", "catch2"] , ["", "catch-main"] , ["utils", "local_hermeticity"] + , ["@", "src", "src/buildtool/common", "common"] + , ["@", "src", "src/buildtool/file_system", "file_system_manager"] + , ["@", "src", "src/buildtool/file_system", "object_type"] ] , "stage": ["test", "buildtool", "storage"] } @@ -27,7 +30,10 @@ , "private-deps": [ ["@", "catch2", "", "catch2"] , ["", "catch-main"] + , ["@", "src", "src/buildtool/common", "bazel_types"] + , ["@", "src", "src/buildtool/common", "common"] , ["@", "src", "src/buildtool/file_system", "file_system_manager"] + , ["@", "src", "src/buildtool/file_system", "object_type"] , ["utils", "local_hermeticity"] ] , "stage": ["test", "buildtool", "storage"] @@ -40,6 +46,7 @@ [ ["@", "catch2", "", "catch2"] , ["", "catch-main"] , ["@", "src", "src/buildtool/file_system", "file_system_manager"] + , ["@", "src", "src/buildtool/file_system", "object_type"] , ["@", "src", "src/buildtool/storage", "storage"] , ["@", "src", "src/buildtool/storage", "config"] , ["utils", "local_hermeticity"] diff --git a/test/buildtool/storage/large_object_cas.test.cpp b/test/buildtool/storage/large_object_cas.test.cpp index 1d3b8394..f9a427f8 100644 --- a/test/buildtool/storage/large_object_cas.test.cpp +++ b/test/buildtool/storage/large_object_cas.test.cpp @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include <cstddef> #include <cstdint> #include <cstdlib> #include <filesystem> @@ -28,6 +29,7 @@ #include "src/buildtool/compatibility/native_support.hpp" #include "src/buildtool/execution_api/bazel_msg/bazel_msg_factory.hpp" #include "src/buildtool/file_system/file_system_manager.hpp" +#include "src/buildtool/file_system/object_type.hpp" #include "src/buildtool/storage/config.hpp" #include "src/buildtool/storage/large_object_cas.hpp" #include "src/buildtool/storage/storage.hpp" diff --git a/test/buildtool/storage/local_ac.test.cpp b/test/buildtool/storage/local_ac.test.cpp index a5da6201..4092ca1d 100644 --- a/test/buildtool/storage/local_ac.test.cpp +++ b/test/buildtool/storage/local_ac.test.cpp @@ -16,7 +16,10 @@ #include "catch2/catch_test_macros.hpp" #include "gsl/gsl" +#include "src/buildtool/common/artifact_digest.hpp" +#include "src/buildtool/common/bazel_types.hpp" #include "src/buildtool/file_system/file_system_manager.hpp" +#include "src/buildtool/file_system/object_type.hpp" #include "src/buildtool/storage/storage.hpp" #include "test/utils/hermeticity/local.hpp" diff --git a/test/buildtool/storage/local_cas.test.cpp b/test/buildtool/storage/local_cas.test.cpp index a5f6876f..5f481b07 100644 --- a/test/buildtool/storage/local_cas.test.cpp +++ b/test/buildtool/storage/local_cas.test.cpp @@ -12,10 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include <filesystem> #include <string> #include "catch2/catch_test_macros.hpp" -#include "src/buildtool/storage/storage.hpp" +#include "src/buildtool/common/artifact_digest.hpp" +#include "src/buildtool/file_system/file_system_manager.hpp" +#include "src/buildtool/file_system/object_type.hpp" #include "test/utils/hermeticity/local.hpp" TEST_CASE_METHOD(HermeticLocalTestFixture, |