Context: We already have buck2 run //sys:loader-qemu. Need a deterministic "does a boot
still work?" signal on every PR.
Scope:
- Add
sys/kernel/src/tests/smoke.rsthat runs a fixed init sequence, logs a sentinel string to UART, and callssbi::shutdown()with exit code 0. - Add
build/qemu_test.bzlmacro wrappingqemu-system-riscv64 -nographic -serial stdio, capturing stdout, grepping for the sentinel, timing out after 60s. - Wire into
test-qemu-riscv64CI job. - Target <2 minute wall time.
Acceptance: CI job boots the kernel to sentinel on every PR.