Skip to contentSkip to conversation

erofs-utils: tests: add test for blobdev block map support

PATCH New Nithurshen 1 participant 1 message Mar 19

lore
Share & tools
lore

Nithurshen

author
#0 lore raw

PATCH 1/1 erofs-utils: tests: add test for blobdev block map support

Recent changes to mkfs.erofs enabled the use of the block map chunk format in conjunction with extra blob devices.

Add a test case to ensure this functionality works as expected and to prevent future regressions. The test creates a dummy source directory, formats it using --blobdev and -E force-inode-blockmap, extracts the resulting image using fsck.erofs, and performs a strict diff to verify that the data mapped to the external blob device is read correctly without corruption.

---
 tests/Makefile.am   |  3 +++
 tests/erofs/028     | 48 +++++++++++++++++++++++++++++++++++++++++++++
 tests/erofs/028.out |  2 ++
 3 files changed, 53 insertions(+)
 create mode 100755 tests/erofs/028
 create mode 100644 tests/erofs/028.out
tests/Makefile.am +3 -0
index fe7fb47..03c6212 100644
@@ -119,6 +119,9 @@ TESTS += erofs/026
 # 027 - ensure that uncompressed filesystems should not have LZ4_0PADDING set
 TESTS += erofs/027
 
+# 028 - test mkfs with block map for blob devices
+TESTS += erofs/028
+
 EXTRA_DIST = common/rc erofs
 
 clean-local: clean-local-check
tests/erofs/028 new file +48 -0

49 lines not on this page · raw message

tests/erofs/028.out new file +2 -0
new file mode 100644
index 0000000..2615f73
@@ -0,0 +1,2 @@
+QA output created by 028
+Silence is golden
Signature · 1 line
2.43.0