Add mariposa_data_capture regression smoke test - #290
Open
VedantMadane wants to merge 1 commit into
Open
Conversation
Introduce a small kernel path gated on data_capture.regression_smoke that writes known u32 samples to the capture device, plus a userspace regression test that opens /dev/vdg and checks for the format magic and those CBOR values. Wire the suite into the regression Makefile/Nix build and document a host-side decode example. Fixes ldos-project#283 Signed-off-by: Vedant Madane <6527493+VedantMadane@users.noreply.github.com>
Contributor
|
This appears to be AI slop. If you would actually like to be involved in the project please fully audit your code and match the style and expectations of real human written code. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an end-to-end regression for
mariposa_data_capture: a small kernel path writes known samples to the capture device, and a userspace test decodes the on-disk format.Changes
data_capture.regression_smoke=1, writeu32samples42,100,200into a capture file namedregression.smoke(via existingwrite_values/ sync APIs)test/initramfs/src/regression/mariposa_data_capturesuite opens/dev/vdg, findsMARIPOSALDOSDATAmagic, and checks for the CBOR sample bytesAUTO_TEST=regressionNotes
write_values)Test plan
make run AUTO_TEST=regression(or equivalent) and confirm the new suite passesdecode_mariposa_data.py test/initramfs/build/capture.img --preview 5after a smoke runFixes #283