From 24ad2ce7d070ae684159b6445981017dd7a40f8a Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 14 Aug 2023 10:00:29 +0200 Subject: ArchiveOps: Add proper autodetection option for tarballs We shouldn't exclude the possibility of receiving uncompressed tarballs as repositories in just-mr. Therefore, we introduce an explicit type that performs the autodetection (default behaviour in just-mr). This is done to also be more in line with our implementation which allows the granular handling of various archive types (currently used only for testing purposes). --- test/other_tools/utils/archive_usage.test.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/other_tools/utils/archive_usage.test.cpp') diff --git a/test/other_tools/utils/archive_usage.test.cpp b/test/other_tools/utils/archive_usage.test.cpp index 68fe436d..59b09d8c 100644 --- a/test/other_tools/utils/archive_usage.test.cpp +++ b/test/other_tools/utils/archive_usage.test.cpp @@ -224,6 +224,8 @@ void enable_write_format_and_filter(archive* aw, ArchiveType type) { REQUIRE(archive_write_set_format_pax_restricted(aw) == ARCHIVE_OK); REQUIRE(archive_write_add_filter_xz(aw) == ARCHIVE_OK); } break; + case ArchiveType::TarAuto: + return; // unused } } @@ -247,6 +249,8 @@ void enable_read_format_and_filter(archive* ar, ArchiveType type) { REQUIRE(archive_read_support_format_tar(ar) == ARCHIVE_OK); REQUIRE(archive_read_support_filter_xz(ar) == ARCHIVE_OK); } break; + case ArchiveType::TarAuto: + return; // unused } } -- cgit v1.2.3