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