test code v1

This commit is contained in:
2026-08-13 10:44:59 +02:00
commit f3b1165f19
301 changed files with 37885 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
# Test Case: Extended Inode Decoding
**Test ID**: TC023-extended-inode-normal
## Objective
Verify a real 64-byte extended regular inode, including size, full-width
metadata, timestamps, and source-exact content.
## Fixture
Use `images/extended.erofs` and `source/extended/large-file.bin`.
`fixture-evidence.txt` records the NID, byte offset, size, and `inode_size=64`.
## Procedure
```sh
stat -f 'ino=%i size=%z mode=%p nlink=%l mtime=%m ctime=%c blocks=%b' "$mnt/large-file.bin"
cmp /tmp/repo22-g1/source/extended/large-file.bin "$mnt/large-file.bin"
sha256 /tmp/repo22-g1/source/extended/large-file.bin "$mnt/large-file.bin"
```
## Expected Results
- The file reports the evidence/source size, regular `0644`, link count 1,
deterministic timestamps, and a 64-byte on-disk inode.
- Full source compare and SHA256 match; cleanup succeeds.