157 Commits

Author SHA1 Message Date
Marcus Holland-Moritz
de3c92f5da test: refactor tool_main_test into smaller compilation units 2025-08-29 16:03:12 +02:00
Marcus Holland-Moritz
b64d186a26 refactor: factor out helpers to simplify/split tool_main_test.cpp 2025-08-29 16:03:12 +02:00
Marcus Holland-Moritz
a8d8e0ad84 test(mkdwarfs): test --rebuild-metadata + --no-category-names 2025-08-28 00:28:59 +02:00
Marcus Holland-Moritz
3642ecab61 test(mkdwarfs): --no-create-timestamp / --no-history-timestamps 2025-08-27 22:41:03 +02:00
Marcus Holland-Moritz
1e120f6866 test(mkdwarfs): --recompress with metadata-dependent compressors 2025-08-27 21:47:02 +02:00
Marcus Holland-Moritz
7a34e64488 refactor(string): make split_to actually work 2025-08-27 20:59:22 +02:00
Marcus Holland-Moritz
369f9d6be0 test(mkdwarfs): block size change with metadata dependent compression 2025-08-27 20:59:22 +02:00
Marcus Holland-Moritz
e3bf6bbe01 test: add chmod error tests 2025-08-27 14:35:59 +02:00
Marcus Holland-Moritz
ce64acc11d feat: support --chmod with --rebuild-metadata 2025-08-27 14:35:34 +02:00
Marcus Holland-Moritz
2d41727942 chore: re-enable i386 test 2025-08-25 17:34:55 +02:00
Marcus Holland-Moritz
8893513c8f refactor: factor out fsst components 2025-08-19 17:38:38 +02:00
Marcus Holland-Moritz
5e487f9860 chore: speed up some tests when running under qemu 2025-08-18 21:19:33 +02:00
Marcus Holland-Moritz
f56fbd15de chore: speed up mkdwarfs_progress_test 2025-08-18 21:00:37 +02:00
Marcus Holland-Moritz
6f476e1dc0 test: mark change_block_size test as slow 2025-08-18 19:44:54 +02:00
Marcus Holland-Moritz
9e97d5cf9a feat(mkdwarfs): add --no-metadata-version-history 2025-08-18 14:50:33 +02:00
Marcus Holland-Moritz
5f08e4330a test: run some dwarfsextract tests with debug logging 2025-08-17 23:51:19 +02:00
Marcus Holland-Moritz
7973a69729 test: force test collisions in segmenter 2025-08-17 21:01:55 +02:00
Marcus Holland-Moritz
03e54a490c test: --change-block-size tests 2025-08-17 21:01:55 +02:00
Marcus Holland-Moritz
8549136da4 test: add lz_synthetic_generator for more interesting random data 2025-08-17 21:01:55 +02:00
Marcus Holland-Moritz
938677302e refactor: use file_access abstraction in filesystem_extractor 2025-08-17 12:58:39 +02:00
Marcus Holland-Moritz
19fcdbdd03 feat(dwarfsextract): support --format-filters and --format=auto 2025-08-17 12:58:39 +02:00
oxalica
bd1c068f3e feat(dwarfsextract): add --format-options
This allows users to pass custom libarchive options of the specific output
format. Eg. `mtree:sha256` or `zstd:compression-level=9`.
2025-08-17 12:58:39 +02:00
Marcus Holland-Moritz
e5e0a36ea5 feat: use sane per-category defaults for rewriting 2025-08-17 12:58:39 +02:00
Marcus Holland-Moritz
3934944cfb test: add metadata rebuilding tests 2025-08-17 12:58:39 +02:00
Marcus Holland-Moritz
a1b945cce4 chore: skip slow tests for additional cross-compiled builds 2025-07-30 22:27:20 +02:00
Marcus Holland-Moritz
5027c12f78 test: skip test that is flaky on i386 2025-07-28 22:44:45 +02:00
Marcus Holland-Moritz
3a49825eca fix(rewrite_filesystem): add history unless --no-history is given 2025-05-14 06:50:13 +02:00
Marcus Holland-Moritz
f01cf2c76a fix(filesystem_writer): segfault on bad_compression_ratio_error
When recompressing a filesystem where some blocks cannot be compressed
using the selected algorithm because of a `bad_compression_ratio_error`,
the resulting `block` was left empty after the refactoring done in
06f8728cc. It's a really easy fix, pretty much just doing what the code
did before the refactor: initialize `block` with the decompressed data
before attempting to compress it. Since `clang-format` reformatted the
whole lambda after the change, I've pulled the lamdba body out into a
separate function, which makes this change much bigger than it is.
2025-05-14 06:47:32 +02:00
Marcus Holland-Moritz
7b0b1cdc0c refactor: introduce and use safe_localtime() 2025-05-14 06:47:32 +02:00
Marcus Holland-Moritz
24f87bbeaa chore: drop DWARFSEXTRACT_MINIMAL completely
Extracting by pattern is a mandatory feature for the `fuse-extract` use
case, so no point in being able to disable this.
2025-04-21 17:53:56 +02:00
Marcus Holland-Moritz
e6ae08475a feat: allow disabling advanced features in dwarfs-fuse-extract 2025-04-13 22:14:57 +02:00
Marcus Holland-Moritz
1675b90d71 test: rename filter_test to tool_filter_test for uniqueness
This is essential when building a monolithic test as it would otherwise
collide with the `filter_test` from `dwarfs_test.cpp`.
2025-04-13 16:29:09 +02:00
Marcus Holland-Moritz
d8a8d3250c test: test fragment order 2025-04-08 13:12:25 +02:00
Marcus Holland-Moritz
6d0e37abab test: hotness categorizer 2025-04-08 12:38:09 +02:00
Marcus Holland-Moritz
440299eb26 fix(tool_main_test): don't rely on having support for LZ4 compression 2025-04-07 21:32:26 +02:00
Marcus Holland-Moritz
d786083d3d chore: move everything but the writer code from GPLv3 to MIT license 2025-04-07 21:32:26 +02:00
Marcus Holland-Moritz
0f0249b1ee fix(scanner): handle absolute paths in --input-list (fixes gh #259) 2025-03-31 14:10:38 +02:00
Marcus Holland-Moritz
45098e7913 chore: reformat code using new .clang-format 2025-03-17 07:15:55 +01:00
Marcus Holland-Moritz
2ff7602192 feat: support extracting only files matching glob patterns (fixes gh #243) 2025-03-14 15:07:49 +01:00
Marcus Holland-Moritz
c427808bb1 feat: use glob-to-regex to simplify and enhance rule_based_entry_filter 2025-03-14 15:07:49 +01:00
Marcus Holland-Moritz
56bd23adf4 test: avoid shadowing class member 2025-03-14 15:07:49 +01:00
Marcus Holland-Moritz
e75fa244d8 test: test dwarfsextract more thoroughly 2025-03-14 15:07:49 +01:00
Marcus Holland-Moritz
1f2f6b08b9 test: add dwarfsextract archive_error test 2025-03-14 15:07:49 +01:00
Marcus Holland-Moritz
90852d622b test: more inode_info tests 2025-03-14 15:07:49 +01:00
Marcus Holland-Moritz
49adb18131 refactor(filesystem_v2): char const* -> string_view 2025-03-14 15:07:49 +01:00
Marcus Holland-Moritz
05f788f6f0 feat(filesystem_v2): return dir_entry_view from find() 2025-03-14 15:07:49 +01:00
Marcus Holland-Moritz
436949a98d feat(filesystem_v2): return dir_entry_view from readdir() 2025-03-14 15:07:49 +01:00
Marcus Holland-Moritz
302af7497e feat(metadata): add directory_iterator 2025-03-14 13:39:25 +01:00
Marcus Holland-Moritz
101fbd6313 test: enforce metadata consistency checks by default 2024-11-21 17:24:06 +01:00
Marcus Holland-Moritz
969d527391 chore: remove unused stream members in test_terminal 2024-08-15 16:42:17 +02:00