* [PATCH 0/4] Test qemu-img with different options
@ 2020-10-21 7:33 likejun6
2020-10-21 7:33 ` [PATCH 1/4] qemu-iotest: add 308 testcase likejun6
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: likejun6 @ 2020-10-21 7:33 UTC (permalink / raw)
To: qemu-block
Cc: kwolf, zhang.zhanghailiang, qemu-devel, xiexiangyou, mreitz, likejun
From: likejun <likejun6@huawei.com>
This patch set add those iotests:
308: Test thick image creation, size and rw;
309: Test raw thin provisioned image creation, size and rw;
310: Test falloc image creation, size and rw;
311: Test backing file is raw;
likejun (4):
qemu-iotest: add 308 testcase
qemu-iotest: add 309 testcase
qemu-iotest: add 310 testcase
qemu-iotest: add 311 testcase
tests/qemu-iotests/308 | 104 +++++++++++++++++++++++++++++++++++++
tests/qemu-iotests/308.out | 21 ++++++++
tests/qemu-iotests/309 | 102 ++++++++++++++++++++++++++++++++++++
tests/qemu-iotests/309.out | 21 ++++++++
tests/qemu-iotests/310 | 104 +++++++++++++++++++++++++++++++++++++
tests/qemu-iotests/310.out | 21 ++++++++
tests/qemu-iotests/311 | 70 +++++++++++++++++++++++++
tests/qemu-iotests/311.out | 30 +++++++++++
tests/qemu-iotests/group | 4 ++
9 files changed, 477 insertions(+)
create mode 100755 tests/qemu-iotests/308
create mode 100644 tests/qemu-iotests/308.out
create mode 100755 tests/qemu-iotests/309
create mode 100644 tests/qemu-iotests/309.out
create mode 100755 tests/qemu-iotests/310
create mode 100644 tests/qemu-iotests/310.out
create mode 100755 tests/qemu-iotests/311
create mode 100644 tests/qemu-iotests/311.out
--
2.19.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/4] qemu-iotest: add 308 testcase
2020-10-21 7:33 [PATCH 0/4] Test qemu-img with different options likejun6
@ 2020-10-21 7:33 ` likejun6
2020-10-21 7:33 ` [PATCH 2/4] qemu-iotest: add 309 testcase likejun6
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: likejun6 @ 2020-10-21 7:33 UTC (permalink / raw)
To: qemu-block
Cc: kwolf, zhang.zhanghailiang, qemu-devel, xiexiangyou, mreitz, likejun
From: likejun <likejun6@huawei.com>
Test thick image creation, size and rw
Signed-off-by: likejun <likejun6@huawei.com>
---
tests/qemu-iotests/308 | 104 +++++++++++++++++++++++++++++++++++++
tests/qemu-iotests/308.out | 21 ++++++++
tests/qemu-iotests/group | 1 +
3 files changed, 126 insertions(+)
create mode 100755 tests/qemu-iotests/308
create mode 100644 tests/qemu-iotests/308.out
diff --git a/tests/qemu-iotests/308 b/tests/qemu-iotests/308
new file mode 100755
index 0000000000..a97e312017
--- /dev/null
+++ b/tests/qemu-iotests/308
@@ -0,0 +1,104 @@
+#!/bin/bash
+#
+# Test thick image creation, size and rw
+#
+# Copyright (C) 2020 Huawei, Inc
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+# creator
+owner=zhangshuai13@huawei.com
+
+seq=`basename $0`
+echo "QA output created by $seq"
+
+status=1 # failure is the default!
+
+_cleanup()
+{
+ _cleanup_test_img
+}
+trap "_cleanup; exit \$status" 0 1 2 3 15
+
+# get standard environment, filters and checks
+. ./common.rc >/dev/null 2>&1
+. ./common.filter
+
+_supported_fmt qcow2
+_supported_proto file
+_supported_os Linux
+
+_img_info_tmp()
+{
+ if [[ "$1" == "--format-specific" ]]; then
+ local format_specific=1
+ shift
+ else
+ local format_specific=0
+ fi
+
+ discard=0
+ regex_json_spec_start='^ *"format-specific": \{'
+ $QEMU_IMG info "$@" "$TEST_IMG" 2>&1 | \
+ sed -e "s#$IMGPROTO:$TEST_DIR#TEST_DIR#g" \
+ -e "s#$TEST_DIR#TEST_DIR#g" \
+ -e "s#$IMGFMT#IMGFMT#g" \
+ -e "/actual-size/ D" | \
+ while IFS='' read line; do
+ if [[ $format_specific == 1 ]]; then
+ discard=0
+ elif [[ $line == "Format specific information:" ]]; then
+ discard=1
+ elif [[ $line =~ $regex_json_spec_start ]]; then
+ discard=2
+ regex_json_spec_end="^${line%%[^ ]*}\\},? *$"
+ fi
+ if [[ $discard == 0 ]]; then
+ echo "$line"
+ elif [[ $discard == 1 && ! $line ]]; then
+ echo
+ discard=0
+ elif [[ $discard == 2 && $line =~ $regex_json_spec_end ]]; then
+ discard=0
+ fi
+ done
+}
+
+IMGOPTS="preallocation=full"
+
+echo "=== Check qemu-img info output ==="
+echo
+size=64M
+
+_make_test_img $size
+_img_info_tmp | _filter_img_info
+
+echo
+echo "== reading whole image =="
+$QEMU_IO -c "read 0 $size" "$TEST_IMG" | _filter_qemu_io
+
+echo
+echo "== rewriting whole image =="
+$QEMU_IO -c "write -P 0xa 0 $size" "$TEST_IMG" | _filter_qemu_io
+
+echo
+echo "== verify pattern =="
+$QEMU_IO -c "read -P 0xa 0 $size" "$TEST_IMG" | _filter_qemu_io
+
+
+# success, all done
+echo "*** done"
+rm -f $seq.full
+status=0
diff --git a/tests/qemu-iotests/308.out b/tests/qemu-iotests/308.out
new file mode 100644
index 0000000000..209237c8c8
--- /dev/null
+++ b/tests/qemu-iotests/308.out
@@ -0,0 +1,21 @@
+QA output created by 308
+=== Check qemu-img info output ===
+
+Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 preallocation=full
+image: TEST_DIR/t.IMGFMT
+file format: IMGFMT
+virtual size: 64 MiB (67108864 bytes)
+disk size: 64.3 MiB
+
+== reading whole image ==
+read 67108864/67108864 bytes at offset 0
+64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+
+== rewriting whole image ==
+wrote 67108864/67108864 bytes at offset 0
+64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+
+== verify pattern ==
+read 67108864/67108864 bytes at offset 0
+64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+*** done
diff --git a/tests/qemu-iotests/group b/tests/qemu-iotests/group
index 3432989283..25a876ef20 100644
--- a/tests/qemu-iotests/group
+++ b/tests/qemu-iotests/group
@@ -315,3 +315,4 @@
304 rw quick
305 rw quick
307 rw quick export
+308 rw auto quick
--
2.19.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/4] qemu-iotest: add 309 testcase
2020-10-21 7:33 [PATCH 0/4] Test qemu-img with different options likejun6
2020-10-21 7:33 ` [PATCH 1/4] qemu-iotest: add 308 testcase likejun6
@ 2020-10-21 7:33 ` likejun6
2020-10-21 7:33 ` [PATCH 3/4] qemu-iotest: add 310 testcase likejun6
2020-10-21 7:33 ` [PATCH 4/4] qemu-iotest: add 311 testcase likejun6
3 siblings, 0 replies; 5+ messages in thread
From: likejun6 @ 2020-10-21 7:33 UTC (permalink / raw)
To: qemu-block
Cc: kwolf, zhang.zhanghailiang, qemu-devel, xiexiangyou, mreitz, likejun
From: likejun <likejun6@huawei.com>
Test raw thin provisioned image creation, size and rw
Signed-off-by: likejun <likejun6@huawei.com>
---
tests/qemu-iotests/309 | 102 +++++++++++++++++++++++++++++++++++++
tests/qemu-iotests/309.out | 21 ++++++++
tests/qemu-iotests/group | 1 +
3 files changed, 124 insertions(+)
create mode 100755 tests/qemu-iotests/309
create mode 100644 tests/qemu-iotests/309.out
diff --git a/tests/qemu-iotests/309 b/tests/qemu-iotests/309
new file mode 100755
index 0000000000..7bbe5a1704
--- /dev/null
+++ b/tests/qemu-iotests/309
@@ -0,0 +1,102 @@
+#!/bin/bash
+#
+# Test raw thin provisioned image creation, size and rw
+#
+# Copyright (C) 2020 Huawei, Inc
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+# creator
+owner=zhangshuai13@huawei.com
+
+seq=`basename $0`
+echo "QA output created by $seq"
+
+status=1 # failure is the default!
+
+_cleanup()
+{
+ _cleanup_test_img
+}
+trap "_cleanup; exit \$status" 0 1 2 3 15
+
+# get standard environment, filters and checks
+. ./common.rc >/dev/null 2>&1
+. ./common.filter
+
+_supported_fmt qcow2
+_supported_proto file
+_supported_os Linux
+
+_img_info_tmp()
+{
+ if [[ "$1" == "--format-specific" ]]; then
+ local format_specific=1
+ shift
+ else
+ local format_specific=0
+ fi
+
+ discard=0
+ regex_json_spec_start='^ *"format-specific": \{'
+ $QEMU_IMG info "$@" "$TEST_IMG" 2>&1 | \
+ sed -e "s#$IMGPROTO:$TEST_DIR#TEST_DIR#g" \
+ -e "s#$TEST_DIR#TEST_DIR#g" \
+ -e "s#$IMGFMT#IMGFMT#g" \
+ -e "/actual-size/ D" | \
+ while IFS='' read line; do
+ if [[ $format_specific == 1 ]]; then
+ discard=0
+ elif [[ $line == "Format specific information:" ]]; then
+ discard=1
+ elif [[ $line =~ $regex_json_spec_start ]]; then
+ discard=2
+ regex_json_spec_end="^${line%%[^ ]*}\\},? *$"
+ fi
+ if [[ $discard == 0 ]]; then
+ echo "$line"
+ elif [[ $discard == 1 && ! $line ]]; then
+ echo
+ discard=0
+ elif [[ $discard == 2 && $line =~ $regex_json_spec_end ]]; then
+ discard=0
+ fi
+ done
+}
+
+echo "=== Check qemu-img info output ==="
+echo
+size=64M
+
+_make_test_img $size
+_img_info_tmp | _filter_img_info
+
+echo
+echo "== reading whole image =="
+$QEMU_IO -c "read 0 $size" "$TEST_IMG" | _filter_qemu_io
+
+echo
+echo "== rewriting whole image =="
+$QEMU_IO -c "write -P 0xa 0 $size" "$TEST_IMG" | _filter_qemu_io
+
+echo
+echo "== verify pattern =="
+$QEMU_IO -c "read -P 0xa 0 $size" "$TEST_IMG" | _filter_qemu_io
+
+
+# success, all done
+echo "*** done"
+rm -f $seq.full
+status=0
diff --git a/tests/qemu-iotests/309.out b/tests/qemu-iotests/309.out
new file mode 100644
index 0000000000..c5e7757a15
--- /dev/null
+++ b/tests/qemu-iotests/309.out
@@ -0,0 +1,21 @@
+QA output created by 309
+=== Check qemu-img info output ===
+
+Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
+image: TEST_DIR/t.IMGFMT
+file format: IMGFMT
+virtual size: 64 MiB (67108864 bytes)
+disk size: 196 KiB
+
+== reading whole image ==
+read 67108864/67108864 bytes at offset 0
+64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+
+== rewriting whole image ==
+wrote 67108864/67108864 bytes at offset 0
+64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+
+== verify pattern ==
+read 67108864/67108864 bytes at offset 0
+64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+*** done
diff --git a/tests/qemu-iotests/group b/tests/qemu-iotests/group
index 25a876ef20..632a05b25e 100644
--- a/tests/qemu-iotests/group
+++ b/tests/qemu-iotests/group
@@ -316,3 +316,4 @@
305 rw quick
307 rw quick export
308 rw auto quick
+309 rw auto quick
--
2.19.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/4] qemu-iotest: add 310 testcase
2020-10-21 7:33 [PATCH 0/4] Test qemu-img with different options likejun6
2020-10-21 7:33 ` [PATCH 1/4] qemu-iotest: add 308 testcase likejun6
2020-10-21 7:33 ` [PATCH 2/4] qemu-iotest: add 309 testcase likejun6
@ 2020-10-21 7:33 ` likejun6
2020-10-21 7:33 ` [PATCH 4/4] qemu-iotest: add 311 testcase likejun6
3 siblings, 0 replies; 5+ messages in thread
From: likejun6 @ 2020-10-21 7:33 UTC (permalink / raw)
To: qemu-block
Cc: kwolf, zhang.zhanghailiang, qemu-devel, xiexiangyou, mreitz, likejun
From: likejun <likejun6@huawei.com>
Test falloc image creation, size and rw
Signed-off-by: likejun <likejun6@huawei.com>
---
tests/qemu-iotests/310 | 104 +++++++++++++++++++++++++++++++++++++
tests/qemu-iotests/310.out | 21 ++++++++
tests/qemu-iotests/group | 1 +
3 files changed, 126 insertions(+)
create mode 100755 tests/qemu-iotests/310
create mode 100644 tests/qemu-iotests/310.out
diff --git a/tests/qemu-iotests/310 b/tests/qemu-iotests/310
new file mode 100755
index 0000000000..af9f03e91f
--- /dev/null
+++ b/tests/qemu-iotests/310
@@ -0,0 +1,104 @@
+#!/bin/bash
+#
+# Test falloc image creation, size and rw
+#
+# Copyright (C) 2020 Huawei, Inc
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+# creator
+owner=zhangshuai13@huawei.com
+
+seq=`basename $0`
+echo "QA output created by $seq"
+
+status=1 # failure is the default!
+
+_cleanup()
+{
+ _cleanup_test_img
+}
+trap "_cleanup; exit \$status" 0 1 2 3 15
+
+# get standard environment, filters and checks
+. ./common.rc >/dev/null 2>&1
+. ./common.filter
+
+_supported_fmt qcow2
+_supported_proto file
+_supported_os Linux
+
+_img_info_tmp()
+{
+ if [[ "$1" == "--format-specific" ]]; then
+ local format_specific=1
+ shift
+ else
+ local format_specific=0
+ fi
+
+ discard=0
+ regex_json_spec_start='^ *"format-specific": \{'
+ $QEMU_IMG info "$@" "$TEST_IMG" 2>&1 | \
+ sed -e "s#$IMGPROTO:$TEST_DIR#TEST_DIR#g" \
+ -e "s#$TEST_DIR#TEST_DIR#g" \
+ -e "s#$IMGFMT#IMGFMT#g" \
+ -e "/actual-size/ D" | \
+ while IFS='' read line; do
+ if [[ $format_specific == 1 ]]; then
+ discard=0
+ elif [[ $line == "Format specific information:" ]]; then
+ discard=1
+ elif [[ $line =~ $regex_json_spec_start ]]; then
+ discard=2
+ regex_json_spec_end="^${line%%[^ ]*}\\},? *$"
+ fi
+ if [[ $discard == 0 ]]; then
+ echo "$line"
+ elif [[ $discard == 1 && ! $line ]]; then
+ echo
+ discard=0
+ elif [[ $discard == 2 && $line =~ $regex_json_spec_end ]]; then
+ discard=0
+ fi
+ done
+}
+
+IMGOPTS="preallocation=falloc"
+
+echo "=== Check qemu-img info output ==="
+echo
+size=64M
+
+_make_test_img $size
+_img_info_tmp | _filter_img_info
+
+echo
+echo "== reading whole image =="
+$QEMU_IO -c "read 0 $size" "$TEST_IMG" | _filter_qemu_io
+
+echo
+echo "== rewriting whole image =="
+$QEMU_IO -c "write -P 0xa 0 $size" "$TEST_IMG" | _filter_qemu_io
+
+echo
+echo "== verify pattern =="
+$QEMU_IO -c "read -P 0xa 0 $size" "$TEST_IMG" | _filter_qemu_io
+
+
+# success, all done
+echo "*** done"
+rm -f $seq.full
+status=0
diff --git a/tests/qemu-iotests/310.out b/tests/qemu-iotests/310.out
new file mode 100644
index 0000000000..dcca649360
--- /dev/null
+++ b/tests/qemu-iotests/310.out
@@ -0,0 +1,21 @@
+QA output created by 310
+=== Check qemu-img info output ===
+
+Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 preallocation=falloc
+image: TEST_DIR/t.IMGFMT
+file format: IMGFMT
+virtual size: 64 MiB (67108864 bytes)
+disk size: 64.3 MiB
+
+== reading whole image ==
+read 67108864/67108864 bytes at offset 0
+64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+
+== rewriting whole image ==
+wrote 67108864/67108864 bytes at offset 0
+64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+
+== verify pattern ==
+read 67108864/67108864 bytes at offset 0
+64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+*** done
diff --git a/tests/qemu-iotests/group b/tests/qemu-iotests/group
index 632a05b25e..e8b6480890 100644
--- a/tests/qemu-iotests/group
+++ b/tests/qemu-iotests/group
@@ -317,3 +317,4 @@
307 rw quick export
308 rw auto quick
309 rw auto quick
+310 rw auto quick
--
2.19.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 4/4] qemu-iotest: add 311 testcase
2020-10-21 7:33 [PATCH 0/4] Test qemu-img with different options likejun6
` (2 preceding siblings ...)
2020-10-21 7:33 ` [PATCH 3/4] qemu-iotest: add 310 testcase likejun6
@ 2020-10-21 7:33 ` likejun6
3 siblings, 0 replies; 5+ messages in thread
From: likejun6 @ 2020-10-21 7:33 UTC (permalink / raw)
To: qemu-block
Cc: kwolf, zhang.zhanghailiang, qemu-devel, xiexiangyou, mreitz, likejun
From: likejun <likejun6@huawei.com>
Test backing file is raw
Signed-off-by: likejun <likejun6@huawei.com>
---
tests/qemu-iotests/311 | 70 ++++++++++++++++++++++++++++++++++++++
tests/qemu-iotests/311.out | 30 ++++++++++++++++
tests/qemu-iotests/group | 1 +
3 files changed, 101 insertions(+)
create mode 100755 tests/qemu-iotests/311
create mode 100644 tests/qemu-iotests/311.out
diff --git a/tests/qemu-iotests/311 b/tests/qemu-iotests/311
new file mode 100755
index 0000000000..6c2b9f987f
--- /dev/null
+++ b/tests/qemu-iotests/311
@@ -0,0 +1,70 @@
+#!/bin/bash
+#
+# Test backing file is raw
+#
+# Copyright (C) 2020 Huawei, Inc
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+# creator
+owner=zhangshuai13@huawei.com
+
+seq=`basename $0`
+echo "QA output created by $seq"
+
+status=1 # failure is the default!
+
+_cleanup()
+{
+ _cleanup_test_img
+}
+trap "_cleanup; exit \$status" 0 1 2 3 15
+
+# get standard environment, filters and checks
+. ./common.rc >/dev/null 2>&1
+. ./common.filter
+
+_supported_fmt qcow2
+_supported_proto file
+_supported_os Linux
+
+echo "=== Check qemu-img info output ==="
+echo
+size=64M
+
+$QEMU_IMG create -f raw $TEST_IMG $size | _filter_img_create
+_img_info | _filter_img_info
+mv "$TEST_IMG" "$TEST_IMG.base"
+
+_make_test_img -b $TEST_IMG.base -F raw
+_img_info --backing-chain | _filter_img_info
+
+echo
+echo "== reading whole image =="
+$QEMU_IO -c "read 0 $size" "$TEST_IMG" | _filter_qemu_io
+
+echo
+echo "== rewriting whole image =="
+$QEMU_IO -c "write -P 0xa 0 $size" "$TEST_IMG" | _filter_qemu_io
+
+echo
+echo "== verify pattern =="
+$QEMU_IO -c "read -P 0xa 0 $size" "$TEST_IMG" | _filter_qemu_io
+
+
+# success, all done
+echo "*** done"
+rm -f $seq.full
+status=0
diff --git a/tests/qemu-iotests/311.out b/tests/qemu-iotests/311.out
new file mode 100644
index 0000000000..03b8374c04
--- /dev/null
+++ b/tests/qemu-iotests/311.out
@@ -0,0 +1,30 @@
+QA output created by 311
+=== Check qemu-img info output ===
+
+Formatting 'TEST_DIR/t.IMGFMT', fmt=raw size=67108864
+image: TEST_DIR/t.IMGFMT
+file format: raw
+virtual size: 64 MiB (67108864 bytes)
+Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw
+image: TEST_DIR/t.IMGFMT
+file format: IMGFMT
+virtual size: 64 MiB (67108864 bytes)
+backing file: TEST_DIR/t.IMGFMT.base
+backing file format: raw
+
+image: TEST_DIR/t.IMGFMT.base
+file format: raw
+virtual size: 64 MiB (67108864 bytes)
+
+== reading whole image ==
+read 67108864/67108864 bytes at offset 0
+64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+
+== rewriting whole image ==
+wrote 67108864/67108864 bytes at offset 0
+64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+
+== verify pattern ==
+read 67108864/67108864 bytes at offset 0
+64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+*** done
diff --git a/tests/qemu-iotests/group b/tests/qemu-iotests/group
index e8b6480890..ec57e16f07 100644
--- a/tests/qemu-iotests/group
+++ b/tests/qemu-iotests/group
@@ -318,3 +318,4 @@
308 rw auto quick
309 rw auto quick
310 rw auto quick
+311 rw auto quick
--
2.19.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-10-21 8:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-21 7:33 [PATCH 0/4] Test qemu-img with different options likejun6
2020-10-21 7:33 ` [PATCH 1/4] qemu-iotest: add 308 testcase likejun6
2020-10-21 7:33 ` [PATCH 2/4] qemu-iotest: add 309 testcase likejun6
2020-10-21 7:33 ` [PATCH 3/4] qemu-iotest: add 310 testcase likejun6
2020-10-21 7:33 ` [PATCH 4/4] qemu-iotest: add 311 testcase likejun6
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).