@samitouri / QOSamiQemu / commits / b5a21249cb

meson, mkvenv: make functional tests depend on functests group

Note that only the thorough group requires the extra testing dependencies; the quick group will run with just the "tooling" group, which we intend to install by default at configure time in a forthcoming commit. Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-ID: <20260218213416.674483-14-jsnow@redhat.com> Signed-off-by: John Snow <jsnow@redhat.com>

John Snow committed Feb 18, 2026 at 16:34 UTC b5a21249cbac5671c47a89e170546a56720aaf8a
1 file changed +4 -1
tests/functional/meson.build
+4 -1
@@ -57,6 +57,8 @@ foreach speed : ['quick', 'thorough']
57 continue
58 endif
59
60 + test_deps = [roms, keymap_targets]
61 +
62 if speed == 'quick'
63 suites = ['func-quick', 'func-' + target_base]
64 target_tests = get_variable('tests_' + target_base + '_' + sysmode + '_quick', []) \
@@ -64,9 +66,9 @@ foreach speed : ['quick', 'thorough']
66 else
67 suites = ['func-' + speed, 'func-' + target_base + '-' + speed, speed]
68 target_tests = get_variable('tests_' + target_base + '_' + sysmode + '_' + speed, [])
69 + test_deps += [pyvenv_functests_group]
70 endif
71
69 - test_deps = [roms, keymap_targets]
72 test_env = environment()
73 if have_tools
74 test_env.set('QEMU_TEST_QEMU_IMG', meson.global_build_root() / 'qemu-img')
@@ -99,6 +101,7 @@ foreach speed : ['quick', 'thorough']
101 precache = custom_target('func-precache-' + testname,
102 output: teststamp,
103 command: [python, testpath],
104 + depends: pyvenv_functests_group,
105 depend_files: files(testpath),
106 build_by_default: false,
107 env: test_precache_env)