Testing
The host tests use RAM disks and do not need the board or any register access. They compile the real block layer, VFS, FatFs, lwext4 and both storage-proxy engines.
Running the tests
Section titled “Running the tests”cd softwarecmake --preset hostcmake --build build/hostctest --test-dir build/host --output-on-failureThe host build requires the FatFs, lwext4 and LVGL submodules; LVGL is used by ui_sim.
Suites
Section titled “Suites”storage_proxy_matrix
Section titled “storage_proxy_matrix”Creates three 48 MiB RAM-disk partitions and runs five filesystem mixes:
- FAT32 only;
- exFAT only;
- ext4 only;
- FAT32 + exFAT + ext4;
- ext4 + FAT32 + exFAT.
It covers size boundaries, odd chunk sizes, many files, directories, rename and rmdir,
overwrite/truncate/grow/unlink, Windows-style data-before-entry ordering, selection masks, read-only
propagation and a GPT layout’s _LAYOUT.TXT. It covers all three filesystems and the full-index
engine.
lazy_proxy
Section titled “lazy_proxy”Uses two 64 MiB partitions, one FAT and one ext4, with a directory of 1001 files, a smaller
directory, a huge directory and nested ext4 files. It covers the read path, multi-cluster
directories, bitmap/reservation/tail behaviour, root reports, cache eviction, truncation,
cancellation, write-back and source verification, reload and stop/start.
The lazy suite covers FAT and ext4 only; storage_proxy_matrix is the exFAT coverage.
UI renderer
Section titled “UI renderer”ui_sim is built with the host tests but is not a registered CTest. It renders the real LVGL UI and
interaction states to PPM files in /tmp/ui-*.ppm:
software/build/host/tests/host/ui_simIt is a development tool for checking layout and state changes without the board.
WebAssembly simulator
Section titled “WebAssembly simulator”software/tests/wasm/ compiles the same UI sources with Emscripten. The docs build runs it and the
site mounts it on the overview page. It has no RTOS, card driver or USB host; it
supplies a fixed card fixture and a request emulator.
ci.ymlruns the host tests on every push and pull request.- Its docs job runs on non-master branches: it installs Emscripten and Doxygen, builds the site, the
wasm UI and the API, and runs
npm run check. docs.ymlruns onmaster, builds the same artifacts, checks links and deploys to GitHub Pages.
A change to a driver should add a host test when the code is register-independent. A UI change
should be checked with ui_sim and the browser simulator.