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/file_system | |
parent | 65fc11ff28e6dd29a95391b6700a02d277b539c6 (diff) | |
download | justbuild-e047c360dcc5cbdc01ee19a1b755bb70d883e41c.tar.gz |
test: Add missing includes and fix deps
Diffstat (limited to 'test/buildtool/file_system')
-rw-r--r-- | test/buildtool/file_system/TARGETS | 15 | ||||
-rw-r--r-- | test/buildtool/file_system/directory_entries.test.cpp | 7 | ||||
-rw-r--r-- | test/buildtool/file_system/file_root.test.cpp | 4 | ||||
-rw-r--r-- | test/buildtool/file_system/file_system_manager.test.cpp | 2 | ||||
-rw-r--r-- | test/buildtool/file_system/git_repo.test.cpp | 10 | ||||
-rw-r--r-- | test/buildtool/file_system/git_tree.test.cpp | 11 | ||||
-rw-r--r-- | test/buildtool/file_system/object_cas.test.cpp | 4 |
7 files changed, 53 insertions, 0 deletions
diff --git a/test/buildtool/file_system/TARGETS b/test/buildtool/file_system/TARGETS index d7101454..8121b39a 100644 --- a/test/buildtool/file_system/TARGETS +++ b/test/buildtool/file_system/TARGETS @@ -7,6 +7,7 @@ [ ["@", "catch2", "", "catch2"] , ["", "catch-main"] , ["@", "src", "src/buildtool/file_system", "file_system_manager"] + , ["@", "src", "src/buildtool/file_system", "object_type"] , ["@", "src", "src/buildtool/logging", "log_level"] , ["@", "src", "src/buildtool/logging", "logging"] ] @@ -21,6 +22,10 @@ , ["", "catch-main"] , ["@", "src", "src/buildtool/crypto", "hash_function"] , ["@", "src", "src/buildtool/file_system", "file_system_manager"] + , ["@", "src", "src/buildtool/file_system", "object_cas"] + , ["@", "src", "src/buildtool/file_system", "object_type"] + , ["@", "src", "src/buildtool/common", "bazel_types"] + , ["@", "src", "src/buildtool/common", "common"] , ["utils", "local_hermeticity"] ] , "stage": ["test", "buildtool", "file_system"] @@ -33,10 +38,15 @@ , "private-deps": [ ["@", "catch2", "", "catch2"] , ["", "catch-main"] + , ["@", "fmt", "", "fmt"] , ["utils", "container_matchers"] + , ["@", "src", "src/buildtool/file_system", "git_cas"] + , ["@", "src", "src/buildtool/file_system", "git_repo"] , ["@", "src", "src/buildtool/file_system", "git_tree"] , ["@", "src", "src/buildtool/file_system", "file_system_manager"] + , ["@", "src", "src/buildtool/common", "bazel_types"] , ["@", "src", "src/buildtool/common", "common"] + , ["@", "src", "src/utils/cpp", "hex_string"] , ["utils", "shell_quoting"] ] , "stage": ["test", "buildtool", "file_system"] @@ -52,6 +62,7 @@ , ["utils", "container_matchers"] , ["@", "src", "src/buildtool/common", "artifact_description"] , ["@", "src", "src/buildtool/file_system", "file_root"] + , ["@", "src", "src/buildtool/file_system", "file_system_manager"] , ["utils", "shell_quoting"] ] , "stage": ["test", "buildtool", "file_system"] @@ -64,9 +75,11 @@ , "private-deps": [ ["@", "catch2", "", "catch2"] , ["", "catch-main"] + , ["@", "fmt", "", "fmt"] , ["utils", "container_matchers"] , ["@", "src", "src/buildtool/common", "artifact_description"] , ["@", "src", "src/buildtool/file_system", "file_root"] + , ["@", "src", "src/buildtool/file_system", "file_system_manager"] , ["utils", "shell_quoting"] ] , "stage": ["test", "buildtool", "file_system"] @@ -102,8 +115,10 @@ , "private-deps": [ ["@", "catch2", "", "catch2"] , ["", "catch-main"] + , ["@", "fmt", "", "fmt"] , ["@", "json", "", "json"] , ["@", "src", "src/buildtool/file_system", "file_system_manager"] + , ["@", "src", "src/buildtool/file_system", "git_cas"] , ["@", "src", "src/buildtool/file_system", "git_repo"] , ["@", "src", "src/buildtool/logging", "log_level"] , ["@", "src", "src/buildtool/logging", "logging"] diff --git a/test/buildtool/file_system/directory_entries.test.cpp b/test/buildtool/file_system/directory_entries.test.cpp index 278f79d6..0de55726 100644 --- a/test/buildtool/file_system/directory_entries.test.cpp +++ b/test/buildtool/file_system/directory_entries.test.cpp @@ -13,11 +13,18 @@ // limitations under the License. #include <atomic> +#include <cstdlib> +#include <filesystem> +#include <optional> +#include <string> #include <thread> +#include <unordered_set> #include "catch2/catch_test_macros.hpp" +#include "fmt/core.h" #include "src/buildtool/common/artifact_description.hpp" #include "src/buildtool/file_system/file_root.hpp" +#include "src/buildtool/file_system/file_system_manager.hpp" #include "test/utils/container_matchers.hpp" #include "test/utils/shell_quoting.hpp" diff --git a/test/buildtool/file_system/file_root.test.cpp b/test/buildtool/file_system/file_root.test.cpp index 8828fb7b..e5f84cfb 100644 --- a/test/buildtool/file_system/file_root.test.cpp +++ b/test/buildtool/file_system/file_root.test.cpp @@ -13,11 +13,15 @@ // limitations under the License. #include <atomic> +#include <cstdlib> +#include <filesystem> +#include <string> #include <thread> #include "catch2/catch_test_macros.hpp" #include "src/buildtool/common/artifact_description.hpp" #include "src/buildtool/file_system/file_root.hpp" +#include "src/buildtool/file_system/file_system_manager.hpp" #include "test/utils/container_matchers.hpp" #include "test/utils/shell_quoting.hpp" diff --git a/test/buildtool/file_system/file_system_manager.test.cpp b/test/buildtool/file_system/file_system_manager.test.cpp index 18068aec..05fef390 100644 --- a/test/buildtool/file_system/file_system_manager.test.cpp +++ b/test/buildtool/file_system/file_system_manager.test.cpp @@ -19,10 +19,12 @@ #include <fstream> #include <iostream> #include <unordered_map> +#include <vector> #include "catch2/catch_test_macros.hpp" #include "catch2/generators/catch_generators_all.hpp" #include "src/buildtool/file_system/file_system_manager.hpp" +#include "src/buildtool/file_system/object_type.hpp" #include "src/buildtool/logging/log_level.hpp" #include "src/buildtool/logging/logger.hpp" diff --git a/test/buildtool/file_system/git_repo.test.cpp b/test/buildtool/file_system/git_repo.test.cpp index 53658b44..e84e7242 100644 --- a/test/buildtool/file_system/git_repo.test.cpp +++ b/test/buildtool/file_system/git_repo.test.cpp @@ -12,11 +12,21 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include <atomic> +#include <cstdlib> +#include <filesystem> +#include <memory> +#include <optional> +#include <string> #include <thread> +#include <variant> +#include <vector> #include "catch2/catch_test_macros.hpp" +#include "fmt/core.h" #include "nlohmann/json.hpp" #include "src/buildtool/file_system/file_system_manager.hpp" +#include "src/buildtool/file_system/git_cas.hpp" #include "src/buildtool/file_system/git_repo.hpp" #include "src/buildtool/logging/log_level.hpp" #include "src/buildtool/logging/logger.hpp" diff --git a/test/buildtool/file_system/git_tree.test.cpp b/test/buildtool/file_system/git_tree.test.cpp index ec2d5003..82177b45 100644 --- a/test/buildtool/file_system/git_tree.test.cpp +++ b/test/buildtool/file_system/git_tree.test.cpp @@ -12,12 +12,23 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include <atomic> +#include <cstdlib> +#include <filesystem> +#include <optional> +#include <string> #include <thread> +#include <vector> #include "catch2/catch_test_macros.hpp" +#include "fmt/core.h" #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/git_cas.hpp" +#include "src/buildtool/file_system/git_repo.hpp" #include "src/buildtool/file_system/git_tree.hpp" +#include "src/utils/cpp/hex_string.hpp" #include "test/utils/container_matchers.hpp" #include "test/utils/shell_quoting.hpp" diff --git a/test/buildtool/file_system/object_cas.test.cpp b/test/buildtool/file_system/object_cas.test.cpp index 3692b5fb..8bdfc0d8 100644 --- a/test/buildtool/file_system/object_cas.test.cpp +++ b/test/buildtool/file_system/object_cas.test.cpp @@ -12,12 +12,16 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include <functional> // std::equal_to #include <string> #include "catch2/catch_test_macros.hpp" +#include "src/buildtool/common/artifact_digest.hpp" +#include "src/buildtool/common/bazel_types.hpp" #include "src/buildtool/crypto/hash_function.hpp" #include "src/buildtool/file_system/file_system_manager.hpp" #include "src/buildtool/file_system/object_cas.hpp" +#include "src/buildtool/file_system/object_type.hpp" #include "test/utils/hermeticity/local.hpp" TEST_CASE_METHOD(HermeticLocalTestFixture, "ObjectCAS", "[file_system]") { |