aboutsummaryrefslogtreecommitdiff
path: root/scripts/build-release
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-01-19 10:59:21 -0600
committerCraig Jennings <c@cjennings.net>2026-01-19 10:59:21 -0600
commit150d68be118798defc2616ec5f01cf230255d1db (patch)
treeebc409e054464234f7e79bc231d4393db80d4491 /scripts/build-release
parentb9afe87e1b20fad687c150bd3829db84322dcfc8 (diff)
downloadarchangel-150d68be118798defc2616ec5f01cf230255d1db.tar.gz
archangel-150d68be118798defc2616ec5f01cf230255d1db.zip
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.
Diffstat (limited to 'scripts/build-release')
-rwxr-xr-xscripts/build-release25
1 files changed, 5 insertions, 20 deletions
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!"