Add .gitignore, clean up build artifacts, add test scripts and configuration files
Some checks failed
Build Simple CLI / build (push) Failing after 1s
Some checks failed
Build Simple CLI / build (push) Failing after 1s
This commit is contained in:
parent
882552f4e7
commit
6aa6d32e1e
12 changed files with 128 additions and 185 deletions
24
test-boot.sh
Executable file
24
test-boot.sh
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/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!"
|
||||
Loading…
Add table
Add a link
Reference in a new issue