From 25513d9631c182a9b5df5b19cb9450b671e67d39 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Tue, 24 Feb 2026 07:57:34 -0600 Subject: feat: add Makefile targets for manual VM testing Add vm, vm-multi, vm-multi3, vm-boot, and vm-clean targets. Update README to reference make targets instead of raw script invocations. --- README.org | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'README.org') diff --git a/README.org b/README.org index ccf273c..1075020 100644 --- a/README.org +++ b/README.org @@ -43,12 +43,15 @@ Archangel currently uses linux-lts for stability. Choosing linux and linux-zen k # Build the ISO (requires sudo) make build -# Test in a VM +# Launch a VM for interactive testing +make vm # single disk +make vm-multi # 2 disks (mirror/RAID) +make vm-multi3 # 3 disks (raidz1) +make vm-boot # boot from installed disk +make vm-clean # remove VM disks, start fresh + +# Run automated install tests (all configs) make test-install - -# Or launch a VM manually for interactive testing -./scripts/test-vm.sh -./scripts/test-vm.sh --multi-disk # multiple disks for RAID #+END_SRC Boot the ISO and run ~archangel~ to start the installation. @@ -147,7 +150,7 @@ modifying the installer or build scripts to catch regressions. ** Basic VM Test #+BEGIN_SRC bash -./scripts/test-vm.sh +make vm #+END_SRC This creates a 50GB virtual disk and boots the ISO. @@ -156,10 +159,10 @@ This creates a 50GB virtual disk and boots the ISO. #+BEGIN_SRC bash # Two 50GB disks (for mirror) -./scripts/test-vm.sh --multi-disk +make vm-multi # Three 50GB disks (for raidz1) -./scripts/test-vm.sh --multi-disk=3 +make vm-multi3 #+END_SRC ** SSH Access to VM @@ -177,13 +180,13 @@ sshpass -p archangel ssh -p 2222 root@localhost ** Clean VM State #+BEGIN_SRC bash -./scripts/test-vm.sh --clean +make vm-clean #+END_SRC ** Boot from Installed Disk #+BEGIN_SRC bash -./scripts/test-vm.sh --boot-disk +make vm-boot #+END_SRC * Installation Walkthrough -- cgit v1.2.3