1.3 KiB
1.3 KiB
Test Case: DEFLATE Compression Level 6
Test ID: TC103-deflate-level6
G5 fixture contract: Use G5-MANUAL-SETUP.md.
Its generated paths, source comparisons, structured corruption offsets, and
cleanup rules supersede placeholder examples in this file.
Category: Compression
Priority: High
Regression: None
Objective
Verify DEFLATE compressed data path with level 6 (default) compression.
Preconditions
- EROFS image created with DEFLATE level 6:
mkfs.erofs -zdeflate,level=6 test.img src/ - Test files with various entropy levels
- FreeBSD 13.0+ with zlib support
Test Steps
- Create image with DEFLATE level 6 compression
- Attach and mount:
unit=$(mdconfig -a -t vnode -f test.img); mount -t erofs -o ro /dev/${unit} /mnt - Read text files, binaries, and random data
- Verify all content matches original
- Test partial reads at various offsets
Expected Results
- All files decompress correctly
- Better compression ratio than level 1
- Random access works at any offset
- Stable decompression performance
Verification Method
- SHA256 checksums match for all files
- Compression ratio >= level 1
- No decompression failures
- Random read correctness verified
Cleanup
umount /mnt
mdconfig -d -u "${unit}"
Notes
Tests feature 58: DEFLATE compressed data path with balanced compression.