qemu-iotests: add monolithicFlat creation test to 059
authorFam Zheng <famz@redhat.com>
Wed, 25 Sep 2013 09:45:51 +0000 (17:45 +0800)
committerKevin Wolf <kwolf@redhat.com>
Wed, 25 Sep 2013 14:21:28 +0000 (16:21 +0200)
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/059
tests/qemu-iotests/059.out

index b03429dd01037b9f89d8360317165e360c853036..d2b3f9e8b1037a6efa4c12ff0a9883f490447252 100755 (executable)
@@ -66,6 +66,11 @@ poke_file "$TEST_IMG" "$capacity_offset" "\xff\xff\xff\xff"
 poke_file "$TEST_IMG" "$grain_table_size_offset" "\x01\x00\x00\x00"
 { $QEMU_IO -c "read 0 512" $TEST_IMG; } 2>&1 | _filter_qemu_io | _filter_testdir
 
+echo "=== Testing monolithicFlat creation and opening ==="
+echo
+IMGOPTS="subformat=monolithicFlat" _make_test_img 2G
+$QEMU_IMG info $TEST_IMG | _filter_testdir
+
 # success, all done
 echo "*** done"
 rm -f $seq.full
index 2146a1a3d4a6613ad9942e680bfc6e48f8cc5c0c..9159dbec607c4977e25258f535465d1973586b94 100644 (file)
@@ -17,4 +17,11 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
 L1 size too big
 qemu-io: can't open device TEST_DIR/t.vmdk: Could not open 'TEST_DIR/t.vmdk': Wrong medium type
 no file open, try 'help open'
+=== Testing monolithicFlat creation and opening ===
+
+Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=2147483648
+image: TEST_DIR/t.vmdk
+file format: vmdk
+virtual size: 2.0G (2147483648 bytes)
+disk size: 4.0K
 *** done