RE: [kvm-unit-tests PATCH 2/2] x86: Create ISO images according to unittests.cfg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Nadav,

Let me confirm if  I got what you meant. Do you want the grub entry look like following? 
Take case memory as an example:
Add module command line taking '/boot/module' as its parameter, meanwhile package the file 'module' in the folder?

menuentry "memory.elf" {
    multiboot /boot/memory.elf  tscdeadline_immed
    module   /boot/module    # Add one line like this ?
}

Thanks
    --Sun, Yi

> -----Original Message-----
> From: Nadav Amit <nadav.amit@xxxxxxxxx>
> Sent: Friday, June 4, 2021 11:06
> To: Sun, Yi <yi.sun@xxxxxxxxx>
> Cc: kvm@xxxxxxxxxxxxxxx
> Subject: Re: [kvm-unit-tests PATCH 2/2] x86: Create ISO images according to
> unittests.cfg
> 
> 
> 
> > On Jun 3, 2021, at 7:34 PM, Yi Sun <yi.sun@xxxxxxxxx> wrote:
> >
> > Create ISO image according to the configure file unittests.cfg, where
> > describes the parameters of each test case.
> >
> 
> Looks cool!
> 
> > diff --git a/x86/create_iso.sh b/x86/create_iso.sh new file mode
> > 100755 index 0000000..8486be7
> > --- /dev/null
> > +++ b/x86/create_iso.sh
> > @@ -0,0 +1,71 @@
> > +#!/bin/bash
> > +set -e
> > +config_file=$1
> > +
> > +opts=
> > +extra_params=
> > +kernel=
> > +smp=
> > +testname=
> > +
> > +
> > +grub_cfg() {
> > +
> > +	kernel_elf=$1
> > +	kernel_para=$2
> > +
> > +	cat << EOF
> > +set timeout=0
> > +set default=0
> > +
> > +
> > +menuentry "${kernel_elf}" {
> > +    multiboot /boot/${kernel_elf} ${kernel_para}
> 
> Any chance you can add an optional “module” command here, that would be
> configurable as a parameter to create_iso.sh?
> 
> I use such a command to provide parameters that kvm-unit-tests usually gets
> from the “firmware" (and therefore are not available in certain
> environments).
> 
> The “module” can look something like:
> 	NR_CPUS=56
> 	MEMSIZE=4096
> 	TEST_DEVICE=0
> 	BOOTLOADER=1
> 
> (kvm-unit-tests already knows to use these values)
> 
> This “module" would need to be copied into build/isofiles/boot as well.





[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux