thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone

Blame SOURCES/kvm-qemu-iotests-add-monolithicFlat-creation-test-to-059.patch

9ae3a8
From 1e237fbebc414e23218350bdbb2b4f128f345800 Mon Sep 17 00:00:00 2001
9ae3a8
From: Fam Zheng <famz@redhat.com>
9ae3a8
Date: Wed, 9 Oct 2013 09:50:23 +0200
9ae3a8
Subject: [PATCH 11/11] qemu-iotests: add monolithicFlat creation test to 059
9ae3a8
9ae3a8
RH-Author: Fam Zheng <famz@redhat.com>
9ae3a8
Message-id: <1381312223-7074-4-git-send-email-famz@redhat.com>
9ae3a8
Patchwork-id: 54795
9ae3a8
O-Subject: [RHEL-7 qemu-kvm PATCH 3/3] qemu-iotests: add monolithicFlat creation test to 059
9ae3a8
Bugzilla: 1017049
9ae3a8
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
9ae3a8
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
9ae3a8
Signed-off-by: Fam Zheng <famz@redhat.com>
9ae3a8
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
9ae3a8
(cherry picked from commit 2fe2e2907163f6d86b6bbced776ec8f9319ca83f)
9ae3a8
Signed-off-by: Fam Zheng <famz@redhat.com>
9ae3a8
---
9ae3a8
 tests/qemu-iotests/059     | 5 +++++
9ae3a8
 tests/qemu-iotests/059.out | 7 +++++++
9ae3a8
 2 files changed, 12 insertions(+)
9ae3a8
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 tests/qemu-iotests/059     |    5 +++++
9ae3a8
 tests/qemu-iotests/059.out |    7 +++++++
9ae3a8
 2 files changed, 12 insertions(+), 0 deletions(-)
9ae3a8
9ae3a8
diff --git a/tests/qemu-iotests/059 b/tests/qemu-iotests/059
9ae3a8
index b03429d..d2b3f9e 100755
9ae3a8
--- a/tests/qemu-iotests/059
9ae3a8
+++ b/tests/qemu-iotests/059
9ae3a8
@@ -66,6 +66,11 @@ poke_file "$TEST_IMG" "$capacity_offset" "\xff\xff\xff\xff"
9ae3a8
 poke_file "$TEST_IMG" "$grain_table_size_offset" "\x01\x00\x00\x00"
9ae3a8
 { $QEMU_IO -c "read 0 512" $TEST_IMG; } 2>&1 | _filter_qemu_io | _filter_testdir
9ae3a8
 
9ae3a8
+echo "=== Testing monolithicFlat creation and opening ==="
9ae3a8
+echo
9ae3a8
+IMGOPTS="subformat=monolithicFlat" _make_test_img 2G
9ae3a8
+$QEMU_IMG info $TEST_IMG | _filter_testdir
9ae3a8
+
9ae3a8
 # success, all done
9ae3a8
 echo "*** done"
9ae3a8
 rm -f $seq.full
9ae3a8
diff --git a/tests/qemu-iotests/059.out b/tests/qemu-iotests/059.out
9ae3a8
index 9e715e5..2a4c44d 100644
9ae3a8
--- a/tests/qemu-iotests/059.out
9ae3a8
+++ b/tests/qemu-iotests/059.out
9ae3a8
@@ -17,4 +17,11 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
9ae3a8
 L1 size too big
9ae3a8
 qemu-io: can't open device TEST_DIR/t.vmdk
9ae3a8
 no file open, try 'help open'
9ae3a8
+=== Testing monolithicFlat creation and opening ===
9ae3a8
+
9ae3a8
+Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=2147483648
9ae3a8
+image: TEST_DIR/t.vmdk
9ae3a8
+file format: vmdk
9ae3a8
+virtual size: 2.0G (2147483648 bytes)
9ae3a8
+disk size: 4.0K
9ae3a8
 *** done
9ae3a8
-- 
9ae3a8
1.7.1
9ae3a8