anjiahao1 opened a new pull request, #22382:
URL: https://github.com/apache/nuttx/pull/22382
## Summary
Enable the wzipfs write mode in the sim:zipfs configuration:
- CONFIG_FS_ZIPFS_WRITE and CONFIG_FS_ZIPFS_WRITE_DEFLATE enable the
write-only streaming VFS.
- CONFIG_PIPES is needed by the pipe and fd test targets.
- CONFIG_TESTING_CMOCKA and CONFIG_TESTING_WZIPFS build the wzipfs
cmocka tests.
The write-mode section is already documented in
Documentation/os/filesystem/zipfs.rst, so no documentation change is
needed.
Depends-on: apache/nuttx-apps#4144 (adds the TESTING_WZIPFS test app).
## Impact
* Is new feature added? NO - enables the existing wzipfs in a board
configuration.
* Impact on user: NO
* Impact on build: NO - configuration only, no code changes.
* Impact on hardware: NO
* Impact on documentation: NO
* Impact on security: NO
* Impact on compatibility: NO
## Testing
Build host: Linux x86_64, NuttX CI Docker image.
```
tools/configure.sh -a <apps> sim:zipfs
make -j10
```
Run on the sim:
```
nsh> cmocka_wzipfs
[==========] wzipfs: Running 5 test(s).
[ RUN ] test_file_target
[ OK ] test_file_target
[ RUN ] test_pipe_target
[ OK ] test_pipe_target
[ RUN ] test_fd_target
[ OK ] test_fd_target
[ RUN ] test_method_mount_option
[ OK ] test_method_mount_option
[ RUN ] test_method_deflate_persists_across_mkdir
[ OK ] test_method_deflate_persists_across_mkdir
[ PASSED ] 5 test(s).
```
## PR verification
* [x] This PR introduces only one functional change.
* [x] I have updated all required description fields above.
* [x] My PR adheres to Contributing Guidelines and Documentation.
* [ ] My PR is still work in progress (not ready for review).
* [x] My PR is ready for review and can be safely merged into a codebase.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]