balloon_in_use.cfg 2.0 KB
Newer Older
1 2 3 4 5
- balloon_in_use:
    type = driver_in_use
    balloon = balloon0
    balloon_dev_devid = balloon0
    balloon_dev_add_bus = yes
6
    repeat_times = 5
S
Suqin Huang 已提交
7
    wait_bg_time = 720
8 9 10 11 12
    start_vm = yes
    kill_vm_on_error = yes
    run_bgstress = balloon_stress
    bg_stress_run_flag = balloon_test
    set_bg_stress_flag = yes
S
Suqin Huang 已提交
13 14
    session_cmd_timeout = 240
    balloon_timeout = 240
15
    check_setup_events = balloon_test_setup_ready
16 17
    Windows:
        stress_test = win_video_play
18 19 20
        mplayer_path = "WIN_UTILS:\mplayer.exe"
        play_video_cmd = "start /MIN %s %s -loop 0 -fs"
        target_process = mplayer.exe
21
        video_url = http://fileshare.com/Peppa_Pig_39_The_Tree_House.avi
22
        driver_name = "balloon"
23 24 25 26 27 28 29 30 31
        free_mem_cmd = wmic os get FreePhysicalMemory
        default_memory = ${mem}
        check_guest_bsod = yes
        migration_test_command = ver && vol
    Linux:
        # Use a low stress to make sure guest can response during stress
        driver_name = "virtio_balloon"
        stress_args = "--cpu 4 --io 4 --vm 2 --vm-bytes 256M"
        migration_test_command = help
32 33 34 35 36
    variants:
        - before_bg_test:
            run_bg_flag = "before_bg_test"
        - during_bg_test:
            run_bg_flag = "during_bg_test"
37
            repeat_times = 200
38 39 40 41 42
        - after_bg_test:
            run_bg_flag = "after_bg_test"
    variants:
        - with_stop_continue:
            sub_test = stop_continue
43
            suppress_exception = no
44 45
        - with_shutdown:
            sub_test = shutdown
46
            suppress_exception = yes
47 48 49
            shutdown_method = shell
        - with_reboot:
            sub_test = boot
50
            suppress_exception = yes
51 52 53 54
            reboot_count = 1
            reboot_method = shell
        - with_system_reset:
            sub_test = boot
55
            suppress_exception = yes
56 57 58 59
            reboot_method = system_reset
            sleep_before_reset = 20
        - with_live_migration:
            sub_test = migration
60
            suppress_exception = no
61 62
            mig_speed = 512M
            pre_migrate = "mig_set_speed"