Marcus Holland-Moritz
0ac4ba088f
test: basic file_access tests
2023-12-31 16:18:43 +01:00
Marcus Holland-Moritz
6ac70d64bf
fix(file_access): remove unnecessary special casing for windows
2023-12-31 16:18:11 +01:00
Marcus Holland-Moritz
22af434200
chore: update gtest to v1.14.0
2023-12-30 20:39:20 +01:00
Marcus Holland-Moritz
6d4153ca87
chore: add create_random_string() test helper
2023-12-30 20:13:17 +01:00
Marcus Holland-Moritz
9eb23bd7f3
chore: add throwing close() overload
2023-12-30 20:11:45 +01:00
Marcus Holland-Moritz
4d1de7ddf2
test: add inode dumping test
2023-12-30 17:16:04 +01:00
Marcus Holland-Moritz
86f0af2058
feat(scanner): use file_access abstraction for dumping inodes
2023-12-30 17:15:51 +01:00
Marcus Holland-Moritz
61db8cec2b
chore: add open_output() to file_access
2023-12-30 17:08:22 +01:00
Marcus Holland-Moritz
8a61697799
chore(inode_manager): remove unused include
2023-12-30 16:47:15 +01:00
Marcus Holland-Moritz
46e6fbb721
chore: use file_access abstraction in builtin_script
2023-12-30 16:45:18 +01:00
Marcus Holland-Moritz
619abd8dc1
chore: add throwing file_access methods for convenience
2023-12-30 16:44:45 +01:00
Marcus Holland-Moritz
ac3248f966
feat: add getenv() abstraction to os_access
2023-12-30 15:56:21 +01:00
Marcus Holland-Moritz
eb60ed1ea5
test: add proper --chmod=norm test
2023-12-30 15:41:27 +01:00
Marcus Holland-Moritz
6a57d6243e
refactor: introduce mkdwarfs_tester and simplify tests
2023-12-30 15:41:27 +01:00
Marcus Holland-Moritz
a8646a7d79
feat: add mode_string() and perm_string() to inode_view
2023-12-30 14:54:05 +01:00
Marcus Holland-Moritz
064c7c74a6
refactor: move mode string implementation to file_stat module
2023-12-30 14:54:05 +01:00
Marcus Holland-Moritz
14038dcfe7
chore: replace rogue throw in mkdwarfs_main
2023-12-30 12:22:35 +01:00
Marcus Holland-Moritz
33ea3bda7a
test: add tests for --input-list
2023-12-30 00:54:01 +01:00
Marcus Holland-Moritz
84b5b6f32a
refactor: add current_path() abstraction to os_access
2023-12-30 00:47:11 +01:00
Marcus Holland-Moritz
709c6bb01d
refactor: make os_access and file_access settable in test_iolayer
2023-12-30 00:32:30 +01:00
Marcus Holland-Moritz
9274f7e461
refactor: input stream abstraction and wide char support
2023-12-29 23:34:20 +01:00
Marcus Holland-Moritz
9753a4127c
chore(segmenter): remove unused code
2023-12-29 22:50:32 +01:00
Marcus Holland-Moritz
b8476bc6a2
chore(inode): remove unused files() method
2023-12-29 22:28:01 +01:00
Marcus Holland-Moritz
5404e7a9f2
chore(inode): remove unused add_chunk() method
2023-12-29 22:26:02 +01:00
Marcus Holland-Moritz
ae43f112c3
test: add terminal tests
2023-12-29 22:23:02 +01:00
Marcus Holland-Moritz
6d9bb5a75e
test(util): add tests for parse_(time|size)_with_unit
2023-12-29 22:04:54 +01:00
Marcus Holland-Moritz
abbbadd30b
fix(util): improve error handling in parse_(size|time)_with_unit
2023-12-29 22:04:33 +01:00
Marcus Holland-Moritz
b87db2d15a
test: add dwarfsextract perfmon test
2023-12-29 00:01:47 +01:00
Marcus Holland-Moritz
fe661174d5
refactor: move locale setup code to util module
2023-12-29 00:01:20 +01:00
Marcus Holland-Moritz
dbdf7e2296
refactor: remove unused code
2023-12-28 21:12:12 +01:00
Marcus Holland-Moritz
fa60881ad9
fix: allow everything to build/test without FLAC support
2023-12-28 20:57:44 +01:00
Marcus Holland-Moritz
17295ffdad
test: exercise --chmod
2023-12-28 20:37:54 +01:00
Marcus Holland-Moritz
80dc5b0c8e
test(dwarfs): add cache tidying options to tools test
2023-12-28 20:34:05 +01:00
Marcus Holland-Moritz
fea0352f67
test: test command line tool usage / help
2023-12-28 19:24:46 +01:00
Marcus Holland-Moritz
85be65e6f6
refactor: rename categorizer_test to tool_main_test
2023-12-28 19:02:52 +01:00
Marcus Holland-Moritz
1ef2b61207
refactor: add canonical() to os_access
2023-12-28 19:02:52 +01:00
Marcus Holland-Moritz
1f8ad8fbc7
test: add test_file_access abstraction
2023-12-28 19:02:52 +01:00
Marcus Holland-Moritz
b81242d6b6
refactor(mkdwarfs): abstract out file creation
2023-12-28 19:02:52 +01:00
Marcus Holland-Moritz
e8238c52f7
refactor(mkdwarfs): make output file logic easier to abstract
2023-12-28 19:02:52 +01:00
Marcus Holland-Moritz
f41e6ac31f
refactor: const os_access everywhere
2023-12-28 19:02:52 +01:00
Marcus Holland-Moritz
7b2029674d
refactor: simplify calling *_main() from tests even more
2023-12-28 19:02:52 +01:00
Marcus Holland-Moritz
c5c7b633c8
test: simple template for categorizer test (to be extended)
2023-12-28 19:02:52 +01:00
Marcus Holland-Moritz
f90f0faec0
chore: add test_iolayer helper to simplify iolayer creation
2023-12-28 19:02:52 +01:00
Marcus Holland-Moritz
56191f34d0
refactor: retire deprecated stream_logger ctor
2023-12-28 19:02:52 +01:00
Marcus Holland-Moritz
676e46dd60
chore: add another *_main overload that always accepts utf8 args
...
This is mostly for convenient use from within the test suite.
2023-12-28 19:02:03 +01:00
Marcus Holland-Moritz
67a4de0d52
fix: don't call check_section() in filesystem ctor (fixes gh #183 )
...
This regression was introduced in the v0.7.3 release and caused each
section header to be read from the filesystem image at mount time,
defeating the purpose of the section index.
2023-12-28 19:02:03 +01:00
Marcus Holland-Moritz
dc904ba730
test: add regression test for gh #183
2023-12-28 19:02:03 +01:00
Marcus Holland-Moritz
148cee8400
refactor(dwarfs): use userdata references instead of pointers
2023-12-28 19:02:03 +01:00
Marcus Holland-Moritz
298e23973a
refactor: more iolayer abstraction
2023-12-28 19:02:03 +01:00
Marcus Holland-Moritz
ebc31762d9
refactor(file_stat): include the correct header
2023-12-26 12:05:47 +01:00