Skip to content

Add mariposa_data_capture regression smoke test - #290

Open
VedantMadane wants to merge 1 commit into
ldos-project:mainfrom
VedantMadane:test/issue-283-mariposa
Open

Add mariposa_data_capture regression smoke test#290
VedantMadane wants to merge 1 commit into
ldos-project:mainfrom
VedantMadane:test/issue-283-mariposa

Conversation

@VedantMadane

Copy link
Copy Markdown

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

  • Kernel: when data_capture.regression_smoke=1, write u32 samples 42, 100, 200 into a capture file named regression.smoke (via existing write_values / sync APIs)
  • Userspace: new test/initramfs/src/regression/mariposa_data_capture suite opens /dev/vdg, finds MARIPOSALDOSDATA magic, and checks for the CBOR sample bytes
  • Wire suite into regression Makefile + Nix package list
  • Enable the kcmd flag for AUTO_TEST=regression
  • Document host-side decode examples in the component rustdoc

Notes

  • Uses as little new kernel code as possible (no custom OQueue plumbing; reuses write_values)
  • Userspace test skips cleanly if the capture device or magic is absent (manual boots without the kcmd flag)

Test plan

  • make run AUTO_TEST=regression (or equivalent) and confirm the new suite passes
  • Optional: decode_mariposa_data.py test/initramfs/build/capture.img --preview 5 after a smoke run

Fixes #283

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>
@VedantMadane
VedantMadane requested a review from a team as a code owner August 23, 2026 22:14
@arthurp

arthurp commented Aug 24, 2026

Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create regression test for mariposa_data_capture

2 participants