Skip to content

test(unikernels): add unit tests for Mirage#647

Open
r0hansaxena wants to merge 1 commit into
urunc-dev:mainfrom
r0hansaxena:test/mirage
Open

test(unikernels): add unit tests for Mirage#647
r0hansaxena wants to merge 1 commit into
urunc-dev:mainfrom
r0hansaxena:test/mirage

Conversation

@r0hansaxena
Copy link
Copy Markdown

Description

Adds unit tests for the Mirage unikernel backend, covering SupportsBlock, SupportsFS, MonitorNetCli, MonitorBlockCli, MonitorCli, CommandString and Init. Tests verify that hvt/spt monitors return the correct --net:service and --net-mac:service flags while other monitors return empty strings, that block passthrough uses the fixed storage ID with only the first device, and that Init correctly formats the --ipv4 address prefix and skips network setup when no mask is provided.

Related issues

How was this tested?

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

LLM usage

LLM assisted with locating coverage gaps only. All code was written manually and tested locally.

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 9, 2026

Deploy Preview for urunc canceled.

Name Link
🔨 Latest commit 0b98959
🔍 Latest deploy log https://app.netlify.com/projects/urunc/deploys/69fe9db0ce774c00084ca910

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