win_virtio_driver_update_test.cfg 4.9 KB
Newer Older
1
- win_virtio_driver_update_test:
2
    type = driver_in_use
3 4 5 6 7 8 9 10 11 12 13 14
    only Windows
    monitor_type = qmp
    monitors = qmp1
    cdroms += " virtio winutils"
    image_snapshot_image1 = yes
    kill_after_test = yes
    kill_vm_on_error = yes
    check_guest_bsod = yes
    login_timeout = 360
    need_enable_verifier = yes
    need_clear_verifier = yes
    driver_install_timeout = 600
15
    suppress_exception = no
16
    tmp_folder = C:\tmp
17
    guest_alias = "Win7-32:w7\x86,Win7-64:w7\amd64,Win8-32:w8\x86,Win8-64:w8\amd64,Win8-32.1:w8.1\x86,Win8-64.1:w8.1\amd64,Win10-32:w10\x86,Win10-64:w10\amd64,Win2008-32:2k8\x86,Win2008-64:2k8\amd64,Win2012-64:2k12\amd64,Win2012-64r2:2k12R2\amd64"
18 19
    driver_install_cmd = "python WIN_UTILS:\win_driver_install.py %s %s %s %s %s"
    show_file_ext_cmd = "reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f"
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
    read_rng_cmd  = "X:\random_%PROCESSOR_ARCHITECTURE%.exe"
    sub_test = win_virtio_driver_update_test
    variants:
        - uninstall_install:
            need_uninstall = yes
        - downgrade_upgrade:
            need_uninstall = no
            cdrom_virtio_downgrade = isos/windows/virtio-win-downgrade.iso
    variants:
        - before_bg_test:
            run_bg_flag = "before_bg_test"
        - during_bg_test:
            run_bg_flag = "during_bg_test"
            read_rng_cmd = for /l %i in (1, 1, 1000) do "X:\random_%PROCESSOR_ARCHITECTURE%.exe"
            suppress_exception = yes
        - after_bg_test:
            run_bg_flag = "after_bg_test"
37 38 39 40 41 42 43 44 45
    variants:
        - with_balloon:
            driver_name = balloon
            balloon = balloon0
            balloon_dev_devid = balloon0
            balloon_dev_add_bus = yes
            driver_name = balloon
            device_name = "VirtIO Balloon Driver"
            driver_id_pattern = "(.*?):.*?VirtIO Balloon Driver"
46
            run_bgstress = balloon_check
47 48 49 50 51 52 53 54 55 56 57 58 59 60
            virtio_balloon_pause = 10.0
            free_mem_cmd = cat /proc/meminfo |grep MemFree
            ratio = 0.5
            run_sub_test_after_balloon = no
            test_tags = "evict enlarge"
            balloon_type_evict = evict
            balloon_type_enlarge = enlarge
        - with_netkvm:
            driver_name = netkvm
            nics += " nic2"
            nic_model_nic1 = virtio
            nic_model_nic2 = rtl8139
            device_name = "Red Hat VirtIO Ethernet Adapter"
            hostpassword = redhat
61
            target_process = netperf.exe
62
            run_bgstress = netperf_stress
63 64 65 66 67 68 69 70 71 72 73 74 75 76
            netperf_link = netperf-2.6.0.tar.bz2
            server_path = /var/tmp/
            client_path = /var/tmp/
            test_protocols = TCP_STREAM
            netperf_client = ${vms}
            netperf_server = localhost
            netperf_test_duration = 200
            wait_before_subtest = 100
            ping_ext_host = "yes"
            ext_host_get_cmd = "ip route | awk '/default/ { print $3 }'"
            shell_client = "nc"
        - with_viostor:
            driver_name = viostor
            device_name = "Red Hat VirtIO SCSI controller"
77
            target_process = iozone.exe
78
            run_bgstress = iozone_windows
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
            drive_format_image1 = ide
            images += " stg"
            image_name_stg = "images/storage"
            image_size_stg = 4G
            drive_format_stg = virtio
            disk_letter = I
            disk_index = 1
            format_disk = yes
            force_create_image_stg = yes
            remove_image_stg = yes
            driver_id_pattern = "(.*?):.*?VirtIO SCSI Disk Device"
            iozone_cmd = "WIN_UTILS:\Iozone\iozone.exe -azR -r 64k -n 1G -g 2G -M -i 0 -i 1 -b iozone.xls -f ${disk_letter}:\testfile"
            iozone_timeout = 7200
            wait_bg_time = 180
        - with_vioscsi:
            driver_name = vioscsi
            device_name = "Red Hat VirtIO SCSI pass-through controller"
96
            target_process = iozone.exe
97
            run_bgstress = iozone_windows
98 99 100 101 102 103 104 105 106 107 108 109 110 111
            drive_format_image1 = ide
            images += " stg"
            image_name_stg = "images/storage"
            image_size_stg = 4G
            drive_format_stg = scsi-hd
            disk_letter = I
            disk_index = 1
            format_disk = yes
            force_create_image_stg = yes
            remove_image_stg = yes
            driver_id_pattern = "(.*?):.*?VirtIO SCSI pass-through controller"
            iozone_cmd = "WIN_UTILS:\Iozone\iozone.exe -azR -r 64k -n 1G -g 2G -M -i 0 -i 1 -b iozone.xls -f ${disk_letter}:\testfile"
            iozone_timeout = 7200
            wait_bg_time = 180
112 113 114 115 116 117 118 119 120
        - with_viorng:
            no no_virtio_rng
            driver_name = viorng
            device_name = "VirtIO RNG Device"
            run_bgstress = rng_bat 
            target_process = random\w*.exe
            session_cmd_timeout = 240
            rng_data_rex = "0x\w"
            driver_id_pattern = "(.*?):.*?VirtIO RNG Device"