diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2025-06-23 15:08:01 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2025-06-24 14:56:58 +0200 |
commit | b41c60fd8179fec987f158347111f650924aad47 (patch) | |
tree | 61f4addc0ff45fb5d65abe0807015417aae2b579 /test/buildtool/execution_api/bazel/bazel_api.test.cpp | |
parent | bbcc5977f49646941ac35060bb74a27eda5fbd76 (diff) | |
download | justbuild-b41c60fd8179fec987f158347111f650924aad47.tar.gz |
Test: Add test for API output path modes
Diffstat (limited to 'test/buildtool/execution_api/bazel/bazel_api.test.cpp')
-rw-r--r-- | test/buildtool/execution_api/bazel/bazel_api.test.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/buildtool/execution_api/bazel/bazel_api.test.cpp b/test/buildtool/execution_api/bazel/bazel_api.test.cpp index bc147ef5..bfe32f83 100644 --- a/test/buildtool/execution_api/bazel/bazel_api.test.cpp +++ b/test/buildtool/execution_api/bazel/bazel_api.test.cpp @@ -225,3 +225,20 @@ TEST_CASE("BazelAPI: Collect file and directory symlinks", "[execution_api]") { storage_config.Get().CreateTypedTmpDir("test_space")}; TestSymlinkCollection(api_factory, remote_config->platform_properties); } + +TEST_CASE("BazelAPI: Run in different output path modes", "[execution_api]") { + auto storage_config = TestStorageConfig::Create(); + auto remote_config = TestRemoteConfig::ReadFromEnvironment(); + + REQUIRE(remote_config); + REQUIRE(remote_config->remote_address); + auto auth = TestAuthConfig::ReadFromEnvironment(); + REQUIRE(auth); + + FactoryApi api_factory{ + &*remote_config->remote_address, + &*auth, + storage_config.Get().hash_function, + storage_config.Get().CreateTypedTmpDir("test_space")}; + TestOutputPathModes(api_factory, remote_config->platform_properties); +} |