# Below case works stablly on QMP monitor, but have no more test with Human # monitor, so suggest to use QMP monitor as default qemu monitor run below test # - block_stream: no raw qed vmdk backup_image_before_testing = yes restore_image_after_testing = yes wait_finished = yes source_image = image1 default_speed_image1 = 0 snapshot_chain = "images/sn1" # If image size increase or limited streaming please increase # wait_timeout to avoid wait for streaming finished timeout; wait_timeout = 3900 snapshot_format = qcow2 kill_vm = yes alive_check_cmd = dir tmp_dir = /tmp variants: - simple_test: type = block_stream_simple variants: - start_stream: type =block_stream - set_speed: default_speed_image1 = 10M after_finished = "reboot verify_alive" - reset_speed: default_speed_image1 = 1M when_streaming = "set_speed" max_speed_image1 = 10M after_finished = "reboot verify_alive" variants: - max_speed: expected_speed_image1 = 10485760 - min_speed: expected_speed_image1 = 10 - cancel_sync: wait_finished = no cancel_timeout_image1 = 3 when_streaming = "cancel" - cancel_async: wait_finished = no cancel_timeout_image1 = 3 max_speed_image1 = 10M when_streaming = "set_speed cancel" - query: cancel_timeout_image1 = 3 wait_finished = no default_speed_image1 = 8M when_streaming = "get_status cancel" - when_reboot: type = block_stream_reboot reboot_method = "system_reset" before_start = "reboot" after_finished = "verify_alive" - drop_backingfile: type = block_stream_drop_backingfile snapshot_chain += " images/sn2" # set limited_speed to 10MB/s eq 10485760B/s limited_speed = 10485760 snapshot_check_cmd = "lsof -p %s|awk '{print $9}'|grep ^/" - check_backingfile: type = block_stream_check_backingfile snapshot_chain = "images/sn1" expected_image_file = "images/sn1" after_finished = "check_backingfile check_imagefile verify_alive" - with_stress: type = block_stream_stress download_link = http://weather.ou.edu/~apw/projects/stress/stress-1.0.4.tar.gz pkg_md5sum = a607afa695a511765b40993a64c6e2f4 install_cmd = "tar -xzvf ${tmp_dir}/stress-1.0.4.tar.gz -C ./ && cd stress-1.0.4 && ./configure --prefix=/usr && make && make install " config_cmd = "" app_check_cmd = "stress --help" before_start = "load_stress" start_cmd = "stress --cpu 4 --io 4 --vm 2 --vm-bytes 256M --quiet &" check_cmd = 'pidof -s stress' stop_cmd = "killall -g stress" after_finished = "unload_stress reboot verify_alive" variants: - @default: - data_plane: iothreads = iothread0 blk_extra_params_image1 = "iothread=${iothreads}"