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/bazel/bazel_api.test.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'test/buildtool/execution_api/bazel/bazel_api.test.cpp') 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); +} -- cgit v1.2.3