summaryrefslogtreecommitdiff
path: root/test/other_tools/git_operations
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-03-14 16:21:55 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-03-15 13:12:48 +0100
commitd0f2ba0ab15e63aa3511218a837eb6f057632ace (patch)
tree999aabe895ceee4dc692745b759b6279abb3885c /test/other_tools/git_operations
parent208e2af5b78167777f64864c209f0af6ad4d1ef7 (diff)
downloadjustbuild-d0f2ba0ab15e63aa3511218a837eb6f057632ace.tar.gz
Clean up more includes and targets
Some of the more specific issues addressed: - missing log_level target/include - header-only libs wrongly marking deps as private - missing/misplaced gsl includes
Diffstat (limited to 'test/other_tools/git_operations')
-rw-r--r--test/other_tools/git_operations/TARGETS3
-rw-r--r--test/other_tools/git_operations/git_config_run.test.cpp4
-rw-r--r--test/other_tools/git_operations/git_repo_remote.test.cpp2
3 files changed, 9 insertions, 0 deletions
diff --git a/test/other_tools/git_operations/TARGETS b/test/other_tools/git_operations/TARGETS
index a546a76e..41f9df1c 100644
--- a/test/other_tools/git_operations/TARGETS
+++ b/test/other_tools/git_operations/TARGETS
@@ -31,6 +31,8 @@
, ["", "catch-main"]
, ["@", "json", "", "json"]
, ["@", "src", "src/buildtool/file_system", "file_system_manager"]
+ , ["@", "src", "src/buildtool/logging", "log_level"]
+ , ["@", "src", "src/buildtool/logging", "logging"]
, ["@", "src", "src/other_tools/git_operations", "git_repo_remote"]
, ["@", "src", "src/utils/cpp", "atomic"]
, ["utils", "shell_quoting"]
@@ -47,6 +49,7 @@
, ["@", "src", "src/other_tools/git_operations", "git_config_settings"]
, ["@", "src", "src/buildtool/file_system", "git_utils"]
, ["@", "src", "src/buildtool/file_system", "git_context"]
+ , ["@", "src", "src/buildtool/logging", "log_level"]
, ["@", "src", "src/buildtool/logging", "logging"]
, ["utils", "log_config"]
]
diff --git a/test/other_tools/git_operations/git_config_run.test.cpp b/test/other_tools/git_operations/git_config_run.test.cpp
index 956b8926..50f859d7 100644
--- a/test/other_tools/git_operations/git_config_run.test.cpp
+++ b/test/other_tools/git_operations/git_config_run.test.cpp
@@ -12,10 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#include <exception>
#include <filesystem>
+#include <functional>
+#include <string>
#include "src/buildtool/file_system/git_context.hpp"
#include "src/buildtool/file_system/git_utils.hpp"
+#include "src/buildtool/logging/log_level.hpp"
#include "src/buildtool/logging/logger.hpp"
#include "src/other_tools/git_operations/git_config_settings.hpp"
#include "test/utils/logging/log_config.hpp"
diff --git a/test/other_tools/git_operations/git_repo_remote.test.cpp b/test/other_tools/git_operations/git_repo_remote.test.cpp
index 0330e9be..c781f61b 100644
--- a/test/other_tools/git_operations/git_repo_remote.test.cpp
+++ b/test/other_tools/git_operations/git_repo_remote.test.cpp
@@ -17,6 +17,8 @@
#include "catch2/catch_test_macros.hpp"
#include "nlohmann/json.hpp"
#include "src/buildtool/file_system/file_system_manager.hpp"
+#include "src/buildtool/logging/log_level.hpp"
+#include "src/buildtool/logging/logger.hpp"
#include "src/other_tools/git_operations/git_repo_remote.hpp"
#include "src/utils/cpp/atomic.hpp"
#include "test/utils/shell_quoting.hpp"