From 052c762d16885b198989e2de164d37f8a8d19462 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Wed, 24 May 2023 14:25:59 +0200 Subject: test: Extend filesystem tests to git repos with symlinks... ...using the new ignore-special tree variant. --- test/buildtool/file_system/git_repo.test.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'test/buildtool/file_system/git_repo.test.cpp') diff --git a/test/buildtool/file_system/git_repo.test.cpp b/test/buildtool/file_system/git_repo.test.cpp index df283c6e..d2c0f1c3 100644 --- a/test/buildtool/file_system/git_repo.test.cpp +++ b/test/buildtool/file_system/git_repo.test.cpp @@ -24,11 +24,11 @@ namespace { auto const kBundlePath = - std::string{"test/buildtool/file_system/data/test_repo.bundle"}; + std::string{"test/buildtool/file_system/data/test_repo_symlinks.bundle"}; auto const kRootCommit = - std::string{"e4fc610c60716286b98cf51ad0c8f0d50f3aebb5"}; -auto const kRootId = std::string{"c610db170fbcad5f2d66fe19972495923f3b2536"}; -auto const kBazId = std::string{"27b32561185c2825150893774953906c6daa6798"}; + std::string{"3a8dc005262e2ea32d48dbe123e1dabe20e039c1"}; +auto const kRootId = std::string{"e00aa80fd1600090930c7ec0b7146028693074bf"}; +auto const kBazId = std::string{"9df184c5a0b324f488176432724deae97adaace8"}; } // namespace @@ -273,6 +273,7 @@ TEST_CASE("Single-threaded fake repository operations", "[git_repo]") { REQUIRE(root_path_non_exist); CHECK(root_path_non_exist->empty()); } + SECTION("Bare repository") { auto bare_repo_path = TestUtils::CreateTestRepo(true); REQUIRE(bare_repo_path); -- cgit v1.2.3