simple-cli/test-boot.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

24 lines
764 B
Bash
Executable file

#!/bin/bash
# Test script to boot the simple-cli image (headless)
echo "Testing simple-cli bootable image..."
echo "Image: simple-cli.qcow2"
echo "Size: $(ls -lh simple-cli.qcow2 | awk '{print $5}')"
# Test boot with QEMU (headless with kernel/initrd)
echo "Testing boot process (headless with direct kernel boot)..."
echo "You should see the kernel boot process directly!"
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 \
-append "console=ttyS0 root=/dev/sda1 rw" \
-kernel image-fs/boot/vmlinuz-6.12.38+deb13-amd64 \
-initrd image-fs/boot/initrd.img-6.12.38+deb13-amd64
echo "Test complete!"