1QA output created by 213 2 3=== Successful image creation (defaults) === 4 5Testing: 6QMP_VERSION 7{"return": {}} 8{"return": {}} 9{"return": {}} 10{"return": {}} 11{"return": {}} 12{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}} 13 14image: TEST_DIR/t.IMGFMT 15file format: IMGFMT 16virtual size: 128M (134217728 bytes) 17 18=== Successful image creation (explicit defaults) === 19 20Testing: 21QMP_VERSION 22{"return": {}} 23{"return": {}} 24{"return": {}} 25{"return": {}} 26{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}} 27 28image: TEST_DIR/t.IMGFMT 29file format: IMGFMT 30virtual size: 64M (67108864 bytes) 31 32=== Successful image creation (with non-default options) === 33 34Testing: 35QMP_VERSION 36{"return": {}} 37{"return": {}} 38{"return": {}} 39{"return": {}} 40{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}} 41 42image: TEST_DIR/t.IMGFMT 43file format: IMGFMT 44virtual size: 32M (33554432 bytes) 45 46=== Invalid BlockdevRef === 47 48Testing: 49QMP_VERSION 50{"return": {}} 51{"error": {"class": "GenericError", "desc": "Cannot find device=this doesn't exist nor node_name=this doesn't exist"}} 52{"return": {}} 53{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}} 54 55 56=== Zero size === 57 58Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=node0 59QMP_VERSION 60{"return": {}} 61{"return": {}} 62{"return": {}} 63{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}} 64 65image: TEST_DIR/t.IMGFMT 66file format: IMGFMT 67virtual size: 0 (0 bytes) 68 69=== Maximum size === 70 71Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=node0 72QMP_VERSION 73{"return": {}} 74{"return": {}} 75{"return": {}} 76{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}} 77 78image: TEST_DIR/t.IMGFMT 79file format: IMGFMT 80virtual size: 64T (70368744177664 bytes) 81 82=== Invalid sizes === 83 84Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=node0 85QMP_VERSION 86{"return": {}} 87{"error": {"class": "GenericError", "desc": "Image size too large; max of 64TB"}} 88{"error": {"class": "GenericError", "desc": "Image size too large; max of 64TB"}} 89{"error": {"class": "GenericError", "desc": "Image size too large; max of 64TB"}} 90{"error": {"class": "GenericError", "desc": "Image size too large; max of 64TB"}} 91{"return": {}} 92{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}} 93 94 95=== Invalid block size === 96 97Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=node0 98QMP_VERSION 99{"return": {}} 100{"error": {"class": "GenericError", "desc": "Block size must be a multiple of 1 MB"}} 101{"error": {"class": "GenericError", "desc": "Block size must be a multiple of 1 MB"}} 102{"error": {"class": "GenericError", "desc": "Block size must be a power of two"}} 103{"error": {"class": "GenericError", "desc": "Block size must not exceed 268435456"}} 104{"error": {"class": "GenericError", "desc": "Block size must be a multiple of 1 MB"}} 105{"return": {}} 106{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}} 107 108 109=== Invalid log size === 110 111Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=node0 112QMP_VERSION 113{"return": {}} 114{"error": {"class": "GenericError", "desc": "Log size must be a multiple of 1 MB"}} 115{"error": {"class": "GenericError", "desc": "Log size must be a multiple of 1 MB"}} 116{"error": {"class": "GenericError", "desc": "Log size must be smaller than 4 GB"}} 117{"error": {"class": "GenericError", "desc": "Log size must be a multiple of 1 MB"}} 118{"return": {}} 119{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}} 120 121*** done 122