qemu-e2k/tests/qemu-iotests
Max Reitz bb3c801df7 iotests: Fix test 128 for password-less sudo
As of 934659c460, $QEMU_IO is generally no
longer a program name, and therefore "sudo -n $QEMU_IO" will no longer
work.

Fix this by copying the qemu-io invocation function from common.config,
making it use $sudo for invoking $QEMU_IO_PROG, and then use that
function instead of $QEMU_IO.

Reported-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2015-10-02 13:48:29 +02:00
..
sample_images block: qemu-iotests - add check for multiplication overflow in vpc 2015-07-27 17:19:07 +02:00
.gitignore gitignore: Track common.env in iotests gitignore 2015-03-10 08:15:34 +03:00
001
001.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
002
002.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
003
003.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
004 iotests: Drop vpc from 004's and 104's format list 2015-03-10 14:02:24 +01:00
004.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
005
005.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
007 iotests: Prepare for refcount_bits option 2015-03-10 14:02:21 +01:00
007.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
008
008.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
009
009.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
010
010.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
011
011.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
012
012.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
013
013.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
014
014.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
015 iotests: Prepare for refcount_bits option 2015-03-10 14:02:21 +01:00
015.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
017
017.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
018
018.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
019
019.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
020
020.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
021
021.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
022
022.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
023
023.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
024
024.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
025
025.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
026 iotests: Prepare for refcount_bits option 2015-03-10 14:02:21 +01:00
026.out blkdebug: fix "once" rule 2015-03-10 14:02:21 +01:00
026.out.nocache
027
027.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
028
028.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
029 iotests: Prepare for refcount_bits option 2015-03-10 14:02:21 +01:00
029.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
030 qemu-iotests: Add qemu-io format option in Python tests 2014-12-10 10:31:12 +01:00
030.out
031
031.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
032
032.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
033 qemu-iotests: Test unaligned sub-block zero write 2015-05-22 09:37:33 +01:00
033.out qemu-iotests: Test unaligned sub-block zero write 2015-05-22 09:37:33 +01:00
034
034.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
035
035.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
036
036.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
037
037.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
038
038.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
039 qemu-iotests: Reopen qcow2 with lazy-refcounts change 2015-09-14 16:51:37 +02:00
039.out qemu-iotests: Reopen qcow2 with lazy-refcounts change 2015-09-14 16:51:37 +02:00
040 qemu-iotests: Add qemu-io format option in Python tests 2014-12-10 10:31:12 +01:00
040.out
041 typofixes - v4 2015-09-11 10:45:43 +03:00
041.out
042
042.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
043
043.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
044
044.out
045
045.out
046
046.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
047
047.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
048
048.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
049
049.out tests: Fix test 049 fallout from improved HMP error messages 2015-10-02 13:48:29 +02:00
050
050.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
051 block: driver should override flags in bdrv_open() 2015-06-12 15:54:07 +02:00
051.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
052
052.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
053
053.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
054
054.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
055 iotests: Respect -nodefaults in tests 41 and 55 2015-09-04 20:59:48 +02:00
055.out qemu-iotests: Test blockdev-backup in 055 2015-01-13 11:47:56 +00:00
056
056.out
057
057.out
058 iotests: Prepare for refcount_bits option 2015-03-10 14:02:21 +01:00
058.out
059 qemu-iotests: qemu-img info on afl VMDK image with a huge capacity 2015-05-22 17:08:01 +02:00
059.out qemu-iotests: qemu-img info on afl VMDK image with a huge capacity 2015-05-22 17:08:01 +02:00
060 iotests: Add tests for more corruption cases 2015-01-23 18:17:05 +01:00
060.out qcow2: Add refcount_bits to format-specific info 2015-03-10 14:02:20 +01:00
061 iotests: Do not suppress segfaults in bash tests 2015-09-04 20:59:48 +02:00
061.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
062
062.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
063
063.out
064 iotests: Lower 064's memory usage 2015-01-23 12:41:32 -05:00
064.out iotests: Lower 064's memory usage 2015-01-23 12:41:32 -05:00
065 qcow2: Add refcount_bits to format-specific info 2015-03-10 14:02:20 +01:00
065.out
066
066.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
067 qemu-iotests: disable default qemu devices for cross-platform compatibility 2015-09-04 20:59:48 +02:00
067.out qemu-iotests: disable default qemu devices for cross-platform compatibility 2015-09-04 20:59:48 +02:00
068
068.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
069
069.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
070
070.out
071 iotests: Filter out "I/O thread spun..." warning 2015-01-13 11:47:56 +00:00
071.out qemu-iotests: disable default qemu devices for cross-platform compatibility 2015-09-04 20:59:48 +02:00
072
072.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
073
073.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
074
074.out
075
075.out
076 iotests, parallels: test for write into Parallels image 2015-05-22 09:37:31 +01:00
076.out iotests, parallels: test for write into Parallels image 2015-05-22 09:37:31 +01:00
077
077.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
078
078.out
079 iotests: Prepare for refcount_bits option 2015-03-10 14:02:21 +01:00
079.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
080 iotests: Prepare for refcount_bits option 2015-03-10 14:02:21 +01:00
080.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
081 iotests: Filter out "I/O thread spun..." warning 2015-01-13 11:47:56 +00:00
081.out qemu-iotests: disable default qemu devices for cross-platform compatibility 2015-09-04 20:59:48 +02:00
082 qemu-iotests: 082: Filter the real disk size 2014-12-10 10:31:16 +01:00
082.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
083 nbd: Improve error messages 2015-02-06 17:24:22 +01:00
083.out nbd: Improve error messages 2015-02-06 17:24:22 +01:00
084
084.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
085
085.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
086
086.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
087 iotests: Filter out "I/O thread spun..." warning 2015-01-13 11:47:56 +00:00
087.out qemu-iotests: disable default qemu devices for cross-platform compatibility 2015-09-04 20:59:48 +02:00
088
088.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
089 iotests: Prepare for refcount_bits option 2015-03-10 14:02:21 +01:00
089.out qcow2: Add refcount_bits to format-specific info 2015-03-10 14:02:20 +01:00
090
090.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
091
091.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
092
092.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
093 qemu-iotests: expand test 093 to support group throttling 2015-06-12 14:00:00 +01:00
093.out qemu-iotests: Add 093 for IO throttling 2015-02-16 15:07:18 +00:00
094 iotests: Add test for drive-mirror with NBD target 2015-02-16 14:36:03 +00:00
094.out iotests: Add test for drive-mirror with NBD target 2015-02-16 14:36:03 +00:00
095
095.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
097
097.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
098
098.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
099 iotests: Filter out "I/O thread spun..." warning 2015-01-13 11:47:56 +00:00
099.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
100 iotests: Fix 100 for nbd 2015-02-06 17:24:22 +01:00
100.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
101
101.out
102
102.out
103 iotests: qcow2 COW with minimal L2 cache size 2015-06-12 15:54:01 +02:00
103.out iotests: qcow2 COW with minimal L2 cache size 2015-06-12 15:54:01 +02:00
104 iotests: Drop vpc from 004's and 104's format list 2015-03-10 14:02:24 +01:00
104.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
105
105.out
107
107.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
108 iotests: Prepare for refcount_bits option 2015-03-10 14:02:21 +01:00
108.out qemu-iotests: Remove traling whitespaces in *.out 2014-12-12 16:52:33 +00:00
109 qemu-iotests: Test writing non-raw image headers to raw image 2014-12-10 10:31:13 +01:00
109.out qemu-iotests: Test writing non-raw image headers to raw image 2014-12-10 10:31:13 +01:00
110 iotests: Add test for relative backing file names 2015-01-13 11:47:56 +00:00
110.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
111
111.out
112 iotests: Add test for different refcount widths 2015-03-10 14:02:21 +01:00
112.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
113 iotests: Add test for unsupported image creation 2014-12-10 10:31:20 +01:00
113.out iotests: Add test for unsupported image creation 2014-12-10 10:31:20 +01:00
114 block: Don't probe for unknown backing file format 2014-12-10 10:31:13 +01:00
114.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
115 iotests: Test non-self-referential qcow2 refblocks 2015-03-16 12:10:30 -04:00
115.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
116 qemu-iotests: add 116 invalid QED input file tests 2015-02-06 17:24:21 +01:00
116.out qemu-iotests: add 116 invalid QED input file tests 2015-02-06 17:24:21 +01:00
119 iotests: Add tests for overriding BDRV_O_PROTOCOL 2015-06-12 15:54:08 +02:00
119.out iotests: Add tests for overriding BDRV_O_PROTOCOL 2015-06-12 15:54:08 +02:00
120 iotests: Add tests for overriding BDRV_O_PROTOCOL 2015-06-12 15:54:08 +02:00
120.out iotests: Add tests for overriding BDRV_O_PROTOCOL 2015-06-12 15:54:08 +02:00
121 iotests: Add tests for refcount table growth 2015-03-16 12:10:30 -04:00
121.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
122 qemu-iotests: Some qemu-img convert tests 2015-04-28 15:36:09 +02:00
122.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
123 iotests: Add test for qemu-img convert to NBD 2015-02-16 15:07:18 +00:00
123.out iotests: Add test for qemu-img convert to NBD 2015-02-16 15:07:18 +00:00
124 qapi: Rename 'dirty-bitmap' mode to 'incremental' 2015-07-02 09:20:18 +01:00
124.out iotests: add incremental backup granularity tests 2015-04-28 15:36:11 +02:00
128 iotests: Fix test 128 for password-less sudo 2015-10-02 13:48:29 +02:00
128.out iotests: add O_DIRECT alignment probing test 2015-03-10 14:02:24 +01:00
129 qemu-iotests: Test that "stop" doesn't drain block jobs 2015-04-28 15:36:09 +02:00
129.out qemu-iotests: Test that "stop" doesn't drain block jobs 2015-04-28 15:36:09 +02:00
130 qemu-iotests: s390x: fix test 130 2015-09-04 20:59:48 +02:00
130.out opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
131 iotests, parallels: check for incorrectly closed image in tests 2015-05-22 09:37:32 +01:00
131.out iotests, parallels: check for incorrectly closed image in tests 2015-05-22 09:37:32 +01:00
132 qemu-iotests: Add test case for mirror with unmap 2015-07-02 10:06:23 +01:00
132.out qemu-iotests: Add test case for mirror with unmap 2015-07-02 10:06:23 +01:00
134 tests: add test case for encrypted qcow2 read/write 2015-05-22 17:08:09 +02:00
134.out tests: add test case for encrypted qcow2 read/write 2015-05-22 17:08:09 +02:00
135 block: qemu-iotests - add check for multiplication overflow in vpc 2015-07-27 17:19:07 +02:00
135.out block: qemu-iotests - add check for multiplication overflow in vpc 2015-07-27 17:19:07 +02:00
137 qemu-iotests: More qcow2 reopen tests 2015-09-14 16:51:37 +02:00
137.out qemu-iotests: More qcow2 reopen tests 2015-09-14 16:51:37 +02:00
138 iotests: Add test for checking large image files 2015-09-14 16:51:37 +02:00
138.out iotests: Add test for checking large image files 2015-09-14 16:51:37 +02:00
check iotests: Do not suppress segfaults in bash tests 2015-09-04 20:59:48 +02:00
common qemu-iotests: disable default qemu devices for cross-platform compatibility 2015-09-04 20:59:48 +02:00
common.config iotests: Do not suppress segfaults in bash tests 2015-09-04 20:59:48 +02:00
common.filter opts: produce valid command line in qemu_opts_print 2015-09-11 10:21:38 +03:00
common.pattern
common.qemu qemu-iotests: disable default qemu devices for cross-platform compatibility 2015-09-04 20:59:48 +02:00
common.rc iotests: Do not suppress segfaults in bash tests 2015-09-04 20:59:48 +02:00
COPYING
group iotests: Add test for checking large image files 2015-09-14 16:51:37 +02:00
iotests.py iotests: Warn if python subprocess is killed 2015-09-04 20:59:48 +02:00
Makefile
nbd-fault-injector.py
qcow2.py qcow2.py: Add required padding for header extensions 2014-12-10 10:31:13 +01:00
qed.py
README
socket_scm_helper.c

=== This is the QEMU I/O test suite ===

* 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

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

Please send improvements to the test suite, general feedback or just
reports of failing tests cases to qemu-devel@savannah.nongnu.org.