Subject: [PATCH] tests: add basic smoke/integration test script

Aayushmaan Chakraborty aayushmaan.chakraborty at gmail.com
Thu Mar 5 00:33:37 AEDT 2026


Hi Gao Xiang and linux-erofs team,

The repository currently lacks any automated smoke or integration tests.

This patch adds a simple, self-contained bash script (tests/smoke.sh) that
verifies the primary userspace workflow:

- mkfs.erofs image creation (uncompressed)
- fsck.erofs integrity check
- erofsfuse FUSE mount
- Basic content verification
- Clean unmount and full cleanup

Features:
- Checks for required binaries upfront
- Fails fast with clear error messages
- Uses trap for cleanup on exit or failure
- Tested locally on Debian-based Chromebook (Crostini)

Happy to extend it (compressed variant, error cases, CI hooks, etc.) or
adjust as needed.

Patch attached.

Thank you!

Best regards,
Aayushmaan Chakraborty
GitHub: Aayushmaan-24
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linux-erofs/attachments/20260304/9dbfb211/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-basic-smoke-test.patch
Type: application/octet-stream
Size: 4026 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linux-erofs/attachments/20260304/9dbfb211/attachment.obj>


More information about the Linux-erofs mailing list