47 lines
1.3 KiB
Markdown
47 lines
1.3 KiB
Markdown
# Test Case: DEFLATE Compression Level 6
|
|
|
|
**Test ID**: TC103-deflate-level6
|
|
|
|
**G5 fixture contract**: Use [G5-MANUAL-SETUP.md](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
|
|
1. Create image with DEFLATE level 6 compression
|
|
2. Attach and mount: `unit=$(mdconfig -a -t vnode -f test.img); mount -t erofs -o ro /dev/${unit} /mnt`
|
|
3. Read text files, binaries, and random data
|
|
4. Verify all content matches original
|
|
5. 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
|
|
```sh
|
|
umount /mnt
|
|
mdconfig -d -u "${unit}"
|
|
```
|
|
|
|
## Notes
|
|
Tests feature 58: DEFLATE compressed data path with balanced compression.
|