2.3 KiB
2.3 KiB
Test Case: Manual Page Accuracy
Test ID: TC111-manpage-accuracy
Category: Documentation
Priority: Low
Regression: None
Objective
Verify that manual pages accurately document all mount options, supported features, and behavior.
Preconditions
- The repository
docs/erofs.5source andREADME.mdare available. - Access to the current module source for cross-reference.
- A FreeBSD 15 guest with the current
erofs.koand a valid image. - Do not assume that a filesystem-specific
mount_erofs(8)exists.
Test Steps
- Confirm whether
/sbin/mount_erofsexists. If it does not, verify the documented generic/sbin/mount -t erofspath directly. - Mount without
-o ro, with-o rw, and with documented standard flags; record the resulting mount flags and write behavior. - Verify every documented filesystem-specific option against
src/super.cand an applicable real image. - Submit an unknown filesystem-specific option and require
nmount(2)to reject it withEINVALwithout leaving a mount. - Cross-reference
README.md,docs/features.md,docs/architecture.md,docs/erofs.5, andtests/TEST-COVERAGE-MATRIX.mdwith current source and qualified manual results. - Validate all examples and SEE ALSO references that apply to the qualified FreeBSD environment.
Expected Results
- The documented generic mount path works without
mount_erofs(8). - Every successful EROFS mount is read-only, including a request containing
-o rw; mutating operations returnEROFS. - Documented filesystem-specific options match the current parser and work on their applicable fixture types.
- Unknown filesystem-specific options return
EINVALand create no mount. - Feature claims match the implementation and qualified coverage.
- Examples and SEE ALSO entries are accurate.
Verification Method
- Record direct command exit status separately from tracing-tool status.
- Verify feature claims against
TEST-COVERAGE-MATRIX.md. - Check documentation against source and actual
/sbin/mount/nmount(2)behavior. - Validate all code examples on their applicable fixture type.
Cleanup
Unmount the test filesystem, detach its md provider, and unload the exact test module. Assert that no EROFS mount, md provider, or EROFS KLD remains.
Notes
Tests feature 61: manual pages accuracy and completeness.