aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/meson.build
blob: 3a9425d15c5524273e0140b27b523f8f846c8131 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
if have_tools and targetos != 'windows'
  qemu_iotests_binaries = [qemu_img, qemu_io, qemu_nbd, qsd]
  qemu_iotests_env = {'PYTHON': python.full_path()}
  qemu_iotests_formats = {
    'qcow2': 'quick',
    'raw': 'slow',
    'qed': 'thorough',
    'vmdk': 'thorough',
    'vpc': 'thorough'
  }

  foreach k, v : emulators
    if k.startswith('qemu-system-')
      qemu_iotests_binaries += v
    endif
  endforeach
  foreach format, speed: qemu_iotests_formats
    if speed == 'quick'
      suites = 'block'
    else
      suites = ['block-' + speed, speed]
    endif
    test('qemu-iotests ' + format, sh, args: [files('../check-block.sh'), format],
         depends: qemu_iotests_binaries, env: qemu_iotests_env,
         suite: suites,
         timeout: 0,
         is_parallel: false)
  endforeach
endif