From b41c60fd8179fec987f158347111f650924aad47 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Mon, 23 Jun 2025 15:08:01 +0200 Subject: Test: Add test for API output path modes --- test/buildtool/execution_api/local/local_api.test.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/buildtool/execution_api/local/local_api.test.cpp') 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, {}); +} -- cgit v1.2.3