summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-08-14 10:00:29 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-08-14 15:09:11 +0200
commit24ad2ce7d070ae684159b6445981017dd7a40f8a (patch)
tree4eeea470fda336146fdbb92b993a6b0da84d734c /test
parent26fe1ac82a8437b292e5c17e791c02d5a6813a26 (diff)
downloadjustbuild-24ad2ce7d070ae684159b6445981017dd7a40f8a.tar.gz
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).
Diffstat (limited to 'test')
-rw-r--r--test/other_tools/utils/archive_usage.test.cpp4
1 files changed, 4 insertions, 0 deletions
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
}
}