Skip to contentSkip to conversation

KVM test: Further reorganization of test cfg files

PATCH New Lucas Meneghel Rodrigues 1 participant 1 message Sep 5, 2011 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM test: Further reorganization of test cfg files

As discussed previously, proceeding further with test cfg reorganization:

* Moved subtest variants to subtests.cfg.sample
* Moved guest OS variants to guest-os.cfg.sample
* The original tests_base.cfg.sample became base.cfg.sample
* The includes on test.cfg.sample were updated

The reasoning: Group large logical blocks of variants on their own files, helping to modify and get a grasp of the big picture.

Also, cleaned up some variants that could go to some other variant blocks, grouped some variables that were meant to go together. Now parsing the default test sample yields:

[lmr@freedom kvm]$ ../../common_lib/cartesian_config.py tests.cfg

dict    1:  unattended_install.cdrom.Fedora.15.64.smp2
dict    2:  boot.Fedora.15.64.smp2
dict    3:  shutdown.Fedora.15.64.smp2
---
 client/tests/kvm/base.cfg.sample       |  185 +++
 client/tests/kvm/guest-os.cfg.sample   | 1521 +++++++++++++++++
 client/tests/kvm/subtests.cfg.sample   | 1104 +++++++++++++
 client/tests/kvm/tests.cfg.sample      |    6 +-
 client/tests/kvm/tests_base.cfg.sample | 2835 --------------------------------
 5 files changed, 2815 insertions(+), 2836 deletions(-)
 create mode 100644 client/tests/kvm/base.cfg.sample
 create mode 100644 client/tests/kvm/guest-os.cfg.sample
 create mode 100644 client/tests/kvm/subtests.cfg.sample
 delete mode 100644 client/tests/kvm/tests_base.cfg.sample
client/tests/kvm/base.cfg.sample new file +185 -0
new file mode 100644
index 0000000..0e6d222
@@ -0,0 +1,185 @@
+# Copy this file to base.cfg and edit it.
+#
+# Define the objects we'll be using
+vms = vm1
+vm_type = kvm
+images = image1
+cdroms = cd1
+nics = nic1
+monitors = humanmonitor1
+main_monitor = humanmonitor1
+monitor_type_humanmonitor1 = human
+monitor_type = human
+main_vm = vm1
+
+# Location of the qemu programs. You can refer to absolute paths here.
+qemu_binary = qemu
+qemu_img_binary = qemu-img
+
+# Default VM params
+# Number of processors
+smp = 1
+
+# Memory
+mem = 1024
+
+# Hard disk
+image_size = 10G
+image_raw_device = no
+drive_index_image1 = 0
+drive_cache = none
+
+# Cdrom drive index
+drive_index_cd1 = 1
+
+# Display
+display = vnc
+
+# If display = spice, you can set specific spice stuff here
+qxl = on
+qxl_dev_nr = 1
+spice = disable-ticketing
+
+# NIC parameters
+nic_mode = tap
+# By default we use libvirt's bridge
+bridge = virbr0
+run_tcpdump = yes
+
+# Some preprocessor/postprocessor params
+start_vm = yes
+kill_vm = no
+kill_vm_gracefully = yes
+kill_unresponsive_vms = yes
+
+# Screendump thread params
+convert_ppm_files_to_png_on_error = yes
+keep_ppm_files = no
+keep_ppm_files_on_error = no
+take_regular_screendumps = yes
+keep_screendumps_on_error = yes
+screendump_delay = 5
+screendump_quality = 30
+screendump_temp_dir = /dev/shm
+screendump_verbose = no
+
+# Default remote shell port (SSH under linux)
+shell_port = 22
+
+# Default scheduler params
+used_cpus = 1
+used_mem = 512
+
+# Port redirections
+redirs = remote_shell
+guest_port_remote_shell = 22
+
+# Profilers
+profilers = kvm_stat
+
+# Timeouts
+login_timeout = 360
+
+# NFS directory of guest images
+images_good = fileserver.foo.com:/autotest/images_good
+
+# NICs
+variants:
+    - @rtl8139:
+        nic_model = rtl8139
+        no ethtool
+        jumbo:
+            mtu = 1500
+    - e1000:
+        nic_model = e1000
+        jumbo:
+            mtu = 16110
+        ethtool:
+            # gso gro lro is only supported by latest kernel
+            supported_features = "tx rx sg tso gso gro lro"
+    - virtio_net:
+        nic_model = virtio
+        # You can add advanced attributes on nic_extra_params such as mrg_rxbuf
+        #nic_extra_params =
+        # You can add advanced attributes through netdev_extra_params
+        # such as sndbuf, as an example, you can uncomment the
+        # following lines to enable the vhost support ( only available
+        # for tap )
+        #netdev_extra_params = "vhost=on"
+        jumbo:
+            mtu = 65520
+        ethtool:
+            supported_features = "tx sg tso gso"
+        whql.submission.device.net:
+            test_device = VirtIO Ethernet Adapter$
+            # Device selection for the NDISTest client machine
+            dp_regex_testdev = VirtIO Ethernet Adapter$
+            dp_regex_clientmsgdev = VirtIO Ethernet Adapter #2$
+            dp_regex_clientsupportdev = VirtIO Ethernet Adapter #3$
+            # Device selection for the NDISTest server machine
+            dp_regex_servermsgdev = VirtIO Ethernet Adapter$
+            dp_regex_serversupportdev = VirtIO Ethernet Adapter #2$
+
+variants:
+    - @up:
+        no autotest.npb autotest.tsc
+    - smp2:
+        smp = 2
+        used_cpus = 2
+        stress_boot: used_cpus = 10
+        timedrift.with_load: used_cpus = 100
+
+variants:
+    - @ide:
+        drive_format=ide
+    - scsi:
+        drive_format=scsi
+    - virtio_blk:
+        drive_format=virtio
+        # Some older qemu might need image_boot=yes for virtio images to work.
+        # Please uncomment the below if that is the case.
+        #image_boot=yes
+    - ahci:
+        drive_format=ahci
+        cd_format=ahci
+    - usb.stick:
+        drive_format=usb2
+    - usb.cdrom:
+        cd_format=usb2
+
+variants:
+    - @qcow2:
+        image_format = qcow2
+        check_image = yes
+    - vmdk:
+        no ioquit
+        image_format = vmdk
+    - raw:
+        no ioquit
+        image_format = raw
+
+variants:
+    - @smallpages:
+    - hugepages:
+        setup_hugepages = yes
+        extra_params += " -mem-path /mnt/kvm_hugepage"
+
+variants:
+    - @no_pci_assignable:
+        pci_assignable = no
+    - pf_assignable:
+        pci_assignable = pf
+        device_names = eth1
+    - vf_assignable:
+        pci_assignable = vf
+        # Driver (kernel module) that supports SR-IOV hardware.
+        # As of today (30-11-2009), we have 2 drivers for this type of hardware:
+        # Intel® 82576 Gigabit Ethernet Controller - igb
+        # Neterion® X3100™ - vxge
+        driver = igb
+        # Driver option to specify the maximum number of virtual functions
+        # (on vxge the option is , for example, is max_config_dev)
+        # the default below is for the igb driver
+        driver_option = "max_vfs=7"
+        # Number of devices that are going to be requested.
+        devices_requested = 7
client/tests/kvm/guest-os.cfg.sample new file +1521 -0

1,521 lines not on this page · raw message

client/tests/kvm/subtests.cfg.sample new file +1104 -0

1,104 lines not on this page · raw message

client/tests/kvm/tests.cfg.sample +5 -1
index d63711a..a39df52 100644
@@ -1,7 +1,11 @@
 # Copy this file to tests.cfg and edit it.
 #
 # This file contains the test set definitions. Define your test sets here.
-include tests_base.cfg
+
+# Include the base config files.
+include base.cfg
+include guest-os.cfg
+include subtests.cfg
 include cdkeys.cfg
 include virtio-win.cfg
 
client/tests/kvm/tests_base.cfg.sample deleted +0 -2835

178 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 6 lines
1.7.6

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

Part of the diff is not shown here. View the raw message.