On 08/16/14 20:34, Reza Jelveh wrote: > On 16/08/14 14:51, Laszlo Ersek wrote: >> You asked me how, in my opinion, you should test the new device paths. I >> gave you an exhaustive test plan, the way I would test for regressions >> and expected behavior. You can write a shell script with two loops, and >> watch 24 boots. (You don't need to boot to the full OSes, the UEFI boot >> loaders (grub etc) suffice to see which one got booted.) It can be done >> in an hour or two, probably. >> >> ... >> >> In general I refuse shorthand flags like -cdrom, -hda, -boot etc. >> Explicit -drive, -netdev and -device flags, and ,bootindex= properties >> for -device, provide better control, and are more explicit about what >> one should expect. It's not a coincidence libvirt spells out all options >> with maximum accuracy. > What is your preferred commandline for testing then?
#!/bin/bash set -e -u -C # set boot order between HD, CD, and PXE HD_IDX=0 CD_IDX=1 NET_IDX=2 # some config stuff ISO=Fedora-Live-Xfce-x86_64-20-1.iso IMG=mytest.img LOG=ovmf.log TFTPDIR=$WORKSPACE/EdkShellBinPkg/FullShell/X64 BOOTFILE=/Shell_Full.efi OVMF_CODE=$WORKSPACE/Build/OvmfX64/DEBUG_GCC48/FV/OVMF_CODE.fd OVMF_VARS=$WORKSPACE/Build/OvmfX64/DEBUG_GCC48/FV/OVMF_VARS.fd if [ ! -e $IMG ]; then qemu-img create -f qcow2 $IMG 20G fi if [ ! -e myvars.fd ]; then cp $OVMF_VARS myvars.fd fi /opt/qemu-installed/bin/qemu-system-x86_64 \ -M pc \ -enable-kvm \ -m 2048 \ -smp 2 \ -drive if=pflash,format=raw,readonly,file=$OVMF_CODE \ -drive if=pflash,format=raw,file=myvars.fd \ -global isa-debugcon.iobase=0x402 \ -debugcon file:$LOG \ -monitor stdio \ -device piix3-usb-uhci \ -device usb-tablet \ -drive id=drive0,if=none,format=qcow2,file=$IMG \ -device ide-hd,bus=ide.0,drive=drive0,bootindex=$HD_IDX \ -drive id=drive1,if=none,format=raw,readonly=on,file=$ISO \ -device ide-cd,bus=ide.1,drive=drive1,bootindex=$CD_IDX \ -netdev user,id=net0,tftp=$TFTPDIR,bootfile=$BOOTFILE \ -device virtio-net-pci,netdev=net0,romfile=,bootindex=$NET_IDX ------------------------------------------------------------------------------ _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel