test code v1
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
# Test Case: Directory without dot_omitted
|
||||
|
||||
**Test ID**: TC027-dot-omitted-without
|
||||
|
||||
## Objective
|
||||
|
||||
Verify a bit-4-clear directory reads explicit on-disk `.` and `..` entries.
|
||||
|
||||
## Fixture
|
||||
|
||||
Use `images/compact.erofs` and `/dotdir`. Structured evidence asserts bit 4 is
|
||||
clear and names are `.,..,child.txt`; production `dump.erofs --ls` also
|
||||
qualifies this baseline.
|
||||
|
||||
## Procedure
|
||||
|
||||
Host:
|
||||
|
||||
```sh
|
||||
dump.erofs --ls --path=/dotdir /work/build/repo22-g1/images/compact.erofs
|
||||
```
|
||||
|
||||
Guest after mount:
|
||||
|
||||
```sh
|
||||
stat -f 'ino=%i nlink=%l mode=%p' "$mnt/dotdir"
|
||||
ls -lai "$mnt/dotdir"
|
||||
cmp /tmp/repo22-g1/source/compact/dotdir/child.txt "$mnt/dotdir/child.txt"
|
||||
```
|
||||
|
||||
## Expected Results
|
||||
|
||||
- Host inspection and FreeBSD listing both contain explicit `.` and `..`.
|
||||
- Child data matches the source, directory attributes are valid, and cleanup
|
||||
succeeds.
|
||||
Reference in New Issue
Block a user