block_resize.cfg 3.3 KB
Newer Older
Y
Yiqiao Pu 已提交
1 2 3
- block_resize:
    # As XP and 2003 guest disk manager not support disk shrink. So don't test them for this feature
    no WinXP Win2003
4
    no RHEL.4
Y
Yiqiao Pu 已提交
5 6
    only qcow2 raw
    type = block_resize
Q
qingwangrh 已提交
7 8 9
    extend_ratio = 1.5
    shrink_ratio = 0.9
    disk_change_ratio = "${extend_ratio} ${shrink_ratio}"
10
    accept_ratio = 0.005
Q
qingwangrh 已提交
11
    md5_file = md5.dat
12 13 14 15
    Windows:
        max_block_size = 2199023255552
        ovmf:
            max_block_size = 17592186044416
16 17
    iozone_path = "WIN_UTILS:\Iozone\iozone.exe"
    iozone_option = " -azR -r 64k -n 512M -g 1G -M -I -i 0 -i 1 -b iozone.xls -f %s:\testfile"
Q
qingwangrh 已提交
18
    dd_cmd = "dd if=/dev/urandom of=%s oflag=direct bs=1M count=10"
19 20 21 22
    Linux:
        iozone_option = " -azR -r 64k -n 512M -g 1G -I -i 0 -i 1 -f %s/testfile"
    qcow2:
        Host_RHEL.m6, Host_RHEL.m7.u0, Host_RHEL.m7.u1, Host_RHEL.m7.u2, Host_RHEL.m7.u3, Host_RHEL.m7.u4, Host_RHEL.m7.u5:
Q
qingwangrh 已提交
23
            disk_change_ratio = ${extend_ratio}
24 25 26 27 28 29 30 31 32 33 34 35 36 37
    variants:
        - with_data_disk:
            images += " stg"
            image_size_stg = 10G
            image_name_stg = images/stg
            create_image_stg = yes
            remove_image_stg = yes
            force_create_image_stg = yes
            blk_extra_params_stg = "serial=TARGET_DISK0"
            format_disk = yes
            Host_RHEL.m6..ide:
                blk_extra_params_stg = "wwn=0x5000123456789abc"
            Windows:
                need_rescan = yes
Q
qingwangrh 已提交
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
            variants:
                - default_partition:
                    Windows:
                        labeltype = msdos
                        fstype = ntfs
                    Linux:
                        labeltype = msdos
                        fstype = ext4
                - with_gpt_ext4:
                    only Linux
                    labeltype = gpt
                    disk_change_ratio = "${extend_ratio}"
                - with_msdos_xfs:
                    only Linux
                    fstype = xfs
                    disk_change_ratio = "${extend_ratio}"
                - with_gpt_xfs:
                    only Linux
                    labeltype = gpt
                    fstype = xfs
                    disk_change_ratio = "${extend_ratio}"
59 60 61 62 63 64 65 66 67 68 69 70 71
            variants:
                - fmt_qcow2:
                    image_format_stg = qcow2
                - fmt_raw:
                    image_format_stg = raw
        - with_system_disk:
            only Windows
            blk_extra_params_image1 = "serial=TARGET_DISK0"
            Host_RHEL.m6..ide:
                blk_extra_params_image1 = "wwn=0x5000123456789abc"
            backup_image_before_testing = yes
            restore_image_after_testing = yes
            need_rescan = yes
Y
Yiqiao Pu 已提交
72
    ide:
73 74
        need_reboot = yes
    ahci:
Y
Yiqiao Pu 已提交
75 76
        need_reboot = yes
    virtio_blk:
S
Suqin Huang 已提交
77
        driver_name = viostor
Y
Yiqiao Pu 已提交
78
    virtio_scsi:
S
Suqin Huang 已提交
79
        driver_name = vioscsi
80
        Linux:
81
            guest_prepare_cmd = "echo 1 > /sys/block/sdb/device/rescan"
82 83
    RHEL.5:
        need_reboot = yes
84 85 86
    variants:
        - with_iozone:
            iozone_test = yes
Q
qingwangrh 已提交
87 88 89 90 91 92 93 94
        - with_md5:
            only default_partition
            md5_test = yes
            Windows:
                md5_cmd = "%s: && md5sum.exe %s"
                tmp_md5_file = /tmp/tmp_md5_file
                pre_command = "dd if=/dev/urandom of=${tmp_md5_file} oflag=direct bs=1M count=10"
                post_command = "rm -rf ${tmp_md5_file}"