xref: /qemu/tests/qemu-iotests/meson.build (revision f1f8af238bd08cefbfddfb5675d469a998b2f03f)
1if not have_tools or targetos == 'windows' or get_option('gprof')
2  subdir_done()
3endif
4
5qemu_iotests_binaries = [qemu_img, qemu_io, qemu_nbd, qsd]
6qemu_iotests_env = {'PYTHON': python.full_path()}
7qemu_iotests_formats = {
8  'qcow2': 'quick',
9  'raw': 'slow',
10  'qed': 'thorough',
11  'vmdk': 'thorough',
12  'vpc': 'thorough'
13}
14
15foreach k, v : emulators
16  if k.startswith('qemu-system-')
17    qemu_iotests_binaries += v
18  endif
19endforeach
20
21foreach format, speed: qemu_iotests_formats
22  if speed == 'quick'
23    suites = 'block'
24  else
25    suites = ['block-' + speed, speed]
26  endif
27  test('qemu-iotests ' + format, sh, args: [files('../check-block.sh'), format],
28       depends: qemu_iotests_binaries, env: qemu_iotests_env,
29       protocol: 'tap',
30       suite: suites,
31       timeout: 0,
32       is_parallel: false)
33endforeach
34