diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2025-05-09 14:55:05 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-05-19 12:33:06 +0200 |
commit | c1340f6124f288cad8f800c94e5ff34259244b60 (patch) | |
tree | c19aafdfe5e216e50026f2ee360c24c05fe130c8 /test/buildtool/execution_api/local/local_api.test.cpp | |
parent | 350182400feccc99aba9fbf290d6f7249adb3a21 (diff) | |
download | justbuild-c1340f6124f288cad8f800c94e5ff34259244b60.tar.gz |
LocalAction: Fix collection of directory symlink
(cherry-picked from fe4006fce755432b1ae3a273873f3649512c7f94)
Diffstat (limited to 'test/buildtool/execution_api/local/local_api.test.cpp')
-rw-r--r-- | test/buildtool/execution_api/local/local_api.test.cpp | 13 |
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 ec065cb7..94b9bf75 100644 --- a/test/buildtool/execution_api/local/local_api.test.cpp +++ b/test/buildtool/execution_api/local/local_api.test.cpp @@ -146,3 +146,16 @@ TEST_CASE("LocalAPI: Create directory prior to execution", "[execution_api]") { TestCreateDirPriorToExecution(api_factory, {}, /*is_hermetic=*/true); } + +TEST_CASE("LocalAPI: Collect file and directory symlinks", "[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); + + TestSymlinkCollection(api_factory, {}); +} |