summaryrefslogtreecommitdiff
path: root/test/buildtool/execution_api/local
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2025-06-23 15:08:01 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2025-06-24 14:56:58 +0200
commitb41c60fd8179fec987f158347111f650924aad47 (patch)
tree61f4addc0ff45fb5d65abe0807015417aae2b579 /test/buildtool/execution_api/local
parentbbcc5977f49646941ac35060bb74a27eda5fbd76 (diff)
downloadjustbuild-b41c60fd8179fec987f158347111f650924aad47.tar.gz
Test: Add test for API output path modes
Diffstat (limited to 'test/buildtool/execution_api/local')
-rw-r--r--test/buildtool/execution_api/local/local_api.test.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/buildtool/execution_api/local/local_api.test.cpp b/test/buildtool/execution_api/local/local_api.test.cpp
index 94b9bf75..5904eb4f 100644
--- a/test/buildtool/execution_api/local/local_api.test.cpp
+++ b/test/buildtool/execution_api/local/local_api.test.cpp
@@ -159,3 +159,16 @@ TEST_CASE("LocalAPI: Collect file and directory symlinks", "[execution_api]") {
TestSymlinkCollection(api_factory, {});
}
+
+TEST_CASE("LocalAPI: Run in different output path modes", "[execution_api]") {
+ auto const storage_config = TestStorageConfig::Create();
+ auto const storage = Storage::Create(&storage_config.Get());
+ auto const local_exec_config = CreateLocalExecConfig();
+ // pack the local context instances to be passed to LocalApi
+ LocalContext const local_context{.exec_config = &local_exec_config,
+ .storage_config = &storage_config.Get(),
+ .storage = &storage};
+ FactoryApi api_factory(&local_context);
+
+ TestOutputPathModes(api_factory, {});
+}