Add QEMU-driven integration test harness#52
Merged
Conversation
Shell-based test orchestrator that builds nbc, installs an image to a virtual disk via `nbc install --via-loopback`, boots a QEMU VM, and runs tiered guest test scripts over SSH: - Tier 1: Boot health (systemd, mounts, kernel cmdline) - Tier 2: /etc overlay persistence - Tier 3: A/B partition layout validation - Tier 4: A/B update via `nbc update` Also includes: - Bump Go from 1.24 to 1.26 (go.mod, CI, Dockerfile) - Fix golangci-lint staticcheck issues - CI workflow for manual QEMU test dispatch Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
73abfee to
9348277
Compare
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
test/infrastructureNew files
tests/lib/vm.shtests/lib/ssh.shtests/nbc-qemu-test.shtests/tests/01-boot.shtests/tests/02-etc-overlay.shtests/tests/03-ab-layout.shtests/tests/04-update.sh.github/workflows/test-qemu.ymlUsage
Requires root, KVM, and OVMF firmware.
Test plan
make test-qemu IMAGE=ghcr.io/frostyard/snow:latestlocally with KVMworkflow_dispatchon GitHub Actions to verify CI workflow🤖 Generated with Claude Code