mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 23:10:32 +00:00
Make ISO testing in QEMU conditional based on TESTING variable.
This commit is contained in:
parent
62e0c111bd
commit
9bf6c63f49
1 changed files with 18 additions and 15 deletions
|
@ -16,6 +16,9 @@ fi
|
|||
# Uncomment if you use doas instead of sudo
|
||||
#alias sudo=doas
|
||||
|
||||
# Set this true if you want to test ISOs in QEMU after building.
|
||||
$TESTING = false
|
||||
|
||||
TMPDIR="/tmp/zealtmp"
|
||||
TMPISODIR="$TMPDIR/iso"
|
||||
TMPDISK="$TMPDIR/ZealOS.raw"
|
||||
|
@ -135,23 +138,23 @@ xorriso -joliet "on" -rockridge "on" -as mkisofs -b Boot/Limine-CD.BIN \
|
|||
|
||||
./limine/limine-deploy ZealOS-limine.iso
|
||||
|
||||
if [ ! -d "ovmf" ]; then
|
||||
if [ "$TESTING" = true ]; then
|
||||
if [ ! -d "ovmf" ]; then
|
||||
echo "Downloading OVMF..."
|
||||
mkdir ovmf
|
||||
cd ovmf
|
||||
curl -o OVMF-X64.zip https://efi.akeo.ie/OVMF/OVMF-X64.zip
|
||||
7z x OVMF-X64.zip
|
||||
cd ..
|
||||
fi
|
||||
echo "Testing limine-zealbooter-xorriso isohybrid boot in UEFI mode ..."
|
||||
qemu-system-x86_64 -machine q35,accel=kvm -m 1G -rtc base=localtime -bios ovmf/OVMF.fd -smp 4 -cdrom ZealOS-limine.iso
|
||||
echo "Testing limine-zealbooter-xorriso isohybrid boot in BIOS mode ..."
|
||||
qemu-system-x86_64 -machine q35,accel=kvm -m 1G -rtc base=localtime -smp 4 -cdrom ZealOS-limine.iso
|
||||
echo "Testing native ZealC MyDistro legacy ISO in BIOS mode ..."
|
||||
qemu-system-x86_64 -machine q35,accel=kvm -m 1G -rtc base=localtime -smp 4 -cdrom ZealOS-MyDistro.iso
|
||||
fi
|
||||
|
||||
echo "Testing limine-zealbooter-xorriso isohybrid boot in UEFI mode ..."
|
||||
qemu-system-x86_64 -machine q35,accel=kvm -m 1G -rtc base=localtime -bios ovmf/OVMF.fd -smp 4 -cdrom ZealOS-limine.iso
|
||||
echo "Testing limine-zealbooter-xorriso isohybrid boot in BIOS mode ..."
|
||||
qemu-system-x86_64 -machine q35,accel=kvm -m 1G -rtc base=localtime -smp 4 -cdrom ZealOS-limine.iso
|
||||
|
||||
echo "Testing native ZealC MyDistro legacy ISO in BIOS mode ..."
|
||||
qemu-system-x86_64 -machine q35,accel=kvm -m 1G -rtc base=localtime -smp 4 -cdrom ZealOS-MyDistro.iso
|
||||
|
||||
# comment these 2 lines if you want lingering old Distro ISOs
|
||||
rm ./ZealOS-PublicDomain-BIOS-*.iso 2> /dev/null
|
||||
rm ./ZealOS-BSD2-UEFI-*.iso 2> /dev/null
|
||||
|
|
Loading…
Reference in a new issue