test: on-hardware SMP self-test (revoke/kill must stop every hart) + make test-qemu

This commit is contained in:
2026-10-27 12:54:42 +01:00
parent 909b3f0503
commit b814bd9570
10 changed files with 262 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/bash
set -euo pipefail
IMG="boot.img"
IMG="${IMG:-boot.img}"
IMG_SIZE_KB=4096
TARGET="riscv64gc-unknown-none-elf"
BUILD_DIR="target/${TARGET}/release"
@@ -30,6 +30,10 @@ copy log-server "log.elf"
copy permission-manager "permis.elf"
copy storage-qemu "storage.elf"
copy session-server "session.elf"
# Only the test image: its presence makes init run the SMP self-test.
if [ -n "${SMPTEST:-}" ]; then
copy smptest "smptest.elf"
fi
echo ""
echo "Disk contents:"