~~~~~~~~~~~
There are a variety of ways to exercise the block layer I/O tests
-via make targets.
+via make targets for a selection of formats / protocols (collectively
+referred to as ``drivers`` below).
A default ``make check`` or ``make check-block`` command will exercise
the ``qcow2`` format, using the tests tagged into the ``auto`` group
These targets accept the ``SPEED`` variable to augment the set of tests
to run. A slightly more comprehensive test plan can be run by defining
``SPEED=slow``, which enables all tests for the ``qcow2`` and ``raw``
-formats. The most comprehensive test plan can be run by defining
-``SPEED=thorough``, which enables all available tests for the formats
+drivers. The most comprehensive test plan can be run by defining
+``SPEED=thorough``, which enables all available tests for the drivers
``luks``, ``nbd``, ``parallels``, ``qcow2``, ``qed``, ``raw``, ``vdi``,
``vhdx``, ``vmdk``, and ``vpc``.
-Each of formats also has its own dedicated make target, named
-``make check-block-$FORMAT`` which will run all available tests for
-the designated format and does not require the ``SPEED`` variable
+Each of drivers also has its own dedicated make target, named
+``make check-block-$DRIVER`` which will run all available tests for
+the designated driver and does not require the ``SPEED`` variable
to be set.
See the "QEMU iotests" section below for more information on the
qemu_iotests_env = {'PYTHON': python.full_path()}
# If altering this definition, also update docs/devel/testing/main.rst
# section on 'check-block' targets to reflect the changes
-qemu_iotests_formats = {
+qemu_iotests_drivers = {
'qcow2': 'quick',
'raw': 'slow',
'luks': 'thorough',
qemu_iotests_check_cmd = files('check')
-foreach format, speed: qemu_iotests_formats
- # Formats tagged 'quick' get the subset of tests in the 'auto'
+foreach driver, speed: qemu_iotests_drivers
+ # Drivers tagged 'quick' get the subset of tests in the 'auto'
# group, run by default with 'make check' / 'make check-block'
seen = []
if speed == 'quick'
- args = ['-tap', '-' + format, '-g', 'auto']
+ args = ['-tap', '-' + driver, '-g', 'auto']
suites = ['block']
rc = run_command(
foreach item: rc.stdout().strip().split()
seen += item
args = [qemu_iotests_check_cmd,
- '-tap', '-' + format, item,
+ '-tap', '-' + driver, item,
'--source-dir', meson.current_source_dir(),
'--build-dir', meson.current_build_dir()]
# Some individual tests take as long as 45 seconds
# Bump the timeout to 3 minutes for some headroom
# on slow machines to minimize spurious failures
- test('io-' + format + '-' + item,
+ test('io-' + driver + '-' + item,
python,
args: args,
depends: qemu_iotests_binaries,
endforeach
endif
- # Every format gets put in the format specific suite
- suites = ['block-' + format + '-optional']
- # Any format tagged quick or slow also gets added to slow
+ # Every driver gets put in the driver specific suite
+ suites = ['block-' + driver + '-optional']
+ # Any driver tagged quick or slow also gets added to slow
# otherwise its tagged thorough
if speed != 'thorough'
suites += ['block-slow']
suites += ['block-thorough']
endif
- args = ['-tap', '-' + format]
+ args = ['-tap', '-' + driver]
rc = run_command(
[python, qemu_iotests_check_cmd] + args + ['-n'],
endif
args = [qemu_iotests_check_cmd,
- '-tap', '-' + format, item,
+ '-tap', '-' + driver, item,
'--source-dir', meson.current_source_dir(),
'--build-dir', meson.current_build_dir()]
# Some individual tests take as long as 45 seconds
# Bump the timeout to 3 minutes for some headroom
# on slow machines to minimize spurious failures
- test('io-' + format + '-' + item,
+ test('io-' + driver + '-' + item,
python,
args: args,
depends: qemu_iotests_binaries,