I/O tests cleanups
PATCH 7/10 qemu-iotests: remove the concept of $seq.full (and boiler plate code)
In reply to Cleber RosaThe $seq.full file, in theory, should contain the full output of a test error. In practice, it's only used on a single test, and the boiler plate code to clean it up plagues all other tests.
Let's remove the concept altogether, and record the failure in the output itself for the one test using this function.
--- tests/qemu-iotests/001 | 1 - tests/qemu-iotests/002 | 1 - tests/qemu-iotests/003 | 1 - tests/qemu-iotests/004 | 1 - tests/qemu-iotests/005 | 1 - tests/qemu-iotests/007 | 1 - tests/qemu-iotests/008 | 1 - tests/qemu-iotests/009 | 1 - tests/qemu-iotests/010 | 1 - tests/qemu-iotests/011 | 1 - tests/qemu-iotests/012 | 1 - tests/qemu-iotests/013 | 1 - tests/qemu-iotests/014 | 1 - tests/qemu-iotests/015 | 1 - tests/qemu-iotests/017 | 1 - tests/qemu-iotests/018 | 1 - tests/qemu-iotests/019 | 1 - tests/qemu-iotests/020 | 1 - tests/qemu-iotests/021 | 1 - tests/qemu-iotests/022 | 1 - tests/qemu-iotests/023 | 1 - tests/qemu-iotests/024 | 1 - tests/qemu-iotests/025 | 1 - tests/qemu-iotests/026 | 1 - tests/qemu-iotests/027 | 1 - tests/qemu-iotests/028 | 1 - tests/qemu-iotests/029 | 1 - tests/qemu-iotests/031 | 1 - tests/qemu-iotests/032 | 1 - tests/qemu-iotests/033 | 1 - tests/qemu-iotests/034 | 1 - tests/qemu-iotests/035 | 1 - tests/qemu-iotests/036 | 1 - tests/qemu-iotests/037 | 1 - tests/qemu-iotests/038 | 1 - tests/qemu-iotests/039 | 1 - tests/qemu-iotests/042 | 1 - tests/qemu-iotests/043 | 1 - tests/qemu-iotests/046 | 1 - tests/qemu-iotests/047 | 1 - tests/qemu-iotests/049 | 1 - tests/qemu-iotests/050 | 1 - tests/qemu-iotests/051 | 1 - tests/qemu-iotests/052 | 1 - tests/qemu-iotests/053 | 1 - tests/qemu-iotests/054 | 1 - tests/qemu-iotests/058 | 1 - tests/qemu-iotests/059 | 1 - tests/qemu-iotests/060 | 1 - tests/qemu-iotests/061 | 1 - tests/qemu-iotests/062 | 1 - tests/qemu-iotests/063 | 1 - tests/qemu-iotests/064 | 1 - tests/qemu-iotests/066 | 1 - tests/qemu-iotests/067 | 1 - tests/qemu-iotests/068 | 1 - tests/qemu-iotests/069 | 1 - tests/qemu-iotests/070 | 1 - tests/qemu-iotests/071 | 1 - tests/qemu-iotests/072 | 1 - tests/qemu-iotests/073 | 1 - tests/qemu-iotests/075 | 1 - tests/qemu-iotests/076 | 1 - tests/qemu-iotests/077 | 1 - tests/qemu-iotests/078 | 1 - tests/qemu-iotests/079 | 1 - tests/qemu-iotests/080 | 1 - tests/qemu-iotests/081 | 1 - tests/qemu-iotests/082 | 1 - tests/qemu-iotests/083 | 1 - tests/qemu-iotests/084 | 1 - tests/qemu-iotests/085 | 1 - tests/qemu-iotests/086 | 1 - tests/qemu-iotests/087 | 1 - tests/qemu-iotests/088 | 1 - tests/qemu-iotests/089 | 1 - tests/qemu-iotests/090 | 1 - tests/qemu-iotests/091 | 1 - tests/qemu-iotests/092 | 1 - tests/qemu-iotests/094 | 1 - tests/qemu-iotests/095 | 1 - tests/qemu-iotests/097 | 1 - tests/qemu-iotests/098 | 1 - tests/qemu-iotests/099 | 1 - tests/qemu-iotests/101 | 1 - tests/qemu-iotests/102 | 1 - tests/qemu-iotests/103 | 1 - tests/qemu-iotests/104 | 1 - tests/qemu-iotests/105 | 1 - tests/qemu-iotests/106 | 1 - tests/qemu-iotests/107 | 1 - tests/qemu-iotests/108 | 1 - tests/qemu-iotests/109 | 1 - tests/qemu-iotests/110 | 1 - tests/qemu-iotests/111 | 1 - tests/qemu-iotests/112 | 1 - tests/qemu-iotests/113 | 1 - tests/qemu-iotests/114 | 1 - tests/qemu-iotests/115 | 1 - tests/qemu-iotests/116 | 1 - tests/qemu-iotests/117 | 1 - tests/qemu-iotests/119 | 1 - tests/qemu-iotests/120 | 1 - tests/qemu-iotests/121 | 1 - tests/qemu-iotests/122 | 1 - tests/qemu-iotests/123 | 1 - tests/qemu-iotests/125 | 1 - tests/qemu-iotests/126 | 1 - tests/qemu-iotests/127 | 1 - tests/qemu-iotests/128 | 1 - tests/qemu-iotests/130 | 1 - tests/qemu-iotests/131 | 1 - tests/qemu-iotests/133 | 1 - tests/qemu-iotests/134 | 1 - tests/qemu-iotests/135 | 1 - tests/qemu-iotests/137 | 1 - tests/qemu-iotests/138 | 1 - tests/qemu-iotests/140 | 1 - tests/qemu-iotests/141 | 1 - tests/qemu-iotests/142 | 1 - tests/qemu-iotests/143 | 1 - tests/qemu-iotests/144 | 1 - tests/qemu-iotests/145 | 1 - tests/qemu-iotests/146 | 1 - tests/qemu-iotests/150 | 1 - tests/qemu-iotests/153 | 1 - tests/qemu-iotests/154 | 1 - tests/qemu-iotests/156 | 1 - tests/qemu-iotests/157 | 1 - tests/qemu-iotests/158 | 1 - tests/qemu-iotests/162 | 1 - tests/qemu-iotests/171 | 1 - tests/qemu-iotests/172 | 1 - tests/qemu-iotests/173 | 1 - tests/qemu-iotests/174 | 9 +++++++-- tests/qemu-iotests/175 | 1 - tests/qemu-iotests/176 | 1 - tests/qemu-iotests/178 | 1 - tests/qemu-iotests/181 | 1 - tests/qemu-iotests/182 | 1 - tests/qemu-iotests/183 | 1 - tests/qemu-iotests/184 | 1 - tests/qemu-iotests/185 | 1 - tests/qemu-iotests/186 | 1 - tests/qemu-iotests/187 | 1 - tests/qemu-iotests/188 | 1 - tests/qemu-iotests/189 | 1 - tests/qemu-iotests/190 | 1 - tests/qemu-iotests/191 | 1 - tests/qemu-iotests/192 | 1 - tests/qemu-iotests/195 | 1 - 151 files changed, 7 insertions(+), 152 deletions(-)
tests/qemu-iotests/001 +0 -1
@@ -58,5 +58,4 @@ $QEMU_IO -c "read -P 0xa 0 $size" "$TEST_IMG" | _filter_qemu_io # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/002 +0 -1
@@ -78,5 +78,4 @@ $QEMU_IO -c 'read -pP 0xa 262186 470' "$TEST_IMG" | _filter_qemu_io # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/003 +0 -1
@@ -71,5 +71,4 @@ $QEMU_IO -c "readv -P 0xb $offset $chunksize $chunksize \ # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/004 +0 -1
@@ -97,5 +97,4 @@ $QEMU_IO -c "readv $past_offset 4096" "$TEST_IMG" # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/005 +0 -1
@@ -68,5 +68,4 @@ $QEMU_IO -c "write 8192 4096" "$TEST_IMG" | _filter_qemu_io # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/007 +0 -1
@@ -62,5 +62,4 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/008 +0 -1
@@ -58,5 +58,4 @@ $QEMU_IO -c "aio_read -P 0xa 0 $size" "$TEST_IMG" | _filter_qemu_io # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/009 +0 -1
@@ -62,5 +62,4 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/010 +0 -1
@@ -64,5 +64,4 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/011 +0 -1
@@ -68,5 +68,4 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/012 +0 -1
@@ -58,5 +58,4 @@ $QEMU_IO -r -c "read 0 512" "$TEST_IMG" | _filter_qemu_io # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/013 +0 -1
@@ -91,5 +91,4 @@ done # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/014 +0 -1
@@ -70,5 +70,4 @@ done # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/015 +0 -1
@@ -80,5 +80,4 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/017 +0 -1
@@ -98,5 +98,4 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/018 +0 -1
@@ -100,5 +100,4 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/019 +0 -1
@@ -126,5 +126,4 @@ done # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/020 +0 -1
@@ -111,5 +111,4 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/021 +0 -1
@@ -56,5 +56,4 @@ done # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/022 +0 -1
@@ -60,5 +60,4 @@ done # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/023 +0 -1
@@ -113,5 +113,4 @@ done # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/024 +0 -1
@@ -124,5 +124,4 @@ io_pattern readv $((15 * CLUSTER_SIZE)) $CLUSTER_SIZE 0 1 0x00 # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/025 +0 -1
@@ -71,5 +71,4 @@ io_pattern read $small_size $(($big_size - $small_size)) 0 1 0 # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/026 +0 -1
@@ -200,5 +200,4 @@ done # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/027 +0 -1
@@ -71,5 +71,4 @@ $QEMU_IO -c "read -pP 0 -l 512 -s $subcluster_size $subcluster_offset $(( subclu # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/028 +0 -1
@@ -134,5 +134,4 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/029 +0 -1
@@ -95,5 +95,4 @@ poke_file "$TEST_IMG" "$offset_l1_size" "\x00\x00\x00\x01" # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/031 +0 -1
@@ -73,5 +73,4 @@ done # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/032 +0 -1
@@ -62,5 +62,4 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/033 +0 -1
@@ -102,5 +102,4 @@ done # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/034 +0 -1
@@ -113,5 +113,4 @@ $QEMU_IO -c "read -P 0x55 526k 498k" "$TEST_IMG" | _filter_qemu_io # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/035 +0 -1
@@ -65,5 +65,4 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/036 +0 -1
@@ -114,5 +114,4 @@ $PYTHON qcow2.py "$TEST_IMG" dump-header # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/037 +0 -1
@@ -118,5 +118,4 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/038 +0 -1
@@ -130,5 +130,4 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/039 +0 -1
@@ -174,6 +174,5 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/042 +0 -1
@@ -70,6 +70,5 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/043 +0 -1
@@ -88,5 +88,4 @@ _img_info --backing-chain --output=json # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/046 +0 -1
@@ -265,5 +265,4 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/047 +0 -1
@@ -68,5 +68,4 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/049 +0 -1
@@ -116,5 +116,4 @@ test_qemu_img create -f $IMGFMT -o compat=0.10,lazy_refcounts=on "$TEST_IMG" 64M # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/050 +0 -1
@@ -73,5 +73,4 @@ $QEMU_IO -c "read -P 0x00 0 1048576" "$TEST_IMG" | _filter_qemu_io # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/051 +0 -1
@@ -341,5 +341,4 @@ $QEMU_IO -c "read -P 0x33 0 4k" "$TEST_IMG" | _filter_qemu_io # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/052 +0 -1
@@ -60,5 +60,4 @@ $QEMU_IO -c "read -P 0 0 $size" "$TEST_IMG" | _filter_qemu_io # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/053 +0 -1
@@ -65,6 +65,5 @@ $QEMU_IO -c "read -P0xa 0 512" "$TEST_IMG" | _filter_qemu_io # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/054 +0 -1
@@ -51,5 +51,4 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/058 +0 -1
@@ -141,5 +141,4 @@ $QEMU_IO -c 'read -P 0xb 0x2000 0x1000' "$converted_image" | _filter_qemu_io # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/059 +0 -1
@@ -155,5 +155,4 @@ _cleanup_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/060 +0 -1
@@ -301,5 +301,4 @@ $QEMU_IO -c "write 0 64k" "$TEST_IMG" | _filter_qemu_io # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/061 +0 -1
@@ -235,5 +235,4 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/062 +0 -1
@@ -57,5 +57,4 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/063 +0 -1
@@ -90,6 +90,5 @@ if $QEMU_IMG convert -f $IMGFMT -O $IMGFMT -n "$TEST_IMG.orig" "$TEST_IMG" >/dev fi echo "*** done" -rm -f $seq.full status=0 exit 0
tests/qemu-iotests/064 +0 -1
@@ -81,5 +81,4 @@ $QEMU_IO -c "read -pP 0xc3 99M 58M" "$TEST_IMG" | _filter_qemu_io # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/066 +0 -1
@@ -184,5 +184,4 @@ _cleanup_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/067 +0 -1
@@ -150,5 +150,4 @@ EOF # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/068 +0 -1
@@ -81,5 +81,4 @@ done # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/069 +0 -1
@@ -53,5 +53,4 @@ $QEMU_IO -c quit "$TEST_IMG" 2>&1 | _filter_testdir | _filter_imgfmt # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/070 +0 -1
@@ -78,5 +78,4 @@ _img_info # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/071 +0 -1
@@ -252,5 +252,4 @@ EOF # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/072 +0 -1
@@ -62,5 +62,4 @@ $QEMU_IO -c 'read -P 42 0 512' "$TEST_IMG" | _filter_qemu_io # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/073 +0 -1
@@ -160,5 +160,4 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/075 +0 -1
@@ -99,5 +99,4 @@ $QEMU_IO -c "read 0 512" $TEST_IMG 2>&1 | _filter_qemu_io | _filter_testdir # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/076 +0 -1
@@ -79,5 +79,4 @@ _use_sample_img parallels-v2.bz2 # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/077 +0 -1
@@ -262,5 +262,4 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/078 +0 -1
@@ -84,5 +84,4 @@ poke_file "$TEST_IMG" "$extent_size_offset" "\x00\x00\x00\x00" # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/079 +0 -1
@@ -50,5 +50,4 @@ done # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/080 +0 -1
@@ -177,5 +177,4 @@ poke_file "$TEST_IMG" "$offset_snap1_l1_size" "\x10\x00\x00\x00" # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/081 +0 -1
@@ -168,5 +168,4 @@ $QEMU_IO -c "open -o $quorum" -c "read -P 0x32 0 $size" | _filter_qemu_io # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/082 +0 -1
@@ -201,5 +201,4 @@ run_qemu_img convert -o help # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/083 +0 -1
@@ -146,5 +146,4 @@ done # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/084 +0 -1
@@ -109,5 +109,4 @@ _img_info # success, all done echo echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/085 +0 -1
@@ -241,5 +241,4 @@ _send_qemu_cmd $h "{ 'execute': 'blockdev-snapshot', # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/086 +0 -1
@@ -58,5 +58,4 @@ $QEMU_IMG convert -p -O $IMGFMT -f $IMGFMT "$TEST_IMG" "$TEST_IMG".base 2>&1 |\ # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/087 +0 -1
@@ -199,5 +199,4 @@ EOF # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/088 +0 -1
@@ -57,5 +57,4 @@ poke_file "$TEST_IMG" "$offset_block_size" "\x12\x34\x56\x78" # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/089 +0 -1
@@ -126,5 +126,4 @@ $QEMU_IO -c "open -o driver=qcow2 json:{\"driver\":\"raw\",\"file.filename\":\"$ # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/090 +0 -1
@@ -54,5 +54,4 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/091 +0 -1
@@ -103,5 +103,4 @@ echo "Running 'qemu-img check -r all \$TEST_IMG'" "${QEMU_IMG}" check -r all "${TEST_IMG}" 2>&1 | _filter_testdir | _filter_qemu echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/092 +0 -1
@@ -91,5 +91,4 @@ poke_file "$TEST_IMG" "$offset_backing_file_size" "\x7f\xff\xff\xff" # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/094 +0 -1
@@ -80,5 +80,4 @@ wait=1 _cleanup_qemu # success, all done echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/095 +0 -1
@@ -81,5 +81,4 @@ TEST_IMG="${TEST_IMG}.base" _img_info | _filter_img_info # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/097 +0 -1
@@ -121,5 +121,4 @@ done # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/098 +0 -1
@@ -75,5 +75,4 @@ rm -f "$TEST_DIR/blkdebug.conf" # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/099 +0 -1
@@ -123,5 +123,4 @@ rm -f "$TEST_IMG.compare" "$TEST_DIR/blkdebug.conf" # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/101 +0 -1
@@ -51,5 +51,4 @@ $QEMU_IO -c "read -P 0 0 512" "$TEST_IMG" | _filter_qemu_io # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/102 +0 -1
@@ -75,5 +75,4 @@ _send_qemu_cmd $QEMU_HANDLE 'quit' '' # success, all done echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/103 +0 -1
@@ -102,5 +102,4 @@ $QEMU_IO -c "open -o cache-size=0 $TEST_IMG" -c 'write 0 64k' | _filter_qemu_io # success, all done echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/104 +0 -1
@@ -47,5 +47,4 @@ done # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/105 +0 -1
@@ -63,5 +63,4 @@ $QEMU_IO -c "write 14T 4096" "$TEST_IMG" | _filter_qemu_io # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/106 +0 -1
@@ -86,5 +86,4 @@ done # success, all done echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/107 +0 -1
@@ -53,6 +53,5 @@ $QEMU_IO -c "open -o driver=raw $TEST_IMG" -c 'read -p -P 0 196616 65528' \ # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/108 +0 -1
@@ -136,5 +136,4 @@ _check_test_img -r all # success, all done echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/109 +0 -1
@@ -130,5 +130,4 @@ done # success, all done echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/110 +0 -1
@@ -87,5 +87,4 @@ _make_test_img -b "$TEST_IMG_REL.base" # success, all done echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/111 +0 -1
@@ -46,5 +46,4 @@ $QEMU_IMG create -f $IMGFMT -b "$TEST_IMG.inexistent" "$TEST_IMG" 2>&1 \ # success, all done echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/112 +0 -1
@@ -289,5 +289,4 @@ _check_test_img # success, all done echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/113 +0 -1
@@ -69,5 +69,4 @@ $QEMU_IMG amend -f $IMGFMT -o foo=bar "$TEST_IMG" 2>&1 | _filter_imgfmt # success, all done echo echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/114 +0 -1
@@ -55,5 +55,4 @@ $QEMU_IO -c "open -o backing.driver=$IMGFMT $TEST_IMG" -c "read 0 4k" | _filter_ # success, all done echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/115 +0 -1
@@ -88,5 +88,4 @@ $QEMU_IMG check "$TEST_IMG" | \ # success, all done echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/116 +0 -1
@@ -89,5 +89,4 @@ $QEMU_IO -f "$IMGFMT" -c "read 0 $size" "$TEST_IMG" 2>&1 | _filter_qemu_io | _fi # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/117 +0 -1
@@ -80,5 +80,4 @@ $QEMU_IO -c 'read -P 42 0 64k' "$TEST_IMG" | _filter_qemu_io # success, all done echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/119 +0 -1
@@ -53,5 +53,4 @@ echo "{'execute': 'qmp_capabilities'} # success, all done echo echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/120 +0 -1
@@ -59,5 +59,4 @@ $QEMU_IO_PROG -c 'read -P 42 0 64k' \ # success, all done echo echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/121 +0 -1
@@ -95,5 +95,4 @@ _check_test_img # success, all done echo echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/122 +0 -1
@@ -216,5 +216,4 @@ done # success, all done echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/123 +0 -1
@@ -55,5 +55,4 @@ $QEMU_IO -c 'read -P 42 0 1M' "$TEST_IMG" | _filter_qemu_io # success, all done echo echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/125 +0 -1
@@ -127,5 +127,4 @@ done # success, all done echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/126 +0 -1
@@ -99,5 +99,4 @@ popd >/dev/null # success, all done echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/127 +0 -1
@@ -91,5 +91,4 @@ wait=yes _cleanup_qemu # success, all done echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/128 +0 -1
@@ -84,5 +84,4 @@ _sudo_qemu_io_wrapper --format "$IMGFMT" --nocache \ # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/130 +0 -1
@@ -90,5 +90,4 @@ _img_info | _filter_img_info # success, all done echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/131 +0 -1
@@ -70,5 +70,4 @@ _check_test_img -r all # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/133 +0 -1
@@ -83,5 +83,4 @@ $QEMU_IO -c 'reopen -o backing.driver=qcow2' $TEST_IMG # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/134 +0 -1
@@ -72,5 +72,4 @@ $QEMU_IO --object $SECRETALT -c "read -P 0xa 0 $size" --image-opts $IMGSPEC | _f # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/135 +0 -1
@@ -47,5 +47,4 @@ $QEMU_IMG info "$TEST_IMG" 2>&1| _filter_testdir # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/137 +0 -1
@@ -138,5 +138,4 @@ $QEMU_IO \ # success, all done echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/138 +0 -1
@@ -66,5 +66,4 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/140 +0 -1
@@ -97,5 +97,4 @@ wait=1 _cleanup_qemu # success, all done echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/141 +0 -1
@@ -183,5 +183,4 @@ _cleanup_qemu # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/142 +0 -1
@@ -352,5 +352,4 @@ echo "$hmp_cmds" | run_qemu -drive "$files","$ids" | grep "Cache" # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/143 +0 -1
@@ -67,5 +67,4 @@ wait=1 _cleanup_qemu # success, all done echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/144 +0 -1
@@ -108,5 +108,4 @@ _send_qemu_cmd $h "{ 'execute': 'blockdev-snapshot-sync', # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/145 +0 -1
@@ -61,5 +61,4 @@ echo quit | $QEMU -nographic $SYSEMU_EXTRA_ARGS -drive $SYSEMU_DRIVE_ARG \ # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/146 +0 -1
@@ -159,5 +159,4 @@ echo ${QEMU_IO} -c "open -o driver=vpc,force_size_calc=current_size ${TEST_IMG}" -c 'map' echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/150 +0 -1
@@ -67,5 +67,4 @@ $QEMU_IMG map "$TEST_IMG" | _filter_qemu_img_map # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/153 +0 -1
@@ -228,5 +228,4 @@ _cleanup_qemu # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/154 +0 -1
@@ -451,5 +451,4 @@ $QEMU_IMG map --output=json "$TEST_IMG" | _filter_qemu_img_map # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/156 +0 -1
@@ -170,5 +170,4 @@ echo # success, all done echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/157 +0 -1
@@ -94,5 +94,4 @@ done # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/158 +0 -1
@@ -80,5 +80,4 @@ $QEMU_IO --object $SECRET -c "read -P 0xa 1024 64512" --image-opts $IMGSPEC | _f # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/162 +0 -1
@@ -110,5 +110,4 @@ rm -f 42 # success, all done echo echo '*** done' -rm -f $seq.full status=0
tests/qemu-iotests/171 +0 -1
@@ -206,5 +206,4 @@ _cleanup_test_img # success, all done echo echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/172 +0 -1
@@ -245,5 +245,4 @@ check_cache_mode -device floppy,drive=none0,write-cache=off # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/173 +0 -1
@@ -92,5 +92,4 @@ _cleanup_qemu # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/174 +7 -2
@@ -35,9 +35,15 @@ _cleanup() } trap "_cleanup; exit \$status" 0 1 2 3 15 +_fail() +{ + echo "$*" + status=1 + exit 1 +} + _unsupported_fmt raw - size=256K IMGFMT=raw IMGKEYSECRET= IMGOPTS= _make_test_img $size | _filter_imgfmt
@@ -53,5 +59,4 @@ test $? -eq 1 || _fail "did not fail" # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/175 +0 -1
@@ -55,5 +55,4 @@ done # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/176 +0 -1
@@ -125,5 +125,4 @@ done # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/178 +0 -1
@@ -164,5 +164,4 @@ done # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/181 +0 -1
@@ -128,5 +128,4 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/182 +0 -1
@@ -71,5 +71,4 @@ _cleanup_qemu # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/183 +0 -1
@@ -134,5 +134,4 @@ $QEMU_IMG compare "$TEST_IMG.dest" "$TEST_IMG" # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/184 +0 -1
@@ -200,5 +200,4 @@ EOF echo # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/185 +0 -1
@@ -204,5 +204,4 @@ _check_test_img # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/186 +0 -1
@@ -141,5 +141,4 @@ check_info_block -drive if=pflash,driver=null-co,size=1M # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/187 +0 -1
@@ -63,5 +63,4 @@ $QEMU_IO -c 'reopen -r' -c 'reopen -w' -c 'write 0 64k' $TEST_IMG | _filter_qemu # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/188 +0 -1
@@ -70,5 +70,4 @@ $QEMU_IO --object $SECRETALT -c "read -P 0xa 0 $size" --image-opts $IMGSPEC | _f # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/189 +0 -1
@@ -80,5 +80,4 @@ $QEMU_IO --object $SECRET0 --object $SECRET1 -c "read -P 0xa 1024 64512" --image # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/190 +0 -1
@@ -53,5 +53,4 @@ $QEMU_IMG measure -O qcow2 -o cluster_size=2M -f qcow2 "$TEST_IMG" # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/191 +0 -1
@@ -148,5 +148,4 @@ TEST_IMG="$TEST_IMG.ovl2" _img_info # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/192 +0 -1
@@ -66,5 +66,4 @@ _send_qemu_cmd $h "q" "(qemu)" # success, all done echo "*** done" -rm -f $seq.full status=0
tests/qemu-iotests/195 +0 -1
@@ -87,5 +87,4 @@ _img_info # success, all done echo "*** done" -rm -f $seq.full status=0
Signature · 1 line
2.13.6
Re: [Qemu-devel] [PATCH 07/10] qemu-iotests: remove the concept of $seq.full (and boiler plate code)
Quoted 153 lines · Cleber Rosa
The $seq.full file, in theory, should contain the full output of a test error. In practice, it's only used on a single test, and the boiler plate code to clean it up plagues all other tests.
Let's remove the concept altogether, and record the failure in the output itself for the one test using this function.
Signed-off-by Cleber Rosa <[email protected]>--- tests/qemu-iotests/001 | 1 - tests/qemu-iotests/002 | 1 - tests/qemu-iotests/003 | 1 - tests/qemu-iotests/004 | 1 - tests/qemu-iotests/005 | 1 - tests/qemu-iotests/007 | 1 - tests/qemu-iotests/008 | 1 - tests/qemu-iotests/009 | 1 - tests/qemu-iotests/010 | 1 - tests/qemu-iotests/011 | 1 - tests/qemu-iotests/012 | 1 - tests/qemu-iotests/013 | 1 - tests/qemu-iotests/014 | 1 - tests/qemu-iotests/015 | 1 - tests/qemu-iotests/017 | 1 - tests/qemu-iotests/018 | 1 - tests/qemu-iotests/019 | 1 - tests/qemu-iotests/020 | 1 - tests/qemu-iotests/021 | 1 - tests/qemu-iotests/022 | 1 - tests/qemu-iotests/023 | 1 - tests/qemu-iotests/024 | 1 - tests/qemu-iotests/025 | 1 - tests/qemu-iotests/026 | 1 - tests/qemu-iotests/027 | 1 - tests/qemu-iotests/028 | 1 - tests/qemu-iotests/029 | 1 - tests/qemu-iotests/031 | 1 - tests/qemu-iotests/032 | 1 - tests/qemu-iotests/033 | 1 - tests/qemu-iotests/034 | 1 - tests/qemu-iotests/035 | 1 - tests/qemu-iotests/036 | 1 - tests/qemu-iotests/037 | 1 - tests/qemu-iotests/038 | 1 - tests/qemu-iotests/039 | 1 - tests/qemu-iotests/042 | 1 - tests/qemu-iotests/043 | 1 - tests/qemu-iotests/046 | 1 - tests/qemu-iotests/047 | 1 - tests/qemu-iotests/049 | 1 - tests/qemu-iotests/050 | 1 - tests/qemu-iotests/051 | 1 - tests/qemu-iotests/052 | 1 - tests/qemu-iotests/053 | 1 - tests/qemu-iotests/054 | 1 - tests/qemu-iotests/058 | 1 - tests/qemu-iotests/059 | 1 - tests/qemu-iotests/060 | 1 - tests/qemu-iotests/061 | 1 - tests/qemu-iotests/062 | 1 - tests/qemu-iotests/063 | 1 - tests/qemu-iotests/064 | 1 - tests/qemu-iotests/066 | 1 - tests/qemu-iotests/067 | 1 - tests/qemu-iotests/068 | 1 - tests/qemu-iotests/069 | 1 - tests/qemu-iotests/070 | 1 - tests/qemu-iotests/071 | 1 - tests/qemu-iotests/072 | 1 - tests/qemu-iotests/073 | 1 - tests/qemu-iotests/075 | 1 - tests/qemu-iotests/076 | 1 - tests/qemu-iotests/077 | 1 - tests/qemu-iotests/078 | 1 - tests/qemu-iotests/079 | 1 - tests/qemu-iotests/080 | 1 - tests/qemu-iotests/081 | 1 - tests/qemu-iotests/082 | 1 - tests/qemu-iotests/083 | 1 - tests/qemu-iotests/084 | 1 - tests/qemu-iotests/085 | 1 - tests/qemu-iotests/086 | 1 - tests/qemu-iotests/087 | 1 - tests/qemu-iotests/088 | 1 - tests/qemu-iotests/089 | 1 - tests/qemu-iotests/090 | 1 - tests/qemu-iotests/091 | 1 - tests/qemu-iotests/092 | 1 - tests/qemu-iotests/094 | 1 - tests/qemu-iotests/095 | 1 - tests/qemu-iotests/097 | 1 - tests/qemu-iotests/098 | 1 - tests/qemu-iotests/099 | 1 - tests/qemu-iotests/101 | 1 - tests/qemu-iotests/102 | 1 - tests/qemu-iotests/103 | 1 - tests/qemu-iotests/104 | 1 - tests/qemu-iotests/105 | 1 - tests/qemu-iotests/106 | 1 - tests/qemu-iotests/107 | 1 - tests/qemu-iotests/108 | 1 - tests/qemu-iotests/109 | 1 - tests/qemu-iotests/110 | 1 - tests/qemu-iotests/111 | 1 - tests/qemu-iotests/112 | 1 - tests/qemu-iotests/113 | 1 - tests/qemu-iotests/114 | 1 - tests/qemu-iotests/115 | 1 - tests/qemu-iotests/116 | 1 - tests/qemu-iotests/117 | 1 - tests/qemu-iotests/119 | 1 - tests/qemu-iotests/120 | 1 - tests/qemu-iotests/121 | 1 - tests/qemu-iotests/122 | 1 - tests/qemu-iotests/123 | 1 - tests/qemu-iotests/125 | 1 - tests/qemu-iotests/126 | 1 - tests/qemu-iotests/127 | 1 - tests/qemu-iotests/128 | 1 - tests/qemu-iotests/130 | 1 - tests/qemu-iotests/131 | 1 - tests/qemu-iotests/133 | 1 - tests/qemu-iotests/134 | 1 - tests/qemu-iotests/135 | 1 - tests/qemu-iotests/137 | 1 - tests/qemu-iotests/138 | 1 - tests/qemu-iotests/140 | 1 - tests/qemu-iotests/141 | 1 - tests/qemu-iotests/142 | 1 - tests/qemu-iotests/143 | 1 - tests/qemu-iotests/144 | 1 - tests/qemu-iotests/145 | 1 - tests/qemu-iotests/146 | 1 - tests/qemu-iotests/150 | 1 - tests/qemu-iotests/153 | 1 - tests/qemu-iotests/154 | 1 - tests/qemu-iotests/156 | 1 - tests/qemu-iotests/157 | 1 - tests/qemu-iotests/158 | 1 - tests/qemu-iotests/162 | 1 - tests/qemu-iotests/171 | 1 - tests/qemu-iotests/172 | 1 - tests/qemu-iotests/173 | 1 - tests/qemu-iotests/174 | 9 +++++++-- tests/qemu-iotests/175 | 1 - tests/qemu-iotests/176 | 1 - tests/qemu-iotests/178 | 1 - tests/qemu-iotests/181 | 1 - tests/qemu-iotests/182 | 1 - tests/qemu-iotests/183 | 1 - tests/qemu-iotests/184 | 1 - tests/qemu-iotests/185 | 1 - tests/qemu-iotests/186 | 1 -
Quoted 8 lines
tests/qemu-iotests/187 | 1 - tests/qemu-iotests/188 | 1 - tests/qemu-iotests/189 | 1 - tests/qemu-iotests/190 | 1 - tests/qemu-iotests/191 | 1 - tests/qemu-iotests/192 | 1 - tests/qemu-iotests/195 | 1 - 151 files changed, 7 insertions(+), 152 deletions(-)
Looks good, but I guess it would make sense to drop the _fail function from common.rc then, too.
Another thought: Seeing the status=1... I think besides the _fail thing, 174 is also the only test that makes use of $status. How about a patch that removes that variable and simply performs "exit 1" in the trap line? I think all tests just do an immediate "exit 1" on error anyway.
Max
PATCH 8/10 qemu-iotests: clean up double comment characters
In reply to Cleber RosaThis is a syntactic only change, just to make it consistent with the style used on all other tests.
--- tests/qemu-iotests/048 | 37 ++++++++++++++++++------------------- tests/qemu-iotests/074 | 40 ++++++++++++++++++++-------------------- 2 files changed, 38 insertions(+), 39 deletions(-)
tests/qemu-iotests/048 +18 -19
@@ -1,23 +1,22 @@ #!/bin/bash -## -## qemu-img compare test -## -## -## Copyright (C) 2013 Red Hat, 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/>. -## +# +# qemu-img compare test +# +# +# Copyright (C) 2013 Red Hat, 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: [email protected] #
tests/qemu-iotests/074 +20 -20
@@ -1,24 +1,24 @@ #!/bin/bash -## -## qemu-img compare test (qcow2 only ones) -## -## -## Copyright (C) 2013 Red Hat, 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: [email protected] +# +# qemu-img compare test (qcow2 only ones) +# +# +# Copyright (C) 2013 Red Hat, 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: [email protected] # seq=`basename $0`
Signature · 1 line
2.13.6
Re: [Qemu-devel] [PATCH 08/10] qemu-iotests: clean up double comment characters
Quoted 8 lines · Cleber Rosa
This is a syntactic only change, just to make it consistent with the style used on all other tests.
Signed-off-by Cleber Rosa <[email protected]>--- tests/qemu-iotests/048 | 37 ++++++++++++++++++------------------- tests/qemu-iotests/074 | 40 ++++++++++++++++++++-------------------- 2 files changed, 38 insertions(+), 39 deletions(-)
PATCH 9/10 qemu-iotests: remove unused "here" variable
In reply to Cleber RosaAnother legacy variable that did not convince me it has any purpose whatsoever.
--- tests/qemu-iotests/001 | 1 - tests/qemu-iotests/002 | 1 - tests/qemu-iotests/003 | 1 - tests/qemu-iotests/004 | 1 - tests/qemu-iotests/005 | 1 - tests/qemu-iotests/007 | 1 - tests/qemu-iotests/008 | 1 - tests/qemu-iotests/009 | 1 - tests/qemu-iotests/010 | 1 - tests/qemu-iotests/011 | 1 - tests/qemu-iotests/012 | 1 - tests/qemu-iotests/013 | 1 - tests/qemu-iotests/014 | 1 - tests/qemu-iotests/015 | 1 - tests/qemu-iotests/017 | 1 - tests/qemu-iotests/018 | 1 - tests/qemu-iotests/019 | 1 - tests/qemu-iotests/020 | 1 - tests/qemu-iotests/021 | 1 - tests/qemu-iotests/022 | 1 - tests/qemu-iotests/023 | 1 - tests/qemu-iotests/024 | 1 - tests/qemu-iotests/025 | 1 - tests/qemu-iotests/026 | 1 - tests/qemu-iotests/027 | 1 - tests/qemu-iotests/028 | 1 - tests/qemu-iotests/029 | 1 - tests/qemu-iotests/031 | 1 - tests/qemu-iotests/032 | 1 - tests/qemu-iotests/033 | 1 - tests/qemu-iotests/034 | 1 - tests/qemu-iotests/035 | 1 - tests/qemu-iotests/036 | 1 - tests/qemu-iotests/037 | 1 - tests/qemu-iotests/038 | 1 - tests/qemu-iotests/039 | 1 - tests/qemu-iotests/042 | 1 - tests/qemu-iotests/043 | 1 - tests/qemu-iotests/046 | 1 - tests/qemu-iotests/047 | 1 - tests/qemu-iotests/049 | 1 - tests/qemu-iotests/050 | 1 - tests/qemu-iotests/051 | 1 - tests/qemu-iotests/052 | 1 - tests/qemu-iotests/053 | 1 - tests/qemu-iotests/054 | 1 - tests/qemu-iotests/058 | 1 - tests/qemu-iotests/059 | 1 - tests/qemu-iotests/060 | 1 - tests/qemu-iotests/061 | 1 - tests/qemu-iotests/062 | 1 - tests/qemu-iotests/063 | 1 - tests/qemu-iotests/064 | 1 - tests/qemu-iotests/066 | 1 - tests/qemu-iotests/067 | 1 - tests/qemu-iotests/068 | 1 - tests/qemu-iotests/069 | 1 - tests/qemu-iotests/070 | 1 - tests/qemu-iotests/071 | 1 - tests/qemu-iotests/072 | 1 - tests/qemu-iotests/073 | 1 - tests/qemu-iotests/075 | 1 - tests/qemu-iotests/076 | 1 - tests/qemu-iotests/077 | 1 - tests/qemu-iotests/078 | 1 - tests/qemu-iotests/079 | 1 - tests/qemu-iotests/080 | 1 - tests/qemu-iotests/081 | 1 - tests/qemu-iotests/082 | 1 - tests/qemu-iotests/083 | 1 - tests/qemu-iotests/084 | 1 - tests/qemu-iotests/085 | 1 - tests/qemu-iotests/086 | 1 - tests/qemu-iotests/087 | 1 - tests/qemu-iotests/088 | 1 - tests/qemu-iotests/089 | 1 - tests/qemu-iotests/090 | 1 - tests/qemu-iotests/091 | 1 - tests/qemu-iotests/092 | 1 - tests/qemu-iotests/094 | 1 - tests/qemu-iotests/095 | 1 - tests/qemu-iotests/097 | 1 - tests/qemu-iotests/098 | 1 - tests/qemu-iotests/099 | 1 - tests/qemu-iotests/101 | 1 - tests/qemu-iotests/102 | 1 - tests/qemu-iotests/103 | 1 - tests/qemu-iotests/104 | 1 - tests/qemu-iotests/105 | 1 - tests/qemu-iotests/106 | 1 - tests/qemu-iotests/107 | 1 - tests/qemu-iotests/108 | 1 - tests/qemu-iotests/109 | 1 - tests/qemu-iotests/110 | 1 - tests/qemu-iotests/111 | 1 - tests/qemu-iotests/112 | 1 - tests/qemu-iotests/113 | 1 - tests/qemu-iotests/114 | 1 - tests/qemu-iotests/115 | 1 - tests/qemu-iotests/116 | 1 - tests/qemu-iotests/117 | 1 - tests/qemu-iotests/119 | 1 - tests/qemu-iotests/120 | 1 - tests/qemu-iotests/121 | 1 - tests/qemu-iotests/122 | 1 - tests/qemu-iotests/123 | 1 - tests/qemu-iotests/125 | 1 - tests/qemu-iotests/126 | 1 - tests/qemu-iotests/127 | 1 - tests/qemu-iotests/128 | 1 - tests/qemu-iotests/130 | 1 - tests/qemu-iotests/131 | 1 - tests/qemu-iotests/133 | 1 - tests/qemu-iotests/134 | 1 - tests/qemu-iotests/135 | 1 - tests/qemu-iotests/137 | 1 - tests/qemu-iotests/138 | 1 - tests/qemu-iotests/140 | 1 - tests/qemu-iotests/141 | 1 - tests/qemu-iotests/142 | 1 - tests/qemu-iotests/143 | 1 - tests/qemu-iotests/144 | 1 - tests/qemu-iotests/145 | 1 - tests/qemu-iotests/146 | 1 - tests/qemu-iotests/150 | 1 - tests/qemu-iotests/153 | 1 - tests/qemu-iotests/154 | 1 - tests/qemu-iotests/156 | 1 - tests/qemu-iotests/157 | 1 - tests/qemu-iotests/158 | 1 - tests/qemu-iotests/159 | 1 - tests/qemu-iotests/160 | 1 - tests/qemu-iotests/162 | 1 - tests/qemu-iotests/170 | 1 - tests/qemu-iotests/171 | 1 - tests/qemu-iotests/172 | 1 - tests/qemu-iotests/173 | 1 - tests/qemu-iotests/174 | 1 - tests/qemu-iotests/175 | 1 - tests/qemu-iotests/176 | 1 - tests/qemu-iotests/177 | 1 - tests/qemu-iotests/178 | 1 - tests/qemu-iotests/179 | 1 - tests/qemu-iotests/181 | 1 - tests/qemu-iotests/182 | 1 - tests/qemu-iotests/183 | 1 - tests/qemu-iotests/184 | 1 - tests/qemu-iotests/185 | 1 - tests/qemu-iotests/186 | 1 - tests/qemu-iotests/187 | 1 - tests/qemu-iotests/188 | 1 - tests/qemu-iotests/189 | 1 - tests/qemu-iotests/190 | 1 - tests/qemu-iotests/191 | 1 - tests/qemu-iotests/192 | 1 - tests/qemu-iotests/195 | 1 - tests/qemu-iotests/197 | 1 - 157 files changed, 157 deletions(-)
tests/qemu-iotests/001 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/002 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/003 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/004 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/005 +0 -1
@@ -26,7 +26,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/007 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/008 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/009 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/010 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/011 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/012 +0 -1
@@ -25,7 +25,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/013 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/014 +0 -1
@@ -25,7 +25,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/015 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/017 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/018 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/019 +0 -1
@@ -25,7 +25,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/020 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/021 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/022 +0 -1
@@ -25,7 +25,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/023 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/024 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/025 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/026 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/027 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/028 +0 -1
@@ -26,7 +26,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/029 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/031 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/032 +0 -1
@@ -25,7 +25,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/033 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/034 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/035 +0 -1
@@ -24,7 +24,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/036 +0 -1
@@ -26,7 +26,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/037 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/038 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/039 +0 -1
@@ -26,7 +26,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/042 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/043 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/046 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/047 +0 -1
@@ -24,7 +24,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/049 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/050 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/051 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/052 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/053 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/054 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/058 +0 -1
@@ -25,7 +25,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/059 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/060 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/061 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/062 +0 -1
@@ -24,7 +24,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/063 +0 -1
@@ -24,7 +24,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/064 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/066 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/067 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/068 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/069 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/070 +0 -1
@@ -24,7 +24,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/071 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/072 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/073 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/075 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/076 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/077 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/078 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/079 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/080 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/081 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/082 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/083 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/084 +0 -1
@@ -24,7 +24,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/085 +0 -1
@@ -28,7 +28,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! snapshot_virt0="snapshot-v0.qcow2"
tests/qemu-iotests/086 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/087 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/088 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/089 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/090 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/091 +0 -1
@@ -25,7 +25,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! MIG_FIFO="${TEST_DIR}/migrate"
tests/qemu-iotests/092 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/094 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/095 +0 -1
@@ -27,7 +27,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/097 +0 -1
@@ -24,7 +24,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/098 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/099 +0 -1
@@ -24,7 +24,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/101 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/102 +0 -1
@@ -23,7 +23,6 @@ seq=$(basename $0) echo "QA output created by $seq" -here=$PWD status=1 # failure is the default! # get standard environment, filters and qemu instance handling
tests/qemu-iotests/103 +0 -1
@@ -23,7 +23,6 @@ seq=$(basename $0) echo "QA output created by $seq" -here=$PWD status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/104 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! trap "exit \$status" 0 1 2 3 15
tests/qemu-iotests/105 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/106 +0 -1
@@ -23,7 +23,6 @@ seq=$(basename $0) echo "QA output created by $seq" -here=$PWD status=1 # failure is the default! # get standard environment and filters
tests/qemu-iotests/107 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/108 +0 -1
@@ -24,7 +24,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/109 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/110 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/111 +0 -1
@@ -24,7 +24,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/112 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/113 +0 -1
@@ -24,7 +24,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/114 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/115 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/116 +0 -1
@@ -26,7 +26,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/117 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/119 +0 -1
@@ -24,7 +24,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/120 +0 -1
@@ -24,7 +24,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/121 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/122 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/123 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/125 +0 -1
@@ -23,7 +23,6 @@ seq=$(basename $0) echo "QA output created by $seq" -here=$PWD status=1 # failure is the default! # get standard environment and filters
tests/qemu-iotests/126 +0 -1
@@ -24,7 +24,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/127 +0 -1
@@ -23,7 +23,6 @@ seq=$(basename $0) echo "QA output created by $seq" -here=$PWD status=1 # failure is the default! # get standard environment, filters and qemu instance handling
tests/qemu-iotests/128 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! devname="eiodev$$"
tests/qemu-iotests/130 +0 -1
@@ -25,7 +25,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/131 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/133 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/134 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/135 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/137 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/138 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/140 +0 -1
@@ -27,7 +27,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/141 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/142 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/143 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/144 +0 -1
@@ -25,7 +25,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! TMP_SNAP1=${TEST_DIR}/tmp.qcow2
tests/qemu-iotests/145 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/146 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/150 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/153 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" tmp=/tmp/$$ status=1 # failure is the default!
tests/qemu-iotests/154 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/156 +0 -1
@@ -31,7 +31,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/157 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/158 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/159 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 . ./common.rc
tests/qemu-iotests/160 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 . ./common.rc
tests/qemu-iotests/162 +0 -1
@@ -24,7 +24,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/170 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 . ./common.rc
tests/qemu-iotests/171 +0 -1
@@ -24,7 +24,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/172 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/173 +0 -1
@@ -24,7 +24,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/174 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/175 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/176 +0 -1
@@ -27,7 +27,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/177 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/178 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/179 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/181 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! MIG_SOCKET="${TEST_DIR}/migrate"
tests/qemu-iotests/182 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" tmp=/tmp/$$ status=1 # failure is the default!
tests/qemu-iotests/183 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! MIG_SOCKET="${TEST_DIR}/migrate"
tests/qemu-iotests/184 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/185 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! MIG_SOCKET="${TEST_DIR}/migrate"
tests/qemu-iotests/186 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/187 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/188 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/189 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/190 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/191 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! MIG_SOCKET="${TEST_DIR}/migrate"
tests/qemu-iotests/192 +0 -1
@@ -24,7 +24,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/195 +0 -1
@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/197 +0 -1
@@ -23,7 +23,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
Signature · 1 line
2.13.6
Re: [Qemu-devel] [PATCH 09/10] qemu-iotests: remove unused "here" variable
tests/qemu-iotests/001 line 26
Quoted 12 lines · Cleber Rosa
Another legacy variable that did not convince me it has any purpose whatsoever.
Signed-off-by Cleber Rosa <[email protected]>---
+++ b/tests/qemu-iotests/001
tests/qemu-iotests/001 +0
-1@@ -23,7 +23,6 @@ seq=`basename $0` echo "QA output created by $seq" -here=`pwd`
Good riddance. And in the majority of the tests, it was a needless fork(), compared to my preference (which is also guaranteed by POSIX and by /bin/bash):
tests/qemu-iotests/060 line 30
Quoted 6 lines
tests/qemu-iotests/060 +1
-1+++ b/tests/qemu-iotests/176@@ -27,7 +27,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD"
since $PWD and pwd should always produce the same thing, if we even had a reason to use it. ;)
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
Re: [Qemu-devel] [PATCH 09/10] qemu-iotests: remove unused "here" variable
In reply to Cleber RosaQuoted 5 lines · Cleber Rosa
Another legacy variable that did not convince me it has any purpose whatsoever.
Signed-off-by Cleber Rosa <[email protected]>---
PATCH 10/10 qemu-iotests: add section on how to write a new I/O test
In reply to Cleber RosaThis adds some basic information on how to write a new test. I'm aware that some of the information in the wiki (Testing/QemuIoTests) could also belong here.
Since copying content over won't generate much interesting feedback, the goal here is to get feedback on the sample_test_templates, general workflow proposed for writing a new test, etc.
After feedback is received, I can go over and sync both sides (wiki and README).
--- tests/qemu-iotests/README | 44 ++++++++++++++-- tests/qemu-iotests/sample_test_templates/sample.py | 59 ++++++++++++++++++++++ tests/qemu-iotests/sample_test_templates/sample.sh | 40 +++++++++++++++ 3 files changed, 138 insertions(+), 5 deletions(-) create mode 100755 tests/qemu-iotests/sample_test_templates/sample.py create mode 100755 tests/qemu-iotests/sample_test_templates/sample.sh
tests/qemu-iotests/README +39 -5
@@ -1,20 +1,54 @@ += This is the QEMU I/O test suite = -=== This is the QEMU I/O test suite === - -* Intro +== Intro == This package contains a simple test suite for the I/O layer of qemu. It does not require a guest, but only the qemu, qemu-img and qemu-io binaries. This does limit it to exercise the low-level I/O path only but no actual block drivers like ide, scsi or virtio. -* Usage +== Usage == Just run ./check to run all tests for the raw image format, or ./check -qcow2 to test the qcow2 image format. The output of ./check -h explains additional options to test further image formats or I/O methods. -* Feedback and patches +== Writing a QEMU I/O test == + +It's a common practice to start with an existing test that may relate +to the task you have. QEMU I/O tests are usually written either in +shell or Python, so it's also a good idea to pick an existing test +based on your familiarity with those languages and/or what you +anticipate about your test. + +You can find templates available at "sample_test_templates/", or you +can start with an existing test, such as 001 (shell based) or 030 +(Python based). + +After you pick your template, name it as a three-digits file, starting +with the next available one. If `ls -1 ??? | sort -rn | head -1` gives +you "197", name your test "198". Finally, add an entry to the "group" +file, which manages just that, test group classification, allowing a +user to run all "quick" tests, for instance. + +=== Test configuration, expected results and reporting === + +The tests are (mostly) standard executable files, that are executed by +"./check" as such. Tests get most of their configuration (directly or +indirectly) by environment variables. Some of the framework auxiliary +code (for instance, "common.rc") defines or changes some of the +environment variables. You'll come across tests that reference +"$TEST_IMG", "$QEMU_IO" and other variables. + +The expected results for a test are stored in a file named after the +(sequential) test number. For test 001, the expected output (stdout + +stderr) is stored at 001.out. + +Tests that finish successfully should exit with status code 0. To be +considered a successful run, a test must also produce output that +matches what is recorded in the expected output file (say, 001.out). + +== Feedback and patches == Please send improvements to the test suite, general feedback or just reports of failing tests cases to [email protected] with a CC:
tests/qemu-iotests/sample_test_templates/sample.py new file +59 -0
59 lines not on this page · raw message
tests/qemu-iotests/sample_test_templates/sample.sh new file +40 -0
@@ -0,0 +1,40 @@ +#!/bin/bash +# +# DESCRIPTION HERE, such as "Test a complex thing using a simple thing" +# +# COPYRIGHT NOTICE HERE, such as "Copyright (C) YYYY Yourself, 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: [email protected] +# + +seq=`basename $0` +echo "QA output created by $seq" + +status=1 # failure is the default! + +# get standard environment, filters and checks +. ./common.rc + +# describe supported environment, and then remove this line. + _supported_fmt generic + _supported_proto generic + _supported_os Linux + +# put your test code goes here, and then remove this line. + +# success, all done +echo "*** done" +status=0
Signature · 1 line
2.13.6
Re: [Qemu-devel] [PATCH 10/10] qemu-iotests: add section on how to write a new I/O test
Quoted 11 lines · Cleber Rosa
This adds some basic information on how to write a new test. I'm aware that some of the information in the wiki (Testing/QemuIoTests) could also belong here.
Since copying content over won't generate much interesting feedback, the goal here is to get feedback on the
sample_test_templates, general workflow proposed for writing a new test, etc.After feedback is received, I can go over and sync both sides (wiki and README).
Quoted 8 lines
Signed-off-by Cleber Rosa <[email protected]>--- tests/qemu-iotests/README | 44 ++++++++++++++-- tests/qemu-iotests/sample_test_templates/sample.py | 59 ++++++++++++++++++++++ tests/qemu-iotests/sample_test_templates/sample.sh | 40 +++++++++++++++ 3 files changed, 138 insertions(+), 5 deletions(-) create mode 100755 tests/qemu-iotests/sample_test_templates/sample.py create mode 100755 tests/qemu-iotests/sample_test_templates/sample.sh
Thanks a lot!
Quoted 26 lines
tests/qemu-iotests/README +4
-5@@ -1,20 +1,54 @@ += This is the QEMU I/O test suite = -=== This is the QEMU I/O test suite === - -* Intro +== Intro == This package contains a simple test suite for the I/O layer of qemu. It does not require a guest, but only the qemu, qemu-img and qemu-io binaries. This does limit it to exercise the low-level I/O path only but no actual block drivers like ide, scsi or virtio. -* Usage +== Usage == Just run ./check to run all tests for the raw image format, or ./check -qcow2 to test the qcow2 image format. The output of ./check -h explains additional options to test further image formats or I/O methods. -* Feedback and patches +== Writing a QEMU I/O test ==
tests/qemu-iotests/README line 26
Quoted 10 lines
tests/qemu-iotests/README +10
-0+ +It's a common practice to start with an existing test that may relate +to the task you have. QEMU I/O tests are usually written either in +shell or Python, so it's also a good idea to pick an existing test +based on your familiarity with those languages and/or what you +anticipate about your test. + +You can find templates available at "sample_test_templates/", or you +can start with an existing test, such as 001 (shell based) or 030 +(Python based).
It might make sense to mention 194 as an alternative, because 030 represents QMPTestCase-based Python tests and 194 is a plain output-comparison-based test (like the shell tests) which does not use that framework.
It should probably be noted somewhere that the shebang line for Python tests is vital to be exactly "#!/usr/bin/env python".
(Or we could change it to something like "#!qemu-python" to make it clear that we're not actually invoking env)
tests/qemu-iotests/README line 32
Quoted 6 lines
tests/qemu-iotests/README +6
-0+ +After you pick your template, name it as a three-digits file, starting +with the next available one. If `ls -1 ??? | sort -rn | head -1` gives +you "197", name your test "198". Finally, add an entry to the "group" +file, which manages just that, test group classification, allowing a +user to run all "quick" tests, for instance.
We really need some overview over which groups we have...
I personally just see "Oh, they all have rw auto, so I should put my test into those groups, too" but that completely defies the purpose. And nobody ever complains about group classification for a newly added patch, except when it comes to the quick group...
tests/qemu-iotests/README line 45
Quoted 13 lines
tests/qemu-iotests/README +13
-0+ +=== Test configuration, expected results and reporting === + +The tests are (mostly) standard executable files, that are executed by +"./check" as such. Tests get most of their configuration (directly or +indirectly) by environment variables. Some of the framework auxiliary +code (for instance, "common.rc") defines or changes some of the +environment variables. You'll come across tests that reference +"$TEST_IMG", "$QEMU_IO" and other variables. + +The expected results for a test are stored in a file named after the +(sequential) test number. For test 001, the expected output (stdout + +stderr) is stored at 001.out.
There is more that could be said about this (see 051.pc.out or 178.out.qcow2), but this should be enough for this document. If you ever need different reference outputs based on something, you'll probably be able to find out yourself.
tests/qemu-iotests/README line 47
Quoted 2 lines
tests/qemu-iotests/README +2
-0+ +Tests that finish successfully should exit with status code 0. To be
s/should/must/ (or "have to")
Quoted 24 lines
tests/qemu-iotests/README +4
-0+considered a successful run, a test must also produce output that +matches what is recorded in the expected output file (say, 001.out). + +== Feedback and patches == Please send improvements to the test suite, general feedback or just reports of failing tests cases to [email protected] with a CC:tests/qemu-iotests/sample_test_templates/sample.py new file +11
-0@@ -0,0 +1,59 @@ +#!/usr/bin/env python +# +# DESCRIPTION HERE, such as "Test a complex thing using a simple thing" +# +# COPYRIGHT NOTICE HERE, such as "Copyright (C) YYYY Yourself, 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. +#
tests/qemu-iotests/sample_test_templates/sample.py line 21
Quoted 10 lines
tests/qemu-iotests/sample_test_templates/sample.py new file +10
-0+# 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: [email protected] +#
As said by the others, I'm not sure we need this line. git log should be enough to tell you to whom should send your patch emails for a broken test. :-)
Quoted 28 lines
tests/qemu-iotests/sample_test_templates/sample.py new file +28
-0+ +import iotests + + +class Sample(iotests.QMPTestCase): + + def setUp(self): + """ + Method that runs before test method(s). Use it to prepare the + environment that is common to the all tests, but doesn't + necessarily mean that is part of the feature testing + specifics. + + Remove this docstring unless you have a really good use for it. + """ + pass + + def tearDown(self): + """ + Method that runs after the test method(s). Use it to clean up + the environment created previously in setUp(). + + Remove this docstring unless you have a really good use for it. + """ + pass + + def test(self): + """
tests/qemu-iotests/sample_test_templates/sample.py line 59
Quoted 10 lines
tests/qemu-iotests/sample_test_templates/sample.py new file +10
-0+ Test code goes here, or in any other method whose name starts + with "test". + + It's a good idea to describe what it's about. + """ + pass + + +if __name__ == '__main__': + iotests.main()
This is a QMPTestCase-based Python test. That's OK, but I'd really like 194-like tests to gain popularity, so it should be noted somewhere (e.g. in the README and/or above the Sample class definition here) that you don't have to follow this structure, but that you can write simple reference-output-based tests as well.
Quoted 19 lines
tests/qemu-iotests/sample_test_templates/sample.sh new file +13
-0@@ -0,0 +1,40 @@ +#!/bin/bash +# +# DESCRIPTION HERE, such as "Test a complex thing using a simple thing" +# +# COPYRIGHT NOTICE HERE, such as "Copyright (C) YYYY Yourself, 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
tests/qemu-iotests/sample_test_templates/sample.sh line 23
Quoted 10 lines
tests/qemu-iotests/sample_test_templates/sample.sh new file +10
-0+# 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: [email protected] +# + +seq=`basename $0`
I remember Eric scolded me because he preferred seq="$(basename $0)" instead.
tests/qemu-iotests/sample_test_templates/sample.sh line 26
Quoted 3 lines
tests/qemu-iotests/sample_test_templates/sample.sh new file +3
-0+echo "QA output created by $seq" + +status=1 # failure is the default!
Then again, why do we have these four lines anyway?
The echo is pretty pointless, nobody but it uses $seq, nor does anyone really need $status, do they?
tests/qemu-iotests/sample_test_templates/sample.sh line 30
Quoted 4 lines
tests/qemu-iotests/sample_test_templates/sample.sh new file +4
-0+ +# get standard environment, filters and checks +. ./common.rc +
What about the cleanup function? I think every shell test has it and it does make sense to me.
tests/qemu-iotests/sample_test_templates/sample.sh line 40
Quoted 11 lines
tests/qemu-iotests/sample_test_templates/sample.sh new file +10
-0+# describe supported environment, and then remove this line. + _supported_fmt generic + _supported_proto generic + _supported_os Linux + +# put your test code goes here, and then remove this line. + +# success, all done +echo "*** done" +status=0
I don't think we really need these three lines either... (in no test)
Max