From 150d68be118798defc2616ec5f01cf230255d1db Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 19 Jan 2026 10:59:21 -0600 Subject: Add automated sanity test for ISO verification New scripts/sanity-test.sh: - Boots ISO in headless QEMU - Waits for SSH availability - Runs 13 automated verification tests: - ZFS module loaded and working - Custom scripts present (zfsrollback, zfssnapshot, etc.) - fzf installed - LTS kernel running - archsetup directory present - Reports pass/fail with summary - Fully automated - no human input required Updated build-release to use automated sanity test instead of manual verification prompt. --- scripts/build-release | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) (limited to 'scripts/build-release') diff --git a/scripts/build-release b/scripts/build-release index 0fc3693..f1cbe1e 100755 --- a/scripts/build-release +++ b/scripts/build-release @@ -79,28 +79,13 @@ build_iso() { find_iso } -# Run sanity test in QEMU +# Run sanity test in QEMU (automated) sanity_test() { - step "Sanity Test" - info "Booting ISO in QEMU for verification..." - info "Please verify:" - echo " 1. System boots to login prompt" - echo " 2. ZFS module loads (run 'zpool status' or 'lsmod | grep zfs')" - echo " 3. Custom scripts are present (ls /usr/local/bin/)" - echo "" - - # Start QEMU in background - "$SCRIPT_DIR/test-vm.sh" & - QEMU_PID=$! - - echo "" - read -p "Press Enter once you've verified the ISO works (or Ctrl+C to abort)... " + step "Sanity Test (Automated)" - # Kill QEMU if still running - if kill -0 $QEMU_PID 2>/dev/null; then - info "Shutting down test VM..." - kill $QEMU_PID 2>/dev/null || true - wait $QEMU_PID 2>/dev/null || true + if ! "$SCRIPT_DIR/sanity-test.sh"; then + error "Sanity test failed!" + exit 1 fi info "Sanity test passed!" -- cgit v1.2.3