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
+33
View File
@@ -0,0 +1,33 @@
# Test Case: Packed prefix table
**Test ID**: TC079-packed-prefix-table
**Fixture**: `basic.erofs`
## Objective
Verify a non-plain prefix table carried by the packed inode generated by
erofs-utils 1.8.6.
## Layout qualification
```sh
dump.erofs -s "$run/images/basic.erofs"
python3 tests/g4_fixtures.py verify --output "$run"
```
Require `xattr_prefix_count=2`, nonzero `packed_nid`, prefix start 0, user
record `(base=1, infix=repo22.application.component.)`, trusted record
`(base=4, infix=repo22.trusted.deep.)`, and matching image hash.
## Guest observations
```sh
getextattr -qq -x user repo22.application.component.setting \
/mnt/repo22-g4/prefix-user-2
getextattr -qq -x system trusted.repo22.trusted.deep.setting \
/mnt/repo22-g4/prefix-trusted-2
stat -f 'mode=%Sp inode=%i' /mnt/repo22-g4/prefix-user-2 \
/mnt/repo22-g4/prefix-trusted-2
```
Both values must end in `-2`; cleanup must be empty.