simple-cli/test-boot-full.sh
joe 6aa6d32e1e
Some checks failed
Build Simple CLI / build (push) Failing after 1s
Add .gitignore, clean up build artifacts, add test scripts and configuration files
2025-08-12 20:13:38 -07:00

26 lines
737 B
Bash
Executable file

#!/bin/bash
# Test script to boot the simple-cli image with full BIOS/GRUB visibility (headless)
echo "Testing simple-cli bootable image with full boot process..."
echo "Image: simple-cli.qcow2"
echo "Size: $(ls -lh simple-cli.qcow2 | awk '{print $5}')"
# Test boot with QEMU (full boot process - BIOS, GRUB, kernel)
echo "Testing full boot process (headless)..."
echo "You should see:"
echo "1. QEMU BIOS screen"
echo "2. GRUB boot menu (if configured)"
echo "3. Kernel loading"
echo "4. System boot"
echo ""
echo "Press Ctrl+C to stop the VM when done testing."
qemu-system-x86_64 \
-m 2G \
-smp 2 \
-drive file=simple-cli.qcow2,format=qcow2 \
-boot c \
-nographic \
-serial mon:stdio
echo "Test complete!"