Skip to content

test(hypervisors): add unit tests for Firecracker#625

Open
r0hansaxena wants to merge 1 commit intourunc-dev:mainfrom
r0hansaxena:test/firecracker
Open

test(hypervisors): add unit tests for Firecracker#625
r0hansaxena wants to merge 1 commit intourunc-dev:mainfrom
r0hansaxena:test/firecracker

Conversation

@r0hansaxena
Copy link
Copy Markdown

Description

Adds unit tests for the Firecracker VMM backend, covering BuildExecCmd and the interface methods (UsesKVM, SupportsSharedfs, Path, Ok, PreExec). Tests verify the argv layout and the JSON config written to /tmp/fc.json, memory fallback, seccomp toggle, networking, drives with rootfs flagging, initrd path priority and the vsock device.

Related issues

How was this tested?

All 6 unit tests pass locally. Full package tests pass. Linter passes (make lint, 0 issues).

LLM usage

LLM was used to assist with writing the tests. All code was reviewed and tested locally before submission.

Checklist

  • I have read the contribution guide.
  • The linter passes locally (make lint).
  • The e2e tests of at least one tool pass locally (make test_ctr, make test_nerdctl, make test_docker, make test_crictl).
  • If LLMs were used: I have read the llm policy.

Signed-off-by: r0hansaxena <rohansxn8772@gmail.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented May 5, 2026

Deploy Preview for urunc canceled.

Name Link
🔨 Latest commit 642ef78
🔍 Latest deploy log https://app.netlify.com/projects/urunc/deploys/69f9b30279602b000840f66f

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.

1 participant