On Thu, 2010-06-24 at 15:29 +0300, Michael Goldish wrote:
> On 06/24/2010 02:37 PM, Poornima Nayak wrote:
> > On Wed, 2010-06-23 at 15:09 -0300, Lucas Meneghel Rodrigues wrote:
> >> On Wed, 2010-06-23 at 23:14 +0530, Poornima Nayak wrote:
> >>> The last line in tests.cfg is reffering to two variants
> >>> only qemu_dotl_map_passthrough qemu_dotu_map_passthrough
> >>>
> >>> The defination for these two variants only differs where i call set of
> >>> autotest tests that has to be run. for example I am pasting the lines
> >>> which differ in the two variants.
> >>> @qemu_dotu_map_passthrough:
> >>>     only boot v9fs_setup connecthon tuxera_posix fsstress shutdown
> >>>
> >>>
> >>> @qemu_dotl_map_passthrough:
> >>>     only boot v9fs_dotl_setup connecthon tuxera_posix fsstress shutdown
> >>>
> >>> The problem with this is after qemu_dotu_map_passthrough execution
> >>> completes, autotest exits when it has to execute 'boot' under
> >>> qemu_dotl_map_passthrough with error
> >>> TestError: kvm.raw.Fedora.12.64.virtio.boot already exists; multiple
> >>> tests cannot run with the same subdirectory
> >>>
> >>> I need help in resolving this issue, how to genrate filenames unique for
> >>> tests under qemu_dotu_map_passthrough &  qemu_dotl_map_passthrough.
> >>>
> >>> FYI: v9fs_setup & v9fs_dotl_setup setup test environment before
> >>> executing autotest tests fsstress, connecthon. These files are
> >>> implemented in kvm/tests directory.
> >>>
> >>> Any suggestion would be a great help.
> >>
> >> A simple suggestion would be to remove the 'at' signs at the beginning
> >> of your variants. This will make them to be part of the testname, thus,
> >> generating different names and the issue you mentioned will no longer
> >> exist.
> >>
> >> qemu_dotu_map_passthrough:
> >>      only boot v9fs_setup connecthon tuxera_posix fsstress shutdown
> >>
> >>
> >> qemu_dotl_map_passthrough:
> >>      only boot v9fs_dotl_setup connecthon tuxera_posix fsstress shutdown
> >>
> >> Good to hear from you!
> >>
> >> Lucas
> >>
> > If I remove 'at'sign only the first one gets executed.
> > For eg if i refer to something as below
> > only qemu_dotu_map_passthrough qemu_dotl_map_passthrough
> > 
> > only qemu_dotu_map_passthrough gets executed.
> > Even kvm_config generates dictionary for the first variant mentioned in
> > the line.
> 
> If you can, please post your config file.
> Also, looking at the output of kvm_config.py --verbose might be useful.
>  It shows the number of tests at each step of the parsing procedure.
> Also, please make sure that you use the correct syntax to define variants:
> 
> variants:
> - qemu_dotu_map_passthrough:
>     only boot v9fs_setup connecthon tuxera_posix fsstress shutdown
> 
> - qemu_dotl_map_passthrough:
>     only boot v9fs_dotl_setup connecthon tuxera_posix fsstress shutdown
> 
> I'm just making sure, because your original message lacked the keyword
> 'variants' and the dashes.  Your syntax looks more like the syntax of
> exceptions.  You can look at the examples at
> http://www.linux-kvm.org/page/KVM-Autotest/Test_Config_File
> to see the difference between variants and exceptions.
> 
> > Even tried referring them as 
> > only qemu_dotu_map_passthrough 
> > only qemu_dotl_map_passthrough
> > 
> > This does not generate dictionary at all for both the variants.
> 
> This shouldn't generate any dictionaries because these sets are supposed
> to be mutually exclusive, if I understand correctly.
> 
> > Anyway thanks a lot Lucas for quick response, I was concerned that I may
> > not get quick reply as the subject of the mail is not specifying the
> > problem.
> > 
> > Regards
> > Poornima
Pasting my tests.cfg. This cfg file has too many arguments for extra
params bcoz I boot guest OS with kernel built in host.

include tests_base.cfg
include cdkeys.cfg

qemu_binary = /opt/testbin/bin/qemu-system-x86_64
qemu_img_binary = /opt/testbin/bin/qemu-img
image_name.* ?<= /root/project_regtest/client/tests/kvm/f12
cdrom.* ?<= /tmp/kvm_autotest_root/
steps ?<= /tmp/kvm_autotest_root/

variants:
    # Runs all variants defined. HUGE test set.
    - @full:

    - @qemu_kvm_f12_mapped:
        only raw
        only acpi
        only no_pci_assignable
        only smallpages
        only Fedora.12.64
        only boot
        extra_params = ' -enable-kvm -fsdev
local,id=local0,path=/tmp,security_model=mapped -device
virtio-9p-pci,fsdev=local0,mount_tag=export1'
        # Path of initramfs shuld be suffixed with tag
        extra_params+= '
-kernel /opt/v9fs-next-upstream/arch/x86_64/boot/bzImage
-initrd /boot/initramfs-2.6.34.img '
        extra_params+= ' -append "root=/dev/mapper/VolGroup-lv_root
$console selinux=0 console=ttyS0" '
        only virtio
        no smp2
    - qemu_dotu_map_passthrough:
        only raw
        only acpi
        only no_pci_assignable
        only smallpages
        only Fedora.12.64
        only boot shutdown
        extra_params = ' -enable-kvm -fsdev
local,id=local0,path=/root/pass_test,security_model=passthrough -device
virtio-9p-pci,fsdev=local0,mount_tag=export1'
        extra_params+= ' -fsdev
local,id=local1,path=/root/map_test,security_model=mapped -device
virtio-9p-pci,fsdev=local1,mount_tag=export2'
        # Path of initramfs shuld be suffixed with tag
        extra_params+= '
-kernel /opt/new/v9fs-next-upstream/arch/x86_64/boot/bzImage
-initrd /boot/initramfs-2.6.35-rc3-test1+.img '
        extra_params+= ' -append "root=/dev/mapper/VolGroup-lv_root
$console selinux=0 console=ttyS0" '
        only virtio
        no smp2
    - qemu_dotl_map_passthrough:
        only raw
        only acpi
        only no_pci_assignable
        only smallpages
        only Fedora.12.64
        only boot v9fs_dotl_setup shutdown
        extra_params = ' -enable-kvm -fsdev
local,id=local0,path=/root/pass_test,security_model=passthrough -device
virtio-9p-pci,fsdev=local0,mount_tag=export1'
        extra_params+= ' -fsdev
local,id=local1,path=/root/map_test,security_model=mapped -device
virtio-9p-pci,fsdev=local1,mount_tag=export2'
        # Path of initramfs shuld be suffixed with tag
        extra_params+= '
-kernel /opt/new/v9fs-next-upstream/arch/x86_64/boot/bzImage
-initrd /boot/initramfs-2.6.35-rc3-test1+.img '
        extra_params+= ' -append "root=/dev/mapper/VolGroup-lv_root
$console selinux=0 console=ttyS0" '
        only virtio
        no smp2

only qemu_dotu_map_passthrough qemu_dotl_map_passthrough
#only qemu_dotu_map_passthrough
#only qemu_dotl_dotu


_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to