1QA output created by 212 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: 4096T (4503599627369984 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 must be a multiple of 512 bytes"}} 88{"error": {"class": "GenericError", "desc": "Image size is too large for this cluster size"}} 89{"error": {"class": "GenericError", "desc": "Image size is too large for this cluster size"}} 90{"error": {"class": "GenericError", "desc": "Image size is too large for this cluster size"}} 91{"error": {"class": "GenericError", "desc": "Image size is too large for this cluster size"}} 92{"return": {}} 93{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}} 94 95 96=== Invalid cluster size === 97 98Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=node0 99QMP_VERSION 100{"return": {}} 101{"error": {"class": "GenericError", "desc": "Cluster size must be a multiple of 512 bytes"}} 102{"error": {"class": "GenericError", "desc": "Cluster size must be a multiple of 512 bytes"}} 103{"error": {"class": "GenericError", "desc": "Cluster size is too large"}} 104{"error": {"class": "GenericError", "desc": "Cluster size is too large"}} 105{"error": {"class": "GenericError", "desc": "Cluster size is too large"}} 106{"error": {"class": "GenericError", "desc": "Image size is too large for this cluster size"}} 107{"error": {"class": "GenericError", "desc": "Image size is too large for this cluster size"}} 108{"return": {}} 109{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}} 110 111*** done 112